Search in sources :

Example 6 with AllelicCountCollection

use of org.broadinstitute.hellbender.tools.copynumber.allelic.alleliccount.AllelicCountCollection in project gatk by broadinstitute.

the class CollectAllelicCounts method doWork.

@Override
protected Object doWork() {
    validateArguments();
    final File referenceFile = referenceArguments.getReferenceFile();
    final IntervalList siteIntervals = IntervalList.fromFile(inputSiteIntervalsFile);
    final AllelicCountCollector allelicCountCollector = new AllelicCountCollector(referenceFile, readValidationStringency);
    logger.info("Collecting allelic counts...");
    final AllelicCountCollection allelicCounts = allelicCountCollector.collect(inputBAMFile, siteIntervals, minimumMappingQuality, minimumBaseQuality);
    allelicCounts.write(outputAllelicCountsFile);
    logger.info("Allelic counts written to " + outputAllelicCountsFile.toString());
    return "SUCCESS";
}
Also used : AllelicCountCollector(org.broadinstitute.hellbender.tools.copynumber.allelic.alleliccount.AllelicCountCollector) IntervalList(htsjdk.samtools.util.IntervalList) AllelicCountCollection(org.broadinstitute.hellbender.tools.copynumber.allelic.alleliccount.AllelicCountCollection) File(java.io.File)

Aggregations

AllelicCountCollection (org.broadinstitute.hellbender.tools.copynumber.allelic.alleliccount.AllelicCountCollection)6 File (java.io.File)4 IntervalList (htsjdk.samtools.util.IntervalList)2 CommandLineProgramTest (org.broadinstitute.hellbender.CommandLineProgramTest)2 AllelicCount (org.broadinstitute.hellbender.tools.copynumber.allelic.alleliccount.AllelicCount)2 AllelicCountCollector (org.broadinstitute.hellbender.tools.copynumber.allelic.alleliccount.AllelicCountCollector)2 SimpleInterval (org.broadinstitute.hellbender.utils.SimpleInterval)2 DataProvider (org.testng.annotations.DataProvider)2 Test (org.testng.annotations.Test)2