public class DiscoverVariantIterateSortedAlignments extends IterateSortedAlignmentsListImpl
DiscoverSequenceVariantsMode| Modifier and Type | Class and Description |
|---|---|
class |
DiscoverVariantIterateSortedAlignments.PositionBaseInfo |
doc, SUB_SAMPLE_SIZEalignmentToGenomeTargetIndices, endPosition, endReferenceIndex, lastRemovedPosition, maxThreshold, startPosition, startReferenceIndex, useWindow| Constructor and Description |
|---|
DiscoverVariantIterateSortedAlignments(SequenceVariationOutputFormat format) |
| Modifier and Type | Method and Description |
|---|---|
void |
allocateStorage(int numberOfSamples,
int numberOfGroups) |
protected void |
checkGenomeMatchAlignment(ConcatSortedAlignmentReader sortedReaders,
RandomAccessSequenceInterface genome) |
void |
finish() |
RandomAccessSequenceInterface |
getGenome() |
void |
initialize(DiscoverSequenceVariantsMode mode,
OutputInfo outWriter,
it.unimi.dsi.fastutil.objects.ObjectArrayList<GenotypeFilter> filters) |
boolean |
isCallIndels() |
void |
observeIndel(PositionToBasesMap<DiscoverVariantPositionData> positionToBases,
int referenceIndex,
int startPosition,
String from,
String to,
int sampleIndex,
int readIndex,
Alignments.AlignmentEntry alignmentEntry)
Implement this call-back method to observe a candidate indel that begins at startPosition.
|
void |
processPositions(int referenceIndex,
int position,
DiscoverVariantPositionData list)
This method is not re-entrant.
|
void |
setCallIndels(boolean callIndels)
Enable or disable calling indels.
|
void |
setGenome(RandomAccessSequenceInterface genome) |
void |
setMinimumVariationSupport(int minimumVariationSupport) |
void |
setOverrideReferenceWithGenome(boolean overrideReferenceWithGenome) |
void |
setThresholdDistinctReadIndices(int thresholdDistinctReadIndices) |
doc, observeReferenceBase, observeVariantBasegetNumAlignmentEntries, getReferenceId, isValidOffsetArgument, isWithinStartFlap, iterate, parseIncludeReferenceArgument, parseIncludeReferenceArgument, processNumberOfReferences, setAlignmentProcessorFactory, setAlignmentReaderFactory, setEndPositionArgument, setMaxThreshold, setStartFlapLength, setStartPositionArgumentpublic DiscoverVariantIterateSortedAlignments(SequenceVariationOutputFormat format)
public void setMinimumVariationSupport(int minimumVariationSupport)
public void setThresholdDistinctReadIndices(int thresholdDistinctReadIndices)
public void initialize(DiscoverSequenceVariantsMode mode, OutputInfo outWriter, it.unimi.dsi.fastutil.objects.ObjectArrayList<GenotypeFilter> filters)
public void finish()
public void setGenome(RandomAccessSequenceInterface genome)
protected void checkGenomeMatchAlignment(ConcatSortedAlignmentReader sortedReaders, RandomAccessSequenceInterface genome)
checkGenomeMatchAlignment in class IterateSortedAlignments<DiscoverVariantPositionData>public RandomAccessSequenceInterface getGenome()
getGenome in class IterateSortedAlignments<DiscoverVariantPositionData>public void setOverrideReferenceWithGenome(boolean overrideReferenceWithGenome)
public void allocateStorage(int numberOfSamples,
int numberOfGroups)
public boolean isCallIndels()
public void setCallIndels(boolean callIndels)
callIndels - True will enable calling indels.public void observeIndel(PositionToBasesMap<DiscoverVariantPositionData> positionToBases, int referenceIndex, int startPosition, String from, String to, int sampleIndex, int readIndex, Alignments.AlignmentEntry alignmentEntry)
IterateSortedAlignmentsobserveIndel in class IterateSortedAlignments<DiscoverVariantPositionData>positionToBases - map from eir start positions to info about indels whose eir start at the location.referenceIndex - The reference sequence where the indel candidate is observed.startPosition - The position where the indel start, according to pair-wise sequence alignment (before eir calculation)from - from bases (before eir calculation)to - to bases (before eir calculation)sampleIndex - Index of the sample where the indel was observed.readIndex - Index of the base in the read at the left of where the indel is observed.public void processPositions(int referenceIndex,
int position,
DiscoverVariantPositionData list)
processPositions in class IterateSortedAlignmentsListImplreferenceIndex - Index of the reference sequence where these bases align.position - position where the bases are observedlist - list of bases observed at position.Copyright © 2018 Campagne Laboratory. All rights reserved.