l2n {biogram} | R Documentation |
Convert letters to numbers
Description
Converts biological sequence from letter to number notation.
Usage
l2n(seq, seq_type)
Arguments
seq |
|
seq_type |
the type of sequence. Can be |
Value
a numeric
vector or matrix containing converted elements.
See Also
l2n
is a wrapper around degenerate
.
Inverse function: n2l
.
Examples
sample_seq <- c("a", "d", "d", "g", "a", "g", "n", "a", "l")
l2n(sample_seq, "prot")
[Package biogram version 1.6.3 Index]