public final class AlignmentContext extends java.lang.Object implements htsjdk.samtools.util.Locatable, HasGenomeLocation
Modifier and Type | Class and Description |
---|---|
static class |
AlignmentContext.ReadOrientation |
Constructor and Description |
---|
AlignmentContext(htsjdk.samtools.util.Locatable loc,
ReadPileup basePileup) |
AlignmentContext(htsjdk.samtools.util.Locatable loc,
ReadPileup basePileup,
boolean hasPileupBeenDownsampled) |
Modifier and Type | Method and Description |
---|---|
ReadPileup |
getBasePileup() |
java.lang.String |
getContig() |
int |
getEnd() |
htsjdk.samtools.util.Locatable |
getLocation() |
long |
getPosition() |
int |
getStart() |
boolean |
hasPileupBeenDownsampled()
Returns true if any reads have been filtered out of the pileup due to excess DoC.
|
int |
size()
How many reads cover this locus?
|
static java.util.Map<java.lang.String,AlignmentContext> |
splitContextBySampleName(ReadPileup pileup,
htsjdk.samtools.SAMFileHeader header) |
java.util.Map<java.lang.String,AlignmentContext> |
splitContextBySampleName(htsjdk.samtools.SAMFileHeader header) |
java.util.Map<java.lang.String,AlignmentContext> |
splitContextBySampleName(java.lang.String assumedSingleSample,
htsjdk.samtools.SAMFileHeader header)
Splits the given AlignmentContext into a StratifiedAlignmentContext per sample, but referenced by sample name instead
of sample object.
|
AlignmentContext |
stratify(AlignmentContext.ReadOrientation type)
Returns a potentially derived subcontext containing only forward, reverse, or in fact all reads
in alignment context context.
|
java.lang.String |
toString() |
public AlignmentContext(htsjdk.samtools.util.Locatable loc, ReadPileup basePileup)
public AlignmentContext(htsjdk.samtools.util.Locatable loc, ReadPileup basePileup, boolean hasPileupBeenDownsampled)
public int size()
public java.lang.String getContig()
getContig
in interface htsjdk.samtools.util.Locatable
public int getStart()
getStart
in interface htsjdk.samtools.util.Locatable
public int getEnd()
getEnd
in interface htsjdk.samtools.util.Locatable
public long getPosition()
public htsjdk.samtools.util.Locatable getLocation()
getLocation
in interface HasGenomeLocation
public boolean hasPileupBeenDownsampled()
public ReadPileup getBasePileup()
public AlignmentContext stratify(AlignmentContext.ReadOrientation type)
public java.util.Map<java.lang.String,AlignmentContext> splitContextBySampleName(htsjdk.samtools.SAMFileHeader header)
public java.util.Map<java.lang.String,AlignmentContext> splitContextBySampleName(java.lang.String assumedSingleSample, htsjdk.samtools.SAMFileHeader header)
assumedSingleSample
- If non-null, assume this is the only sample in our pileup and return immediately.
If null, get the list of samples from the provided header and do the work of splitting by sample.public static java.util.Map<java.lang.String,AlignmentContext> splitContextBySampleName(ReadPileup pileup, htsjdk.samtools.SAMFileHeader header)
public java.lang.String toString()
toString
in class java.lang.Object