Readded locus printing suppression to DoC walker
(and removed unused import from UG) git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@2358 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
0d2a761460
commit
b234019cf5
|
|
@ -43,6 +43,9 @@ import java.util.*;
|
|||
@By(DataSource.REFERENCE)
|
||||
public class DepthOfCoverageWalker extends LocusWalker<DepthOfCoverageWalker.DoCInfo, DepthOfCoverageWalker.DoCInfo> {
|
||||
|
||||
@Argument(fullName="suppressLocusPrinting", shortName= "noLocus", doc="Suppress printing", required=false)
|
||||
public boolean suppressLocusPrinting = false;
|
||||
|
||||
@Argument(fullName="printBaseCounts", shortName ="bases", doc="Print individual base counts (A,C,G,T only)", required=false)
|
||||
protected boolean printBaseCounts = false;
|
||||
|
||||
|
|
@ -99,9 +102,11 @@ public class DepthOfCoverageWalker extends LocusWalker<DepthOfCoverageWalker.DoC
|
|||
}
|
||||
|
||||
// build and print the per-locus header
|
||||
if ( !suppressLocusPrinting ) {
|
||||
out.println("\nPER_LOCUS_COVERAGE_SECTION");
|
||||
printHeaderLine(false);
|
||||
}
|
||||
}
|
||||
|
||||
public DoCInfo map(RefMetaDataTracker tracker, ReferenceContext ref, AlignmentContext context) {
|
||||
|
||||
|
|
@ -153,6 +158,7 @@ public class DepthOfCoverageWalker extends LocusWalker<DepthOfCoverageWalker.DoC
|
|||
if ( printHistogram )
|
||||
incCov(info.totalCoverage);
|
||||
|
||||
if ( !suppressLocusPrinting )
|
||||
printDoCInfo(context.getLocation(), info, false);
|
||||
|
||||
return info;
|
||||
|
|
|
|||
|
|
@ -39,7 +39,6 @@ import org.broadinstitute.sting.utils.genotype.*;
|
|||
import org.broadinstitute.sting.utils.genotype.vcf.VCFGenotypeRecord;
|
||||
import org.broadinstitute.sting.utils.genotype.vcf.VCFHeaderLine;
|
||||
import org.broadinstitute.sting.utils.genotype.vcf.VCFInfoHeaderLine;
|
||||
import org.broadinstitute.sting.alignment.Alignment;
|
||||
|
||||
import net.sf.samtools.SAMReadGroupRecord;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue