use of au.edu.wehi.idsv.metrics.IdsvSamFileMetricsCollector in project gridss by PapenfussLab.
the class TestHelper method IDSV.
public IdsvMetrics IDSV(Collection<SAMRecord> input) {
IdsvSamFileMetricsCollector c = new IdsvSamFileMetricsCollector(null);
for (SAMRecord r : input) {
c.acceptRecord(r, null);
}
MetricsFile<IdsvMetrics, Integer> idsv = new MetricsFile<IdsvMetrics, Integer>();
MetricsFile<InsertSizeMetrics, Integer> is = new MetricsFile<InsertSizeMetrics, Integer>();
MetricsFile<CigarDetailMetrics, Integer> sc = new MetricsFile<CigarDetailMetrics, Integer>();
MetricsFile<MapqMetrics, Integer> mqm = new MetricsFile<MapqMetrics, Integer>();
c.finish(is, idsv, mqm, sc);
IdsvMetrics metrics = idsv.getMetrics().get(0);
return metrics;
}
Aggregations