public class ConcatAlignmentReader extends AbstractConcatAlignmentReader
| Modifier and Type | Field and Description |
|---|---|
protected int |
activeIndex |
protected boolean |
adjustQueryIndices |
protected boolean[] |
hasReadOrigin |
protected AlignmentReader[] |
readers |
protected it.unimi.dsi.fastutil.ints.IntSet |
readersWithMoreEntries |
protected int[][] |
readOriginPermutations
Permutations for read origin indices.
|
adjustSampleIndicesalignerName, alignerVersion, constantLength, constantQueryLengths, largestQueryIndex, numberOfQueries, numberOfTargets, queryIdentifiers, sampleBasenames, smallestQueryIndex, targetIdentifiers, targetLengths| Constructor and Description |
|---|
ConcatAlignmentReader(AlignmentReaderFactory alignmentReaderFactory,
boolean adjustQueryIndices,
int startReferenceIndex,
int startPosition,
int endReferenceIndex,
int endPosition,
String... basenames)
Construct an alignment reader over a set of alignments.
|
ConcatAlignmentReader(AlignmentReaderFactory alignmentReaderFactory,
boolean adjustQueryIndices,
String... basenames)
Construct an alignment reader over a set of alignments.
|
ConcatAlignmentReader(boolean adjustQueryIndices,
String... basenames)
Construct an alignment reader over a set of alignments.
|
ConcatAlignmentReader(String... basenames)
Construct an alignment reader over a RepositionableInputStreamset of alignments.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the underlying readers.
|
String |
getAlignerName() |
String |
getAlignerVersion() |
ConcatenatePermutations |
getConcatPerm()
Obtain the concatenate permutation helper.
|
it.unimi.dsi.fastutil.objects.ObjectList<ReferenceLocation> |
getLocations(int modulo) |
it.unimi.dsi.fastutil.objects.ObjectList<ReferenceLocation> |
getLocationsByBytes(int numBytesPerSlice) |
ReferenceLocation |
getMaxLocation()
Return the maximum location in this alignment.
|
ReferenceLocation |
getMinLocation()
Return the minimum location in this alignment.
|
int |
getNumberOfAlignedReads() |
ReadGroupHelper |
getReadGroupHelper() |
ReadOriginInfo |
getReadOriginInfo()
Return the read origin infos for the concatenated alignment.
|
Properties |
getStatistics()
Obtain statistics about this alignment as a Java property instance.
|
boolean |
hasNext()
Returns true if the input has more entries.
|
Iterator<Alignments.AlignmentEntry> |
iterator()
Iterator over alignment entries.
|
protected int |
mergedQueryIndex(int readerIndex,
int queryIndex) |
Alignments.AlignmentEntry |
next()
Returns the next alignment entry from the input stream.
|
protected Alignments.AlignmentEntry.Builder |
processReadGroups(Alignments.AlignmentEntry alignmentEntry,
Alignments.AlignmentEntry.Builder builder,
int readerIndex) |
void |
readHeader()
Read the header of this alignment.
|
void |
remove()
This operation is not supported by this iterator.
|
void |
setAdjustQueryIndices(boolean adjustQueryIndices)
Deprecated.
|
void |
setStartEndOffsets(String startOffsetArgument,
String endOffsetArgument)
Restrict concatenation to a slice of the inputs.
|
setAdjustSampleIndicesgetBasename, getBasenames, getLargestSplitQueryIndex, getNumberOfQueries, getNumberOfTargets, getQueryIdentifiers, getSampleBasename, getSmallestSplitQueryIndex, getTargetIdentifiers, getTargetLength, getTargetLength, isConstantQueryLengths, isHeaderLoaded, setHeaderLoadedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingforEach, spliteratorprotected final AlignmentReader[] readers
protected final it.unimi.dsi.fastutil.ints.IntSet readersWithMoreEntries
protected int activeIndex
protected boolean adjustQueryIndices
protected int[][] readOriginPermutations
protected boolean[] hasReadOrigin
public ConcatAlignmentReader(String... basenames) throws IOException
basenames - Basenames of the individual alignemnts to combine.IOException - If an error occurs reading the header of the alignments.public ConcatAlignmentReader(boolean adjustQueryIndices,
String... basenames)
throws IOException
basenames - Basenames of the individual alignemnts to combine.adjustQueryIndices - if we need to adjustQueryIndicesIOException - If an error occurs reading the header of the alignments.public ConcatAlignmentReader(AlignmentReaderFactory alignmentReaderFactory, boolean adjustQueryIndices, String... basenames) throws IOException
alignmentReaderFactory - Factory to create new alignmentReaders.adjustQueryIndices - if we need to adjustQueryIndicesbasenames - Basenames of the individual alignemnts to combine.IOException - If an error occurs reading the header of the alignments.public ConcatAlignmentReader(AlignmentReaderFactory alignmentReaderFactory, boolean adjustQueryIndices, int startReferenceIndex, int startPosition, int endReferenceIndex, int endPosition, String... basenames) throws IOException
alignmentReaderFactory - Factory to create new alignmentReaders.adjustQueryIndices - if we need to adjustQueryIndicesstartReferenceIndex - 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 - Basenames of the individual alignemnts to combine.IOException - If an error occurs reading the header of the alignments.public ConcatenatePermutations getConcatPerm()
public final void readHeader()
throws IOException
readHeader in class AbstractAlignmentReaderIOException - If an error occurs.public ReadGroupHelper getReadGroupHelper()
protected int mergedQueryIndex(int readerIndex,
int queryIndex)
public final Iterator<Alignments.AlignmentEntry> iterator()
public boolean hasNext()
public String getAlignerName()
getAlignerName in class AbstractAlignmentReaderpublic String getAlignerVersion()
getAlignerVersion in class AbstractAlignmentReaderpublic Alignments.AlignmentEntry next()
protected Alignments.AlignmentEntry.Builder processReadGroups(Alignments.AlignmentEntry alignmentEntry, Alignments.AlignmentEntry.Builder builder, int readerIndex)
public void remove()
@Deprecated public void setAdjustQueryIndices(boolean adjustQueryIndices)
public Properties getStatistics()
public int getNumberOfAlignedReads()
public void close()
throws IOException
IOException - if an I/O error occurspublic ReferenceLocation getMinLocation() throws IOException
AbstractAlignmentReadergetMinLocation in class AbstractAlignmentReaderIOExceptionpublic ReferenceLocation getMaxLocation() throws IOException
AbstractAlignmentReadergetMaxLocation in class AbstractAlignmentReaderIOExceptionpublic it.unimi.dsi.fastutil.objects.ObjectList<ReferenceLocation> getLocationsByBytes(int numBytesPerSlice) throws IOException
IOExceptionpublic it.unimi.dsi.fastutil.objects.ObjectList<ReferenceLocation> getLocations(int modulo) throws IOException
IOExceptionpublic ReadOriginInfo getReadOriginInfo()
public void setStartEndOffsets(String startOffsetArgument, String endOffsetArgument)
startOffsetArgument - endOffsetArgument - Copyright © 2017 Campagne Laboratory. All rights reserved.