public class ConcatSortedAlignmentReader extends ConcatAlignmentReader
activeIndex, adjustQueryIndices, hasReadOrigin, readers, readersWithMoreEntries, readOriginPermutationsadjustSampleIndicesalignerName, alignerVersion, constantLength, constantQueryLengths, largestQueryIndex, numberOfQueries, numberOfTargets, queryIdentifiers, sampleBasenames, smallestQueryIndex, targetIdentifiers, targetLengths| Constructor and Description |
|---|
ConcatSortedAlignmentReader(AlignmentReaderFactory alignmentReaderFactory,
boolean adjustQueryIndices,
String[] basenames) |
ConcatSortedAlignmentReader(AlignmentReaderFactory factory,
boolean adjustQueryIndices,
String[] basenames,
int startReferenceIndex,
int startPosition,
int endReferenceIndex,
int endPosition)
Restricts the concatenation to the slice of the alignments between (startReferenceIndex,startPosition)
and (endReferenceIndex, endPosition)
|
ConcatSortedAlignmentReader(AlignmentReaderFactory alignmentReaderFactory,
String[] basenames) |
ConcatSortedAlignmentReader(boolean adjustQueryIndices,
String... basenames) |
ConcatSortedAlignmentReader(NonAmbiguousAlignmentReaderFactory alignmentReaderFactory,
boolean adjustQueryIndices,
String... basenames) |
ConcatSortedAlignmentReader(String... basenames) |
ConcatSortedAlignmentReader(String[] basenames,
int startReferenceIndex,
int startPosition,
int endReferenceIndex,
int endPosition)
Restricts the concatenation to the slice of the alignments between (startReferenceIndex,startPosition)
and (endReferenceIndex, endPosition)
|
| Modifier and Type | Method and Description |
|---|---|
int |
getReaderIndex()
Get the index of the alignment reader that provided the entry.
|
boolean |
hasNext()
Returns true if the input has more entries.
|
Alignments.AlignmentEntry |
next()
Returns the next alignment entry from the input stream.
|
void |
setGenomicRange(GenomicRange genomicRange) |
Alignments.AlignmentEntry |
skipTo(int targetIndex,
int position)
Skip all entries that have position before (targetIndex,position).
|
close, getAlignerName, getAlignerVersion, getConcatPerm, getLocations, getLocationsByBytes, getMaxLocation, getMinLocation, getNumberOfAlignedReads, getReadGroupHelper, getReadOriginInfo, getStatistics, iterator, mergedQueryIndex, processReadGroups, readHeader, remove, setAdjustQueryIndices, setStartEndOffsetssetAdjustSampleIndicesgetBasename, getBasenames, getLargestSplitQueryIndex, getNumberOfQueries, getNumberOfTargets, getQueryIdentifiers, getSampleBasename, getSmallestSplitQueryIndex, getTargetIdentifiers, getTargetLength, getTargetLength, isConstantQueryLengths, isHeaderLoaded, setHeaderLoadedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingforEach, spliteratorpublic ConcatSortedAlignmentReader(String... basenames) throws IOException
IOExceptionpublic ConcatSortedAlignmentReader(AlignmentReaderFactory factory, boolean adjustQueryIndices, String[] basenames, int startReferenceIndex, int startPosition, int endReferenceIndex, int endPosition) throws IOException
factory - Factory to create new alignmentReaders.startReferenceIndex - Index of the reference for the start position.startPosition - Position on the reference for the start position.endReferenceIndex - Index of the reference for the end position.endPosition - Position on the reference for the end position.basenames - Set of alignments to concatenate.IOException - If an error occurs opening or reading the alignment files.public ConcatSortedAlignmentReader(String[] basenames, int startReferenceIndex, int startPosition, int endReferenceIndex, int endPosition) throws IOException
startReferenceIndex - Index of the reference for the start position.startPosition - Position on the reference for the start position.endReferenceIndex - Index of the reference for the end position.endPosition - Position on the reference for the end position.basenames - Set of alignments to concatenate.IOException - If an error occurs opening or reading the alignment files.public ConcatSortedAlignmentReader(AlignmentReaderFactory alignmentReaderFactory, String[] basenames) throws IOException
IOExceptionpublic ConcatSortedAlignmentReader(AlignmentReaderFactory alignmentReaderFactory, boolean adjustQueryIndices, String[] basenames) throws IOException
IOExceptionpublic ConcatSortedAlignmentReader(boolean adjustQueryIndices,
String... basenames)
throws IOException
IOExceptionpublic ConcatSortedAlignmentReader(NonAmbiguousAlignmentReaderFactory alignmentReaderFactory, boolean adjustQueryIndices, String... basenames) throws IOException
IOExceptionpublic final Alignments.AlignmentEntry skipTo(int targetIndex, int position) throws IOException
targetIndex - The index of the target sequence to skip to.position - The position on the target sequence.IOException - If an error occurs reading the alignment header. The header is accessed to check that the alignment is sorted.public boolean hasNext()
hasNext in interface Iterator<Alignments.AlignmentEntry>hasNext in class ConcatAlignmentReaderpublic int getReaderIndex()
public Alignments.AlignmentEntry next()
next in interface Iterator<Alignments.AlignmentEntry>next in class ConcatAlignmentReaderpublic void setGenomicRange(GenomicRange genomicRange) throws IOException
IOExceptionCopyright © 2018 Campagne Laboratory. All rights reserved.