pub type RnaSequence = ValidatedSeq<RnaAlphabet>;Expand description
A validated RNA sequence (IUPAC alphabet).
Aliased Type§
pub struct RnaSequence { /* private fields */ }Implementations§
Source§impl RnaSequence
impl RnaSequence
Sourcepub fn reverse_complement(&self) -> RnaSequence
pub fn reverse_complement(&self) -> RnaSequence
Return the reverse complement.
Sourcepub fn reverse_transcribe(&self) -> DnaSequence
pub fn reverse_transcribe(&self) -> DnaSequence
Reverse-transcribe RNA to DNA (U → T).
Sourcepub fn translate(&self) -> Result<ProteinSequence>
pub fn translate(&self) -> Result<ProteinSequence>
Translate RNA to protein using the standard genetic code.
Sourcepub fn translate_with(&self, code: &GeneticCode) -> Result<ProteinSequence>
pub fn translate_with(&self, code: &GeneticCode) -> Result<ProteinSequence>
Translate RNA to protein using a specific genetic code table.
Sourcepub fn translate_frames(&self) -> [Result<ProteinSequence>; 3]
pub fn translate_frames(&self) -> [Result<ProteinSequence>; 3]
Translate in all three forward reading frames.