|
Goby API goby-869 (20120309094456) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cornell.med.icb.goby.alignments.AbstractAlignmentReader
edu.cornell.med.icb.goby.alignments.AbstractConcatAlignmentReader
edu.cornell.med.icb.goby.alignments.ConcatAlignmentReader
public class ConcatAlignmentReader
Read over a set of alignments. This aligner concatenates entries from the input alignment. Reference sequences must match exactly across the input alignments. Query are assumed to be entirely distinct and will be treated as independent observations (e.g., reads from multiple independent samples). To this effect, alignment entries read from different input basenames, which would otherwise share an identical query index, are renumbered with distinct query indices.
| Field Summary | |
|---|---|
protected int |
activeIndex
|
protected boolean |
adjustQueryIndices
|
protected AlignmentReader[] |
readers
|
protected IntSet |
readersWithMoreEntries
|
| Fields inherited from class edu.cornell.med.icb.goby.alignments.AbstractConcatAlignmentReader |
|---|
adjustSampleIndices |
| Fields inherited from class edu.cornell.med.icb.goby.alignments.AbstractAlignmentReader |
|---|
alignerName, alignerVersion, constantLength, constantQueryLengths, largestQueryIndex, numberOfQueries, numberOfTargets, queryIdentifiers, sampleBasenames, smallestQueryIndex, targetIdentifiers, targetLengths |
| Constructor Summary | |
|---|---|
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 set of alignments. |
|
| Method Summary | |
|---|---|
void |
close()
Close the underlying readers. |
String |
getAlignerName()
|
String |
getAlignerVersion()
|
ObjectList<ReferenceLocation> |
getLocations(int modulo)
|
int |
getNumberOfAlignedReads()
|
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 queryIndex)
|
Alignments.AlignmentEntry |
next()
Returns the next alignment entry from the input stream. |
void |
readHeader()
Read the header of this alignment. |
void |
remove()
This operation is not supported by this iterator. |
void |
setAdjustQueryIndices(boolean adjustQueryIndices)
Deprecated. |
| Methods inherited from class edu.cornell.med.icb.goby.alignments.AbstractConcatAlignmentReader |
|---|
setAdjustSampleIndices |
| Methods inherited from class edu.cornell.med.icb.goby.alignments.AbstractAlignmentReader |
|---|
getBasename, getBasenames, getLargestSplitQueryIndex, getNumberOfQueries, getNumberOfTargets, getQueryIdentifiers, getSampleBasename, getSmallestSplitQueryIndex, getTargetIdentifiers, getTargetLength, getTargetLength, isConstantQueryLengths, isHeaderLoaded, setHeaderLoaded |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final AlignmentReader[] readers
protected final IntSet readersWithMoreEntries
protected int activeIndex
protected boolean adjustQueryIndices
| Constructor Detail |
|---|
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 adjustQueryIndices
IOException - 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.| Method Detail |
|---|
public final void readHeader()
throws IOException
readHeader in class AbstractAlignmentReaderIOException - If an error occurs.protected int mergedQueryIndex(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()
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 occurs
public ObjectList<ReferenceLocation> getLocations(int modulo)
throws IOException
IOException
|
Goby API goby-869 (20120309094456) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||