public final class Mutect2Engine extends java.lang.Object implements AssemblyRegionEvaluator
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CALLABLE_SITES_NAME |
static int |
HUGE_FRAGMENT_LENGTH |
static int |
INDEL_CONTINUATION_QUAL |
static int |
INDEL_START_QUAL |
static double |
MAX_ALT_FRACTION_IN_NORMAL |
static int |
MAX_NORMAL_QUAL_SUM |
static int |
MIN_PALINDROME_SIZE |
static int |
MINIMUM_BASE_QUALITY |
static java.lang.String |
NORMAL_SAMPLE_KEY_IN_VCF_HEADER |
static java.lang.String |
TUMOR_SAMPLE_KEY_IN_VCF_HEADER |
Constructor and Description |
---|
Mutect2Engine(M2ArgumentCollection MTAC,
AssemblyRegionArgumentCollection assemblyRegionArgs,
boolean createBamOutIndex,
boolean createBamOutMD5,
htsjdk.samtools.SAMFileHeader header,
GATKPath referenceSpec,
VariantAnnotatorEngine annotatorEngine)
Create and initialize a new HaplotypeCallerEngine given a collection of HaplotypeCaller arguments, a reads header,
and a reference file
|
Modifier and Type | Method and Description |
---|---|
java.util.List<htsjdk.variant.variantcontext.VariantContext> |
callRegion(AssemblyRegion originalAssemblyRegion,
ReferenceContext referenceContext,
FeatureContext featureContext) |
boolean |
emitReferenceConfidence()
Are we emitting a reference confidence in some form, or not?
|
static java.util.List<java.lang.Double> |
getAttributeAsDoubleList(htsjdk.variant.variantcontext.VariantContext vc,
java.lang.String key,
double defaultValue) |
static java.util.List<java.lang.Class<? extends Annotation>> |
getStandardMutect2AnnotationGroups() |
ActivityProfileState |
isActive(AlignmentContext context,
ReferenceContext ref,
FeatureContext features)
Given a pileup over a single locus, returns an ActivityProfileState containing the probability (0.0 to 1.0) that
the locus is an "active" site.
|
static double |
logLikelihoodRatio(int refCount,
int altCount,
double errorProbability) |
static double |
logLikelihoodRatio(int refCount,
java.util.List<java.lang.Byte> altQuals) |
static double |
logLikelihoodRatio(int nRef,
java.util.List<java.lang.Byte> altQuals,
int repeatFactor) |
static double |
logLikelihoodRatio(int nRef,
java.util.List<java.lang.Byte> altQuals,
int repeatFactor,
java.util.Optional<BetaDistributionShape> afPrior)
this implements the isActive() algorithm described in docs/mutect/mutect.pdf
the multiplicative factor is for the special case where we pass a singleton list
of alt quals and want to duplicate that alt qual over multiple reads
|
static ReadTransformer |
makeStandardMutect2PostFilterReadTransformer(java.nio.file.Path referencePath,
boolean clipITRArtifacts) |
static java.util.List<ReadFilter> |
makeStandardMutect2ReadFilters() |
void |
shutdown() |
protected java.util.Map<java.lang.String,java.util.List<GATKRead>> |
splitReadsBySample(java.util.Collection<GATKRead> reads) |
void |
writeExtraOutputs(java.io.File statsTable) |
void |
writeHeader(htsjdk.variant.variantcontext.writer.VariantContextWriter vcfWriter,
java.util.Set<htsjdk.variant.vcf.VCFHeaderLine> defaultToolHeaderLines) |
public static final java.lang.String TUMOR_SAMPLE_KEY_IN_VCF_HEADER
public static final java.lang.String NORMAL_SAMPLE_KEY_IN_VCF_HEADER
public static final int INDEL_START_QUAL
public static final int INDEL_CONTINUATION_QUAL
public static final double MAX_ALT_FRACTION_IN_NORMAL
public static final int MAX_NORMAL_QUAL_SUM
public static final int MIN_PALINDROME_SIZE
public static final int HUGE_FRAGMENT_LENGTH
public static final java.lang.String CALLABLE_SITES_NAME
public static final int MINIMUM_BASE_QUALITY
public Mutect2Engine(M2ArgumentCollection MTAC, AssemblyRegionArgumentCollection assemblyRegionArgs, boolean createBamOutIndex, boolean createBamOutMD5, htsjdk.samtools.SAMFileHeader header, GATKPath referenceSpec, VariantAnnotatorEngine annotatorEngine)
MTAC
- command-line arguments for the HaplotypeCallerassemblyRegionArgs
- createBamOutIndex
- true to create an index file for the bamoutcreateBamOutMD5
- true to create an md5 file for the bamoutheader
- header for the readsreferenceSpec
- reference specifier for the referenceannotatorEngine
- annotator engine built with desired annotationspublic static java.util.List<ReadFilter> makeStandardMutect2ReadFilters()
public static ReadTransformer makeStandardMutect2PostFilterReadTransformer(java.nio.file.Path referencePath, boolean clipITRArtifacts)
public static java.util.List<java.lang.Class<? extends Annotation>> getStandardMutect2AnnotationGroups()
public void writeHeader(htsjdk.variant.variantcontext.writer.VariantContextWriter vcfWriter, java.util.Set<htsjdk.variant.vcf.VCFHeaderLine> defaultToolHeaderLines)
public java.util.List<htsjdk.variant.variantcontext.VariantContext> callRegion(AssemblyRegion originalAssemblyRegion, ReferenceContext referenceContext, FeatureContext featureContext)
protected java.util.Map<java.lang.String,java.util.List<GATKRead>> splitReadsBySample(java.util.Collection<GATKRead> reads)
public void writeExtraOutputs(java.io.File statsTable)
public void shutdown()
public ActivityProfileState isActive(AlignmentContext context, ReferenceContext ref, FeatureContext features)
AssemblyRegionEvaluator
isActive
in interface AssemblyRegionEvaluator
context
- reads pileup to examineref
- reference base overlapping the pileup locusfeatures
- features overlapping the pileup locuspublic static java.util.List<java.lang.Double> getAttributeAsDoubleList(htsjdk.variant.variantcontext.VariantContext vc, java.lang.String key, double defaultValue)
public boolean emitReferenceConfidence()
public static double logLikelihoodRatio(int refCount, java.util.List<java.lang.Byte> altQuals)
public static double logLikelihoodRatio(int nRef, java.util.List<java.lang.Byte> altQuals, int repeatFactor, java.util.Optional<BetaDistributionShape> afPrior)
nRef
- ref read countaltQuals
- Phred-scaled qualities of alt-supporting readsrepeatFactor
- Number of times each alt qual is duplicatedafPrior
- Beta prior on alt allele fractionpublic static double logLikelihoodRatio(int nRef, java.util.List<java.lang.Byte> altQuals, int repeatFactor)
public static double logLikelihoodRatio(int refCount, int altCount, double errorProbability)