Search in sources :

Example 1 with IdsvSamFileMetricsCollector

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;
}
Also used : MetricsFile(htsjdk.samtools.metrics.MetricsFile) IdsvMetrics(gridss.analysis.IdsvMetrics) SAMRecord(htsjdk.samtools.SAMRecord) InsertSizeMetrics(picard.analysis.InsertSizeMetrics) MapqMetrics(gridss.analysis.MapqMetrics) CigarDetailMetrics(gridss.analysis.CigarDetailMetrics) IdsvSamFileMetricsCollector(au.edu.wehi.idsv.metrics.IdsvSamFileMetricsCollector)

Aggregations

IdsvSamFileMetricsCollector (au.edu.wehi.idsv.metrics.IdsvSamFileMetricsCollector)1 CigarDetailMetrics (gridss.analysis.CigarDetailMetrics)1 IdsvMetrics (gridss.analysis.IdsvMetrics)1 MapqMetrics (gridss.analysis.MapqMetrics)1 SAMRecord (htsjdk.samtools.SAMRecord)1 MetricsFile (htsjdk.samtools.metrics.MetricsFile)1 InsertSizeMetrics (picard.analysis.InsertSizeMetrics)1