Skip to main content

RnaSequence

Type Alias RnaSequence 

Source
pub type RnaSequence = ValidatedSeq<RnaAlphabet>;
Expand description

A validated RNA sequence (IUPAC alphabet).

Aliased Type§

pub struct RnaSequence { /* private fields */ }

Implementations§

Source§

impl RnaSequence

Source

pub fn reverse_complement(&self) -> RnaSequence

Return the reverse complement.

Source

pub fn reverse_transcribe(&self) -> DnaSequence

Reverse-transcribe RNA to DNA (U → T).

Source

pub fn translate(&self) -> Result<ProteinSequence>

Translate RNA to protein using the standard genetic code.

Source

pub fn translate_with(&self, code: &GeneticCode) -> Result<ProteinSequence>

Translate RNA to protein using a specific genetic code table.

Source

pub fn translate_frames(&self) -> [Result<ProteinSequence>; 3]

Translate in all three forward reading frames.

Source

pub fn kmers(&self, k: usize) -> Result<KmerIter<'_>>

Iterate over k-mers of length k.