public class ReadBaseStratification
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ReadBaseStratification.BinnedReadCycleStratifier
Stratifies into quintiles of read cycle.
|
static class |
ReadBaseStratification.CigarOperatorsInReadStratifier
Stratifies according to the number of matching cigar operators (from CIGAR string) that the read has.
|
static class |
ReadBaseStratification.CollectionStratifier
A CollectionStratifier is a stratifier that uses a collection of stratifiers to inform the stratification.
|
static class |
ReadBaseStratification.Consensus
Types of consensus reads as determined by the number of duplicates used from
first and second strands.
|
static class |
ReadBaseStratification.ConsensusStratifier
Stratify by tags used during duplex and single index consensus calling.
|
static class |
ReadBaseStratification.CycleBin
An enum designed to hold a binned version of any probability-like number (between 0 and 1)
in quintiles
|
static class |
ReadBaseStratification.FlowCellTileStratifier
Stratifies base into their read's tile which is parsed from the read-name.
|
static class |
ReadBaseStratification.GCContentStratifier
A stratifier that uses GC (of the read) to stratify.
|
static class |
ReadBaseStratification.IndelLengthStratifier
Stratifies according to the length of an insertion or deletion.
|
static class |
ReadBaseStratification.IndelsInReadStratifier
Stratifies according to the number of indel bases (from CIGAR string) that the read has.
|
static class |
ReadBaseStratification.LongShortHomopolymer |
static class |
ReadBaseStratification.LongShortHomopolymerStratifier
Stratify bases according to the type of Homopolymer that they belong to (repeating element, final reference base and
whether the length is "long" or not).
|
static class |
ReadBaseStratification.MismatchesInReadStratifier
Stratifies according to the overall mismatches (from
SAMTag.NM ) that the read has against the reference, NOT
including the current base. |
static class |
ReadBaseStratification.NsInReadStratifier
Stratify by the number of Ns found in the read.
|
static class |
ReadBaseStratification.PairOrientation
An enum for holding a reads read-pair's Orientation (i.e.
|
static class |
ReadBaseStratification.PairStratifier<T extends java.lang.Comparable<T>,R extends java.lang.Comparable<R>>
A PairStratifier is a stratifier that uses two other stratifiers to inform the stratification.
|
static class |
ReadBaseStratification.ProperPaired
An enum to hold information about the "properness" of a read pair
|
static class |
ReadBaseStratification.ReadDirection
An enum for holding the direction for a read (positive strand or negative strand
|
static class |
ReadBaseStratification.ReadOrdinality
An enum to hold the ordinality of a read
|
static interface |
ReadBaseStratification.RecordAndOffsetStratifier<T extends java.lang.Comparable<T>>
The main interface for a stratifier.
|
Modifier and Type | Field and Description |
---|---|
static ReadBaseStratification.RecordAndOffsetStratifier<java.lang.Integer> |
baseCycleStratifier
Get the one-based cycle number of the base, taking the direction of the read into account
|
static ReadBaseStratification.RecordAndOffsetStratifier<java.lang.Byte> |
baseQualityStratifier
Stratifies into the base-quality of the base under consideration
|
static htsjdk.samtools.util.Lazy<ReadBaseStratification.PairStratifier<ReadBaseStratification.LongShortHomopolymer,Pair<java.lang.Character,java.lang.Character>>> |
binnedHomopolymerStratifier
Stratifies a base onto the make up (repeating base and following reference base) and length-scale of the homopolymer from whence it came.
|
static ReadBaseStratification.BinnedReadCycleStratifier |
binnedReadCycleStratifier
Stratifies into quintiles of read cycle.
|
static ReadBaseStratification.ConsensusStratifier |
consensusStratifier
Stratify by tags used during duplex and single index consensus calling.
|
static ReadBaseStratification.RecordAndOffsetStratifier<java.lang.Character> |
currentReadBaseStratifier
Stratifies bases into the current (uppercase) base as it was read from the sequencer (i.e.
|
static ReadBaseStratification.CigarOperatorsInReadStratifier |
deletionsInReadStratifier
Stratify by Deletions in the read cigars.
|
static ReadBaseStratification.FlowCellTileStratifier |
flowCellTileStratifier
Stratifies base into their read's tile which is parsed from the read-name.
|
static ReadBaseStratification.GCContentStratifier |
gcContentStratifier
A stratifier that uses GC (of the read) to stratify.
|
static ReadBaseStratification.RecordAndOffsetStratifier<java.lang.Integer> |
homoPolymerLengthStratifier
Stratifies a base onto the length of the homopolymer preceding it (in the read direction).
|
static ReadBaseStratification.PairStratifier<java.lang.Integer,Pair<java.lang.Character,java.lang.Character>> |
homopolymerStratifier
Stratifies a base onto the make up (repeating base and following reference base) and length of the homopolymer from whence it came.
|
static ReadBaseStratification.IndelLengthStratifier |
indelLengthStratifier
Stratifies into the number of bases in an insertion
|
static ReadBaseStratification.IndelsInReadStratifier |
indelsInReadStratifier
Stratify by Indels in the read cigars.
|
static ReadBaseStratification.CigarOperatorsInReadStratifier |
insertionsInReadStratifier
Stratify by Insertions in the read cigars.
|
static ReadBaseStratification.RecordAndOffsetStratifier<java.lang.Integer> |
insertLengthStratifier
Stratifies into the read-pairs estimated insert-length, as long as it isn't larger than 10x the length of the read
|
static ReadBaseStratification.RecordAndOffsetStratifier<java.lang.Integer> |
mappingQualityStratifier
Stratifies into the mapping-quality of the read under consideration
|
static ReadBaseStratification.MismatchesInReadStratifier |
mismatchesInReadStratifier
Stratifies according to the overall mismatches (from NM) that the read has against the reference, NOT
including the current base.
|
static ReadBaseStratification.RecordAndOffsetStratifier<java.lang.Character> |
nextReadBaseStratifier
Stratifies bases into the following (uppercase) base as it was read from the sequencer (i.e.
|
static picard.sam.SamErrorMetric.ReadBaseStratification.RecordStratifier<java.lang.String> |
nonStratifier
A constant stratifier which places all the reads into a single stratum.
|
static int |
NOT_ALIGNED_ERROR |
static ReadBaseStratification.NsInReadStratifier |
nsInReadStratifier
Stratify by the number of Ns found in the read.
|
static ReadBaseStratification.RecordAndOffsetStratifier<java.lang.String> |
oneBasePaddedContextStratifier
Stratifies into the one base context of the base, which includes one read-base on each side and the reference base from where the current base is
the bases will be reverse-complemented so that the bases are in the original order they were read from the sequencer
|
static ReadBaseStratification.PairStratifier<java.lang.Character,java.lang.Character> |
postDiNucleotideStratifier
Stratifies a base onto the reference base that it covers and the following base, possibly reverse complemented if the read
has been reversed by the aligner.
|
static ReadBaseStratification.PairStratifier<java.lang.Character,java.lang.Character> |
preDiNucleotideStratifier
Stratifies a base onto the reference base that it covers and the preceding base, possibly reverse complemented if the read
has been reversed by the aligner.
|
static ReadBaseStratification.RecordAndOffsetStratifier<java.lang.Character> |
previousReadBaseStratifier
Stratifies bases into the previous (uppercase) base as it was read from the sequencer (i.e.
|
static ReadBaseStratification.RecordAndOffsetStratifier<ReadBaseStratification.ReadDirection> |
readDirectionStratifier
Stratifies bases into their read's Direction (i.e.
|
static picard.sam.SamErrorMetric.ReadBaseStratification.RecordStratifier<java.lang.String> |
readgroupStratifier
Stratifies to the readgroup id of the read.
|
static ReadBaseStratification.RecordAndOffsetStratifier<ReadBaseStratification.ReadOrdinality> |
readOrdinalityStratifier
Stratifies bases into their read's Ordinality (i.e.
|
static ReadBaseStratification.RecordAndOffsetStratifier<ReadBaseStratification.PairOrientation> |
readOrientationStratifier
Stratifies bases into their read-pair's Orientation (i.e.
|
static ReadBaseStratification.RecordAndOffsetStratifier<ReadBaseStratification.ProperPaired> |
readPairednessStratifier
Stratifies bases into their read's Proper-pairedness
|
static ReadBaseStratification.RecordAndOffsetStratifier<java.lang.Character> |
referenceBaseStratifier
Stratifies a base onto the reference base that it covers, possibly reverse complemented if the read
has been reversed by the aligner.
|
static ReadBaseStratification.RecordAndOffsetStratifier<java.lang.Integer> |
softClipsLengthStratifier
Stratifies into the number of soft-clipped bases that the read has in its alignment, or -1 if not aligned.
|
static ReadBaseStratification.RecordAndOffsetStratifier<java.lang.String> |
twoBasePaddedContextStratifier
Stratifies into the two base context of the base, which includes two read-bases on each side and the reference base from where the current base is
the bases will be reverse-complemented so that the bases are in the original order they were read from the sequencer
|
Constructor and Description |
---|
ReadBaseStratification() |
Modifier and Type | Method and Description |
---|---|
static htsjdk.samtools.CigarElement |
getIndelElement(htsjdk.samtools.util.SamLocusIterator.RecordAndOffset recordAndOffset) |
static <T extends java.lang.Comparable<T>,S extends java.lang.Comparable<S>> |
PairStratifierFactory(ReadBaseStratification.RecordAndOffsetStratifier<T> leftStratifier,
ReadBaseStratification.RecordAndOffsetStratifier<S> rightStratifier,
java.lang.String suffix)
A factory for generating "pair" stratifier instances from two stratifiers and a string
|
static void |
setGcCacheSize(int gcCacheSize) |
static void |
setLongHomopolymer(int longHomopolymer)
defaults to 6
|
public static final ReadBaseStratification.RecordAndOffsetStratifier<java.lang.Character> currentReadBaseStratifier
public static final ReadBaseStratification.RecordAndOffsetStratifier<java.lang.Character> previousReadBaseStratifier
public static final ReadBaseStratification.RecordAndOffsetStratifier<java.lang.Character> nextReadBaseStratifier
public static final ReadBaseStratification.RecordAndOffsetStratifier<java.lang.Character> referenceBaseStratifier
public static final ReadBaseStratification.PairStratifier<java.lang.Character,java.lang.Character> postDiNucleotideStratifier
public static final ReadBaseStratification.PairStratifier<java.lang.Character,java.lang.Character> preDiNucleotideStratifier
public static final ReadBaseStratification.RecordAndOffsetStratifier<java.lang.Integer> homoPolymerLengthStratifier
public static final ReadBaseStratification.PairStratifier<java.lang.Integer,Pair<java.lang.Character,java.lang.Character>> homopolymerStratifier
public static final htsjdk.samtools.util.Lazy<ReadBaseStratification.PairStratifier<ReadBaseStratification.LongShortHomopolymer,Pair<java.lang.Character,java.lang.Character>>> binnedHomopolymerStratifier
This is done with a Lazy wrapper since it requires access to LONG_HOMOPOLYMER
which can be set with setLongHomopolymer(int)
.
public static final ReadBaseStratification.RecordAndOffsetStratifier<java.lang.String> oneBasePaddedContextStratifier
public static final ReadBaseStratification.RecordAndOffsetStratifier<java.lang.String> twoBasePaddedContextStratifier
public static final picard.sam.SamErrorMetric.ReadBaseStratification.RecordStratifier<java.lang.String> nonStratifier
public static final ReadBaseStratification.GCContentStratifier gcContentStratifier
Stratification happens into (integer) percents.
public static final ReadBaseStratification.FlowCellTileStratifier flowCellTileStratifier
public static final picard.sam.SamErrorMetric.ReadBaseStratification.RecordStratifier<java.lang.String> readgroupStratifier
public static final ReadBaseStratification.RecordAndOffsetStratifier<ReadBaseStratification.ReadOrdinality> readOrdinalityStratifier
public static final ReadBaseStratification.RecordAndOffsetStratifier<ReadBaseStratification.ProperPaired> readPairednessStratifier
public static final ReadBaseStratification.RecordAndOffsetStratifier<ReadBaseStratification.ReadDirection> readDirectionStratifier
public static final ReadBaseStratification.RecordAndOffsetStratifier<ReadBaseStratification.PairOrientation> readOrientationStratifier
public static final ReadBaseStratification.BinnedReadCycleStratifier binnedReadCycleStratifier
public static final ReadBaseStratification.RecordAndOffsetStratifier<java.lang.Integer> baseCycleStratifier
public static final ReadBaseStratification.RecordAndOffsetStratifier<java.lang.Integer> insertLengthStratifier
public static final ReadBaseStratification.RecordAndOffsetStratifier<java.lang.Integer> softClipsLengthStratifier
public static final ReadBaseStratification.RecordAndOffsetStratifier<java.lang.Byte> baseQualityStratifier
public static final ReadBaseStratification.RecordAndOffsetStratifier<java.lang.Integer> mappingQualityStratifier
public static final ReadBaseStratification.MismatchesInReadStratifier mismatchesInReadStratifier
public static final ReadBaseStratification.ConsensusStratifier consensusStratifier
public static final ReadBaseStratification.NsInReadStratifier nsInReadStratifier
public static final ReadBaseStratification.CigarOperatorsInReadStratifier insertionsInReadStratifier
public static final ReadBaseStratification.CigarOperatorsInReadStratifier deletionsInReadStratifier
public static final ReadBaseStratification.IndelsInReadStratifier indelsInReadStratifier
public static final ReadBaseStratification.IndelLengthStratifier indelLengthStratifier
public static final int NOT_ALIGNED_ERROR
public static void setGcCacheSize(int gcCacheSize)
public static void setLongHomopolymer(int longHomopolymer)
public static <T extends java.lang.Comparable<T>,S extends java.lang.Comparable<S>> ReadBaseStratification.PairStratifier<T,S> PairStratifierFactory(ReadBaseStratification.RecordAndOffsetStratifier<T> leftStratifier, ReadBaseStratification.RecordAndOffsetStratifier<S> rightStratifier, java.lang.String suffix)
T
- the type of the left StratifierS
- the type of the right StratifierleftStratifier
- a RecordAndOffsetStratifier
to userightStratifier
- a RecordAndOffsetStratifier
to usesuffix
- the suffix to use for the new stratifierPairStratifier>
that will stratify according to both leftStratifier
and rightStratifier
public static htsjdk.samtools.CigarElement getIndelElement(htsjdk.samtools.util.SamLocusIterator.RecordAndOffset recordAndOffset)