powered by
Converts biological sequence from letter to number notation.
l2n(seq, seq_type)
character vector or matrix representing single sequence.
character
the type of sequence. Can be rna, dna or prot.
rna
dna
prot
a numeric vector or matrix containing converted elements.
numeric
l2n is a wrapper around degenerate.
l2n
degenerate
Inverse function: n2l.
n2l
# NOT RUN { sample_seq <- c("a", "d", "d", "g", "a", "g", "n", "a", "l") l2n(sample_seq, "prot") # }
Run the code above in your browser using DataLab