public class FileProxyProteinSequenceCreator extends Object implements SequenceCreatorInterface<AminoAcidCompound>
| Constructor and Description |
|---|
FileProxyProteinSequenceCreator(File file,
CompoundSet<AminoAcidCompound> 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<AminoAcidCompound> |
getSequence(List<AminoAcidCompound> list)
Not sure of use case and currently not supported
|
AbstractSequence<AminoAcidCompound> |
getSequence(ProxySequenceReader<AminoAcidCompound> proxyLoader,
long index)
Should be able to extend the same concept to a remote URL call or database connection.
|
AbstractSequence<AminoAcidCompound> |
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 FileProxyProteinSequenceCreator(File file, CompoundSet<AminoAcidCompound> compoundSet, SequenceParserInterface sequenceParser)
fastaFile - compoundSet - public AbstractSequence<AminoAcidCompound> getSequence(String sequence, long index) throws CompoundNotFoundException, IOException
getSequence in interface SequenceCreatorInterface<AminoAcidCompound>sequence - index - CompoundNotFoundExceptionIOExceptionpublic AbstractSequence<AminoAcidCompound> getSequence(ProxySequenceReader<AminoAcidCompound> proxyLoader, long index)
getSequence in interface SequenceCreatorInterface<AminoAcidCompound>proxyLoader - index - public AbstractSequence<AminoAcidCompound> getSequence(List<AminoAcidCompound> list)
getSequence in interface SequenceCreatorInterface<AminoAcidCompound>list - Copyright © 2000–2019 BioJava. All rights reserved.