Learn R Programming

biogram (version 1.1)

n2l: Convert numbers to letters

Description

Converts biological sequence from number to letter notation.

Usage

n2l(seq, seq_type)

Arguments

seq
numeric vector representing single sequence.
seq_type
the type of sequence. Can be rna, dna or prot.

Value

  • a numeric vector containing converted elements.

See Also

n2l is based on degenerate the opposite of l2n.

Examples

Run this code
sample_seq <- c(1, 3, 3, 6, 1, 6, 12, 1, 10)
n2l(sample_seq, "prot")

Run the code above in your browser using DataLab