Skip to content

Commit

Permalink
core: implement the alignment length filter for alignment datasets, c…
Browse files Browse the repository at this point in the history
…loses #70
  • Loading branch information
jtarraga committed Aug 23, 2016
1 parent 22c1347 commit d066306
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected void updateDataset(Query query) {
}
}

// mapping quuality filter
// mapping quality filter
public AlignmentDataset mappingQualityFilter(String value) {
query.put("mapq", value);
return this;
Expand All @@ -49,4 +49,10 @@ public AlignmentDataset templateLengthFilter(String value) {
query.put("tlen", value);
return this;
}

// alignment length filter
public AlignmentDataset alignmentLengthFilter(String value) {
query.put("alen", value);
return this;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,17 @@ public void tlenFilter() {
System.out.println("--------------------------------------");
}

@Test
public void alenFilter() {
initDataset();
System.out.println(">>>> Running alignmentLengthFilter...");

long count;

System.out.println("-------------------------------------- using alignmentLengthFilter");

ad.alignmentLengthFilter(">50;<50").show();

System.out.println("--------------------------------------");
}
}

0 comments on commit d066306

Please sign in to comment.