n2l: Convert numbers to letters

View source: R/degenerate.R

n2lR Documentation

Convert numbers to letters

Description

Converts biological sequence from number to letter notation.

Usage

n2l(seq, seq_type)

Arguments

seq

integer vector or matrix representing single sequence.

seq_type

the type of sequence. Can be rna, dna or prot.

Value

a character vector or matrix containing converted elements.

See Also

n2l is a wrapper around degenerate.

Inverse function: l2n.

Examples

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

michbur/biogram documentation built on Feb. 4, 2024, 6:38 p.m.