Package org.biojava.nbio.core.sequence
Class RNASequence
- java.lang.Object
-
- org.biojava.nbio.core.sequence.template.AbstractSequence<NucleotideCompound>
-
- org.biojava.nbio.core.sequence.RNASequence
-
- All Implemented Interfaces:
Iterable<NucleotideCompound>
,Accessioned
,Sequence<NucleotideCompound>
public class RNASequence extends AbstractSequence<NucleotideCompound>
RNASequence where RNACompoundSet are the allowed values- Author:
- Scooter Willis
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.biojava.nbio.core.sequence.template.AbstractSequence
AbstractSequence.AnnotationType
-
-
Constructor Summary
Constructors Constructor Description RNASequence(String seqString)
Create a RNA sequence from a StringRNASequence(String seqString, CompoundSet<NucleotideCompound> compoundSet)
Create a RNA sequence from a string with a user defined RNA compound setRNASequence(ProxySequenceReader<NucleotideCompound> proxyLoader)
Create a RNA aequence from a proxy readerRNASequence(ProxySequenceReader<NucleotideCompound> proxyLoader, CompoundSet<NucleotideCompound> compoundSet)
Create a RNA sequence from a proxy reader and user-defined RNA compound set
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SequenceView<NucleotideCompound>
getComplement()
Get the complement view of the RNA sequencedouble
getGC()
SequenceView<NucleotideCompound>
getInverse()
Get the inverse view of the sequence.ProteinSequence
getProteinSequence()
Get the ProteinSequence from the RNA sequenceProteinSequence
getProteinSequence(TranscriptionEngine engine)
Get the ProteinSequence from the RNA sequence with user-defined transcription engineSequenceView<NucleotideCompound>
getReverseComplement()
Get reverse complement view of the sequence-
Methods inherited from class org.biojava.nbio.core.sequence.template.AbstractSequence
addFeature, addFeature, addNote, countCompounds, equals, getAccession, getAnnotationType, getAsList, getBioBegin, getBioEnd, getComments, getCompoundAt, getCompoundSet, getDatabaseReferences, getDescription, getFeatureRetriever, getFeatures, getFeatures, getFeatures, getFeaturesByType, getFeaturesKeyWord, getIndexOf, getLastIndexOf, getLength, getNotesList, getOriginalHeader, getParentSequence, getProxySequenceReader, getReferences, getSequenceAsString, getSequenceAsString, getSequenceScore, getSource, getSubSequence, getTaxonomy, getUserCollection, hashCode, initSequenceStorage, iterator, removeFeature, removeNote, setAccession, setAnnotationType, setBioBegin, setBioEnd, setComments, setCompoundSet, setDatabaseReferences, setDescription, setFeatureRetriever, setFeaturesKeyWord, setNotesList, setOriginalHeader, setParentSequence, setProxySequenceReader, setReferences, setSequenceScore, setSource, setTaxonomy, setUserCollection, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
RNASequence
public RNASequence(String seqString) throws CompoundNotFoundException
Create a RNA sequence from a String- Parameters:
seqString
-- Throws:
CompoundNotFoundException
-
RNASequence
public RNASequence(ProxySequenceReader<NucleotideCompound> proxyLoader)
Create a RNA aequence from a proxy reader- Parameters:
proxyLoader
-
-
RNASequence
public RNASequence(String seqString, CompoundSet<NucleotideCompound> compoundSet) throws CompoundNotFoundException
Create a RNA sequence from a string with a user defined RNA compound set- Parameters:
seqString
-compoundSet
-- Throws:
CompoundNotFoundException
-
RNASequence
public RNASequence(ProxySequenceReader<NucleotideCompound> proxyLoader, CompoundSet<NucleotideCompound> compoundSet)
Create a RNA sequence from a proxy reader and user-defined RNA compound set- Parameters:
proxyLoader
-compoundSet
-
-
-
Method Detail
-
getReverseComplement
public SequenceView<NucleotideCompound> getReverseComplement()
Get reverse complement view of the sequence- Returns:
-
getInverse
public SequenceView<NucleotideCompound> getInverse()
Get the inverse view of the sequence. It is the reverse sequence from end to begin where use reverse could imply complement. Called getInverse() in the hopes of making less confusing.- Specified by:
getInverse
in interfaceSequence<NucleotideCompound>
- Overrides:
getInverse
in classAbstractSequence<NucleotideCompound>
- Returns:
-
getComplement
public SequenceView<NucleotideCompound> getComplement()
Get the complement view of the RNA sequence- Returns:
-
getProteinSequence
public ProteinSequence getProteinSequence()
Get the ProteinSequence from the RNA sequence- Returns:
-
getProteinSequence
public ProteinSequence getProteinSequence(TranscriptionEngine engine)
Get the ProteinSequence from the RNA sequence with user-defined transcription engine- Parameters:
engine
-- Returns:
-
getGC
public double getGC()
-
-