|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compomics.util.nucleotide.NucleotideSequenceImpl
public class NucleotideSequenceImpl
This class represents a nucleotide sequence (RNA or DNA).
Constructor Summary | |
---|---|
NucleotideSequenceImpl(java.lang.String aSequence)
This constructor allows the construction of an Object, wrapping a nucleotidesequence. |
|
NucleotideSequenceImpl(java.lang.String aSequence,
java.util.Properties aCodonUsageTable)
This constructor allows the construction of an Object, wrapping a nucleotidesequence. |
|
NucleotideSequenceImpl(java.lang.String aSequence,
java.lang.String aCodonUsageTable)
This constructor allows the construction of an Object, wrapping a nucleotidesequence. |
Method Summary | |
---|---|
int |
getLength()
This method reports on the length of the current sequence. |
double |
getMass()
This method will return the mass for the sequence. |
java.lang.String |
getReverseComplementary()
This method returns the reverse complementary strand for the sequence. |
java.lang.String |
getSequence()
This method will retrieve the sequence. |
void |
setSequence(java.lang.String aSequence)
This method will set the sequence. |
AASequenceImpl[] |
translate()
This method translates the specified nucleotidesequence into the six reading frames. |
java.util.Vector |
translateToStopCodonSeparatedEntries(java.lang.String aDatabaseIdentifier,
java.lang.String aShortOrganism)
This method translates the specified nucleotidesequence into the six reading frames. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NucleotideSequenceImpl(java.lang.String aSequence)
aSequence
- String with the nucleotide sequence.public NucleotideSequenceImpl(java.lang.String aSequence, java.util.Properties aCodonUsageTable)
aSequence
- String with the nucleotide sequence.aCodonUsageTable
- Properties instance with the codon usage table
(triplet is key, single-letter amino acid is value).public NucleotideSequenceImpl(java.lang.String aSequence, java.lang.String aCodonUsageTable)
aSequence
- String with the nucleotide sequence.aCodonUsageTable
- Properties instance with the codon usage table
(triplet is key, single-letter amino acid is value).Method Detail |
---|
public void setSequence(java.lang.String aSequence)
setSequence
in interface Sequence
aSequence
- String with the sequence.public int getLength()
getLength
in interface Sequence
public double getMass()
getMass
in interface Sequence
public java.lang.String getSequence()
getSequence
in interface Sequence
public AASequenceImpl[] translate()
public java.util.Vector translateToStopCodonSeparatedEntries(java.lang.String aDatabaseIdentifier, java.lang.String aShortOrganism)
aDatabaseIdentifier
- String to include the database origin in the protein entry annotation.aShortOrganism
- String to include the organism origin in the protein entry annotation.
public java.lang.String getReverseComplementary()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |