public class ReferenceSequenceFileFactory
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.util.Set<java.lang.String> |
FASTA_EXTENSIONS |
| Constructor and Description |
|---|
ReferenceSequenceFileFactory() |
| Modifier and Type | Method and Description |
|---|---|
static java.io.File |
getDefaultDictionaryForReferenceSequence(java.io.File file)
Returns the default dictionary name for a FASTA file.
|
static java.nio.file.Path |
getDefaultDictionaryForReferenceSequence(java.nio.file.Path path)
Returns the default dictionary name for a FASTA file.
|
static java.lang.String |
getFastaExtension(java.nio.file.Path path)
Returns the FASTA extension for the path.
|
static java.nio.file.Path |
getFastaIndexFileName(java.nio.file.Path fastaFile)
Returns the index name for a FASTA file.
|
static ReferenceSequenceFile |
getReferenceSequenceFile(java.io.File file)
Attempts to determine the type of the reference file and return an instance
of ReferenceSequenceFile that is appropriate to read it.
|
static ReferenceSequenceFile |
getReferenceSequenceFile(java.io.File file,
boolean truncateNamesAtWhitespace)
Attempts to determine the type of the reference file and return an instance
of ReferenceSequenceFile that is appropriate to read it.
|
static ReferenceSequenceFile |
getReferenceSequenceFile(java.io.File file,
boolean truncateNamesAtWhitespace,
boolean preferIndexed)
Attempts to determine the type of the reference file and return an instance
of ReferenceSequenceFile that is appropriate to read it.
|
static ReferenceSequenceFile |
getReferenceSequenceFile(java.nio.file.Path path)
Attempts to determine the type of the reference file and return an instance
of ReferenceSequenceFile that is appropriate to read it.
|
static ReferenceSequenceFile |
getReferenceSequenceFile(java.nio.file.Path path,
boolean truncateNamesAtWhitespace)
Attempts to determine the type of the reference file and return an instance
of ReferenceSequenceFile that is appropriate to read it.
|
static ReferenceSequenceFile |
getReferenceSequenceFile(java.nio.file.Path path,
boolean truncateNamesAtWhitespace,
boolean preferIndexed)
Attempts to determine the type of the reference file and return an instance
of ReferenceSequenceFile that is appropriate to read it.
|
public static ReferenceSequenceFile getReferenceSequenceFile(java.io.File file)
file - the reference sequence file on diskpublic static ReferenceSequenceFile getReferenceSequenceFile(java.io.File file, boolean truncateNamesAtWhitespace)
file - the reference sequence file on disktruncateNamesAtWhitespace - if true, only include the first word of the sequence namepublic static ReferenceSequenceFile getReferenceSequenceFile(java.io.File file, boolean truncateNamesAtWhitespace, boolean preferIndexed)
file - the reference sequence file on disktruncateNamesAtWhitespace - if true, only include the first word of the sequence namepreferIndexed - if true attempt to return an indexed reader that supports non-linear traversal, else return the non-indexed readerpublic static ReferenceSequenceFile getReferenceSequenceFile(java.nio.file.Path path)
path - the reference sequence file on diskpublic static ReferenceSequenceFile getReferenceSequenceFile(java.nio.file.Path path, boolean truncateNamesAtWhitespace)
path - the reference sequence file on disktruncateNamesAtWhitespace - if true, only include the first word of the sequence namepublic static ReferenceSequenceFile getReferenceSequenceFile(java.nio.file.Path path, boolean truncateNamesAtWhitespace, boolean preferIndexed)
path - the reference sequence file pathtruncateNamesAtWhitespace - if true, only include the first word of the sequence namepreferIndexed - if true attempt to return an indexed reader that supports non-linear traversal, else return the non-indexed readerpublic static java.io.File getDefaultDictionaryForReferenceSequence(java.io.File file)
file - the reference sequence file on disk.public static java.nio.file.Path getDefaultDictionaryForReferenceSequence(java.nio.file.Path path)
path - the reference sequence file path.public static java.lang.String getFastaExtension(java.nio.file.Path path)
path - the reference sequence file path.java.lang.IllegalArgumentException - if the file is not a supported reference file.public static java.nio.file.Path getFastaIndexFileName(java.nio.file.Path fastaFile)
fastaFile - the reference sequence file path.