dna() build a DNA vector from a character vector.

dna(...)

Arguments

...

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

Value

a vector of class bioseq_dna

See also

Other classes: aa(), rna()

Examples


dna("AGGTGC", "TTCGA")
#> DNA vector of 2 sequences
#> >   AGGTGC
#> >   TTCGA

dna(Seq_1 = "AGGTGC", Seq_2 = "TTCGA")
#> DNA vector of 2 sequences
#> Seq_1  AGGTGC
#> Seq_2  TTCGA

x <- c("AGGTGC", "TTCGA")
dna(x)
#> DNA vector of 2 sequences
#> >   AGGTGC
#> >   TTCGA