public abstract class AlignmentReaderFactoryBase extends Object implements AlignmentReaderFactory
| Constructor and Description |
|---|
AlignmentReaderFactoryBase() |
| Modifier and Type | Method and Description |
|---|---|
AlignmentReader[] |
createReader(String[] basenames,
boolean upgrade) |
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[] |
createReaderArray(int numElements)
Returns an array to hold AlignmentReader implementations.
|
String[] |
getBasenames(String[] inputFilenames)
Base implementation follows the Goby alignment conventions for basenames.
|
FileSlice |
getSlice(String basename,
GenomicRange range)
Obtain a file slice for the specified genomic range, in the specified alignment.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateReader, createReader, createReaderpublic AlignmentReader[] createReaderArray(int numElements) throws IOException
AlignmentReaderFactorycreateReaderArray in interface AlignmentReaderFactorynumElements - 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 AlignmentReaderFactorybasename - 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 AlignmentReader createReader(String basename, GenomicRange range) throws IOException
AlignmentReaderFactorycreateReader in interface AlignmentReaderFactorybasename - 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.public FileSlice getSlice(String basename, GenomicRange range) throws IOException
AlignmentReaderFactorygetSlice in interface AlignmentReaderFactorybasename - Basename of the alignment for the slice refers to.range - Genomic range for which a slice should be generated.IOExceptionpublic AlignmentReader[] createReader(String[] basenames, boolean upgrade) throws IOException
createReader in interface AlignmentReaderFactoryIOExceptionpublic String[] getBasenames(String[] inputFilenames)
getBasenames in interface AlignmentReaderFactoryinputFilenames - filenames of input alignments, which may include extensions.Copyright © 2017 Campagne Laboratory. All rights reserved.