Package org.biojava.nbio.core.sequence
Class TranscriptSequence
java.lang.Object
org.biojava.nbio.core.sequence.template.AbstractSequence<NucleotideCompound>
org.biojava.nbio.core.sequence.DNASequence
org.biojava.nbio.core.sequence.TranscriptSequence
- All Implemented Interfaces:
- Iterable<NucleotideCompound>,- Accessioned,- Sequence<NucleotideCompound>
This is the sequence if you want to go from a gene sequence to a protein sequence. Need to start with a
 ChromosomeSequence then getting a GeneSequence and then a TranscriptSequence
- Author:
- Scooter Willis
- 
Nested Class SummaryNested classes/interfaces inherited from class org.biojava.nbio.core.sequence.DNASequenceDNASequence.DNATypeNested classes/interfaces inherited from class org.biojava.nbio.core.sequence.template.AbstractSequenceAbstractSequence.AnnotationType
- 
Constructor SummaryConstructorsConstructorDescriptionTranscriptSequence(GeneSequence parentDNASequence, int begin, int end) Deprecated.TranscriptSequence(GeneSequence parentDNASequence, AccessionID accessionID, int begin, int end) 
- 
Method SummaryModifier and TypeMethodDescriptionaddCDS(AccessionID accession, int begin, int end, int phase) Add a Coding Sequence region with phase to the transcript sequencevoidaddStartCodonSequence(AccessionID accession, int begin, int end) Sets the start codon sequence at given begin / end location.voidaddStopCodonSequence(AccessionID accession, int begin, int end) Sets the stop codon sequence at given begin / end location.Get the CDS sequences that have been added to the TranscriptSequencesGet the stitched together CDS sequences then maps to the cDNAintReturns the length of the SequenceReturn a list of protein sequences based on each CDS sequence where the phase shift between two CDS sequences is assigned to the CDS sequence that starts the triplet.Get the protein sequenceGet the protein sequence with user defined TranscriptEngineRemove a CDS or coding sequence from the transcript sequenceMethods inherited from class org.biojava.nbio.core.sequence.DNASequencegetComplement, getDNAType, getGCCount, getReverse, getReverseComplement, getRNASequence, getRNASequence, getRNASequence, getRNASequence, setDNATypeMethods inherited from class org.biojava.nbio.core.sequence.template.AbstractSequenceaddFeature, addFeature, addNote, countCompounds, equals, getAccession, getAnnotationType, getAsList, getBioBegin, getBioEnd, getComments, getCompoundAt, getCompoundSet, getDatabaseReferences, getDescription, getFeatureRetriever, getFeatures, getFeatures, getFeatures, getFeaturesByType, getFeaturesKeyWord, getIndexOf, getInverse, getLastIndexOf, 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, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Constructor Details- 
TranscriptSequenceDeprecated.Use public TranscriptSequence(GeneSequence parentDNASequence, AccessionID accessionID, int begin, int end) that requires an explicit accessionID
- 
TranscriptSequencepublic TranscriptSequence(GeneSequence parentDNASequence, AccessionID accessionID, int begin, int end) - Parameters:
- parentDNASequence-
- accessionID-
- begin-
- end- inclusive of end
- Throws:
- IllegalArgumentException- if the parentDNASequence is incompatible with DNACompoundSet
 
 
- 
- 
Method Details- 
getLengthDescription copied from interface:SequenceReturns the length of the Sequence- Specified by:
- getLengthin interface- Sequence<NucleotideCompound>
- Overrides:
- getLengthin class- AbstractSequence<NucleotideCompound>
- Returns:
 
- 
getStrand- Returns:
- the strand
 
- 
removeCDSRemove a CDS or coding sequence from the transcript sequence- Parameters:
- accession-
- Returns:
 
- 
getCDSSequencesGet the CDS sequences that have been added to the TranscriptSequences- Returns:
 
- 
addCDSAdd a Coding Sequence region with phase to the transcript sequence- Parameters:
- accession-
- begin-
- end-
- phase- 0,1,2
- Returns:
- Throws:
- Exception
 
- 
getProteinCDSSequencesReturn a list of protein sequences based on each CDS sequence where the phase shift between two CDS sequences is assigned to the CDS sequence that starts the triplet. This can be used to map a CDS/exon region of a protein sequence back to the DNA sequence If you have a protein sequence and a predicted gene you can take the predict CDS protein sequences and align back to the protein sequence. If you have errors in mapping the predicted protein CDS regions to an the known protein sequence then you can identify possible errors in the prediction- Returns:
 
- 
getDNACodingSequenceGet the stitched together CDS sequences then maps to the cDNA- Returns:
 
- 
getProteinSequenceGet the protein sequence- Returns:
 
- 
getProteinSequenceGet the protein sequence with user defined TranscriptEngine- Parameters:
- engine-
- Returns:
 
- 
getStartCodonSequence- Returns:
- the startCodonSequence
 
- 
addStartCodonSequenceSets the start codon sequence at given begin / end location. Note that calling this method multiple times will replace any existing value.- Parameters:
- accession-
- begin-
- end-
 
- 
getStopCodonSequence- Returns:
- the stopCodonSequence
 
- 
addStopCodonSequenceSets the stop codon sequence at given begin / end location. Note that calling this method multiple times will replace any existing value.- Parameters:
- accession-
- begin-
- end-
 
 
-