public class FileProxyDNASequenceCreator extends Object implements SequenceCreatorInterface<NucleotideCompound>
Constructor and Description |
---|
FileProxyDNASequenceCreator(File file,
CompoundSet<NucleotideCompound> compoundSet,
SequenceParserInterface sequenceParser)
Need File so that we can store full path name in SequenceFileProxyLoader for Random File access as a quick read
|
Modifier and Type | Method and Description |
---|---|
AbstractSequence<NucleotideCompound> |
getSequence(List<NucleotideCompound> list)
Not sure of use case and currently not supported
|
AbstractSequence<NucleotideCompound> |
getSequence(ProxySequenceReader<NucleotideCompound> proxyLoader,
long index)
Should be able to extend the same concept to a remote URL call or database connection.
|
AbstractSequence<NucleotideCompound> |
getSequence(String sequence,
long index)
Even though we are passing in the sequence we really only care about the length of the sequence and the offset
index in the fasta file.
|
public FileProxyDNASequenceCreator(File file, CompoundSet<NucleotideCompound> compoundSet, SequenceParserInterface sequenceParser)
fastaFile
- compoundSet
- public AbstractSequence<NucleotideCompound> getSequence(String sequence, long index) throws CompoundNotFoundException, IOException
getSequence
in interface SequenceCreatorInterface<NucleotideCompound>
sequence
- index
- CompoundNotFoundException
IOException
public AbstractSequence<NucleotideCompound> getSequence(ProxySequenceReader<NucleotideCompound> proxyLoader, long index)
getSequence
in interface SequenceCreatorInterface<NucleotideCompound>
proxyLoader
- index
- public AbstractSequence<NucleotideCompound> getSequence(List<NucleotideCompound> list)
getSequence
in interface SequenceCreatorInterface<NucleotideCompound>
list
- Copyright © 2000–2016 BioJava. All rights reserved.