public interface AlignmentReaderFactory
| Modifier and Type | Method and Description |
|---|---|
AlignmentReader |
createReader(String basename)
Returns an implementation of AlignmentReader.
|
AlignmentReader[] |
createReader(String[] basenames,
boolean upgrade) |
AlignmentReader |
createReader(String basename,
boolean upgrade)
Returns an implementation of AlignmentReader, with upgrade, or not.
|
AlignmentReader |
createReader(String basename,
GenomicRange range)
Create a reader for a specific slice of an alignment file contained exactly between a start
and an end location.
|
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.
|
AlignmentReader |
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.
|
String[] |
getBasenames(String[] inputFilenames) |
FileSlice |
getSlice(String basename,
GenomicRange range)
Obtain a file slice for the specified genomic range, in the specified alignment.
|
AlignmentReader createReader(String basename) throws IOException
basename - Basename of the alignment.IOException - If an error occurs opening a reader.AlignmentReader createReader(String basename, boolean upgrade) throws IOException
basename - 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.AlignmentReader[] createReaderArray(int numElements) throws IOException
numElements - Number of elements in the array.IOException - If an error occurs opening a reader.AlignmentReader createReader(String basename, int startReferenceIndex, int startPosition, int endReferenceIndex, int endPosition) throws IOException
basename - 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.AlignmentReader createReader(String basename, GenomicRange range) throws IOException
basename - Basename for the alignemnt.range - Range/slice of the genome that the reader will be restricted to.IOException - Thrown if an error occurs opening or reading the alignment file.AlignmentReader createReader(String basename, long startOffset, long endOffset) throws IOException
basename - 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.FileSlice getSlice(String basename, GenomicRange range) throws IOException
basename - Basename of the alignment for the slice refers to.range - Genomic range for which a slice should be generated.IOExceptionAlignmentReader[] createReader(String[] basenames, boolean upgrade) throws IOException
IOExceptionCopyright © 2018 Campagne Laboratory. All rights reserved.