rna() build a RNA vector from a character vector.

rna(...)

Arguments

...

characters to turn into RNA. Can be a set of name-value pairs.

Value

a vector of class bioseq_rna

See also

Other classes: aa(), dna()

Examples


rna("AGGUGC", "UUCGA")
#> RNA vector of 2 sequences
#> >   AGGUGC
#> >   UUCGA

rna(Seq_1 = "AGGUGC", Seq_2 = "UUCGA")
#> RNA vector of 2 sequences
#> Seq_1  AGGUGC
#> Seq_2  UUCGA

x <- c("AGGTGC", "TTCGA")
rna(x)
#> Warning: Non-standard IUPAC symbols detected for RNA: 3 characters were converted to N.
#> RNA vector of 2 sequences
#> >   AGGNGC
#> >   NNCGA