SequenceCreatorInterface<AminoAcidCompound>public class FileProxyProteinSequenceCreator extends java.lang.Object implements SequenceCreatorInterface<AminoAcidCompound>
| Constructor | Description |
|---|---|
FileProxyProteinSequenceCreator(java.io.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 | Description |
|---|---|---|
AbstractSequence<AminoAcidCompound> |
getSequence(java.lang.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.
|
AbstractSequence<AminoAcidCompound> |
getSequence(java.util.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.
|
public FileProxyProteinSequenceCreator(java.io.File file,
CompoundSet<AminoAcidCompound> compoundSet,
SequenceParserInterface sequenceParser)
fastaFile - compoundSet - public AbstractSequence<AminoAcidCompound> getSequence(java.lang.String sequence, long index) throws CompoundNotFoundException, java.io.IOException
getSequence in interface SequenceCreatorInterface<AminoAcidCompound>sequence - index - CompoundNotFoundExceptionjava.io.IOExceptionpublic AbstractSequence<AminoAcidCompound> getSequence(ProxySequenceReader<AminoAcidCompound> proxyLoader, long index)
getSequence in interface SequenceCreatorInterface<AminoAcidCompound>proxyLoader - index - public AbstractSequence<AminoAcidCompound> getSequence(java.util.List<AminoAcidCompound> list)
getSequence in interface SequenceCreatorInterface<AminoAcidCompound>list -