public class GobyAlignmentReaderFactory extends AlignmentReaderFactoryBase implements AlignmentReaderFactory
| Constructor and Description |
|---|
GobyAlignmentReaderFactory() |
| Modifier and Type | Method and Description |
|---|---|
AlignmentReader |
createReader(String basename)
Returns an implementation of AlignmentReader.
|
AlignmentReader |
createReader(String basename,
boolean upgrade)
Returns an implementation of AlignmentReader, with upgrade, or not.
|
AlignmentReader |
createReader(String basename,
int startReferenceIndex,
int startPosition,
int endReferenceIndex,
int endPosition)
Create a reader for a specific slice of an alignment file contained exactly between a start
and an end location.
|
AlignmentReaderImpl |
createReader(String basename,
long startOffset,
long endOffset)
Create a reder for reading between the byte positions startOffset and endOffset.
|
AlignmentReader[] |
createReaderArray(int numElements)
Returns an array to hold AlignmentReader implementations.
|
createReader, createReader, getBasenames, getSliceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateReader, createReader, getBasenames, getSlicepublic AlignmentReader createReader(String basename) throws IOException
AlignmentReaderFactorycreateReader in interface AlignmentReaderFactorybasename - Basename of the alignment.IOException - If an error occurs opening a reader.public AlignmentReader createReader(String basename, boolean upgrade) throws IOException
AlignmentReaderFactorycreateReader in interface AlignmentReaderFactorybasename - Basename of the alignment.upgrade - When false, the alignment is not automatically upgraded to the latest version of Goby.IOException - If an error occurs opening a reader.public AlignmentReader[] createReaderArray(int numElements) throws IOException
AlignmentReaderFactorycreateReaderArray in interface AlignmentReaderFactorycreateReaderArray in class AlignmentReaderFactoryBasenumElements - Number of elements in the array.IOException - If an error occurs opening a reader.public AlignmentReader createReader(String basename, int startReferenceIndex, int startPosition, int endReferenceIndex, int endPosition) throws IOException
AlignmentReaderFactorycreateReader in interface AlignmentReaderFactorycreateReader in class AlignmentReaderFactoryBasebasename - Basename for the alignemnt.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.IOException - Thrown if an error occurs opening or reading the alignment file.public AlignmentReaderImpl createReader(String basename, long startOffset, long endOffset) throws IOException
AlignmentReaderFactorycreateReader in interface AlignmentReaderFactorybasename - Basename of the alignment to read.startOffset - Position in the file where reading will start (in bytes).endOffset - Position in the file where reading will end (in bytes).IOException - If an error occurs opening or reading the file.Copyright © 2018 Campagne Laboratory. All rights reserved.