public class DNASequence extends AbstractSequence<NucleotideCompound>
Modifier and Type | Class and Description |
---|---|
static class |
DNASequence.DNAType
The type of DNA sequence
|
AbstractSequence.AnnotationType
Constructor and Description |
---|
DNASequence()
Shouldn't be used but makes it bean happy
|
DNASequence(SequenceReader<NucleotideCompound> proxyLoader)
Create a sequence where the actual storage of the sequence data is somewhere else
|
DNASequence(SequenceReader<NucleotideCompound> proxyLoader,
CompoundSet<NucleotideCompound> compoundSet)
Create a sequence from a ProxySequencereader and user defined compound set
|
DNASequence(String seqString)
String is king and create a sequence from DNA with default DNA compound set
|
DNASequence(String seqString,
CompoundSet<NucleotideCompound> compoundSet)
Create a sequence from a string with user defined compound set
|
Modifier and Type | Method and Description |
---|---|
SequenceView<NucleotideCompound> |
getComplement()
Returns a Sequence which will complement every base
|
DNASequence.DNAType |
getDNAType() |
int |
getGCCount()
Get the GC count in the DNA Sequence
|
SequenceView<NucleotideCompound> |
getReverse()
Returns a Sequence which runs in the current reverse order
|
SequenceView<NucleotideCompound> |
getReverseComplement()
Delegates to
AbstractSequence.getInverse() for the reverse complement |
RNASequence |
getRNASequence()
Return the RNASequence equivalent of the DNASequence using default Transcription Engine.
|
RNASequence |
getRNASequence(Frame frame)
Allows the user to pass in the Frame shift.
|
RNASequence |
getRNASequence(TranscriptionEngine engine)
Allow a user to pass in a rules engine to do the DNA to RNA translation
|
RNASequence |
getRNASequence(TranscriptionEngine engine,
Frame frame) |
static void |
main(String[] args) |
void |
setDNAType(DNASequence.DNAType dnaType) |
addFeature, addFeature, addNote, countCompounds, equals, getAccession, getAnnotationType, getAsList, getBioBegin, getBioEnd, getComments, getCompoundAt, getCompoundSet, getDatabaseReferences, getDescription, getFeatureRetriever, getFeatures, getFeatures, getFeatures, getFeaturesByType, getFeaturesKeyWord, getIndexOf, getInverse, getLastIndexOf, getLength, getNotesList, getOriginalHeader, getParentSequence, getProxySequenceReader, getReferences, getSequenceAsString, getSequenceAsString, getSequenceScore, getSource, getSubSequence, getTaxonomy, getUserCollection, hashCode, iterator, removeFeature, removeNote, setAccession, setAnnotationType, setBioBegin, setBioEnd, setComments, setCompoundSet, setDatabaseReferences, setDescription, setFeatureRetriever, setFeaturesKeyWord, setNotesList, setOriginalHeader, setParentSequence, setProxySequenceReader, setReferences, setSequenceScore, setSource, setTaxonomy, setUserCollection, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public DNASequence()
public DNASequence(String seqString) throws CompoundNotFoundException
seqString
- CompoundNotFoundException
public DNASequence(SequenceReader<NucleotideCompound> proxyLoader)
proxyLoader
- public DNASequence(String seqString, CompoundSet<NucleotideCompound> compoundSet) throws CompoundNotFoundException
seqString
- compoundSet
- CompoundNotFoundException
public DNASequence(SequenceReader<NucleotideCompound> proxyLoader, CompoundSet<NucleotideCompound> compoundSet)
proxyLoader
- compoundSet
- public RNASequence getRNASequence()
public RNASequence getRNASequence(TranscriptionEngine engine)
engine
- public RNASequence getRNASequence(Frame frame)
frame
- public RNASequence getRNASequence(TranscriptionEngine engine, Frame frame)
public int getGCCount()
public SequenceView<NucleotideCompound> getReverse()
public SequenceView<NucleotideCompound> getComplement()
public SequenceView<NucleotideCompound> getReverseComplement()
AbstractSequence.getInverse()
for the reverse complementpublic DNASequence.DNAType getDNAType()
public void setDNAType(DNASequence.DNAType dnaType)
dnaType
- the dnaType to setCopyright © 2000–2018 BioJava. All rights reserved.