Class DNASequenceCreator
- java.lang.Object
-
- org.biojava.nbio.core.sequence.io.DNASequenceCreator
-
- All Implemented Interfaces:
SequenceCreatorInterface<NucleotideCompound>
public class DNASequenceCreator extends Object implements SequenceCreatorInterface<NucleotideCompound>
A helper class that allows different ways to read a string and create a DNA sequence. Used in FastaReaderHelper and probably a layer that isn't needed- Author:
- Scooter Willis
-
-
Constructor Summary
Constructors Constructor Description DNASequenceCreator(CompoundSet<NucleotideCompound> compoundSet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractSequence<NucleotideCompound>
getSequence(String sequence, long index)
AbstractSequence<NucleotideCompound>
getSequence(List<NucleotideCompound> list)
AbstractSequence<NucleotideCompound>
getSequence(ProxySequenceReader<NucleotideCompound> proxyLoader, long index)
-
-
-
Constructor Detail
-
DNASequenceCreator
public DNASequenceCreator(CompoundSet<NucleotideCompound> compoundSet)
- Parameters:
compoundSet
-
-
-
Method Detail
-
getSequence
public AbstractSequence<NucleotideCompound> getSequence(String sequence, long index) throws CompoundNotFoundException
- Specified by:
getSequence
in interfaceSequenceCreatorInterface<NucleotideCompound>
- Parameters:
sequence
- The Sequence from a Stringindex
- Currently not used- Returns:
- Throws:
CompoundNotFoundException
-
getSequence
public AbstractSequence<NucleotideCompound> getSequence(ProxySequenceReader<NucleotideCompound> proxyLoader, long index)
- Specified by:
getSequence
in interfaceSequenceCreatorInterface<NucleotideCompound>
- Parameters:
proxyLoader
- The Sequence from a ProxySequenceReaderindex
- Currently not used- Returns:
-
getSequence
public AbstractSequence<NucleotideCompound> getSequence(List<NucleotideCompound> list)
- Specified by:
getSequence
in interfaceSequenceCreatorInterface<NucleotideCompound>
- Parameters:
list
-- Returns:
-
-