Skip to content

Commit

Permalink
core: implement the template length filter for alignment datasets, cl…
Browse files Browse the repository at this point in the history
…oses #69
  • Loading branch information
jtarraga committed Aug 23, 2016
1 parent 563c803 commit 22c1347
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,9 @@ public AlignmentDataset mappingQualityFilter(String value) {
return this;
}

// template length filter
public AlignmentDataset templateLengthFilter(String value) {
query.put("tlen", value);
return this;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,19 @@ public void mapqFilter() {

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

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

long count;

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

ad.templateLengthFilter(">398;<400").show();

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

}

0 comments on commit 22c1347

Please sign in to comment.