Learn R Programming

seqinr (version 3.3-3)

as.alignment: Constructor for class alignment

Description

Returns an object of (S3) class alignment.

Usage

as.alignment(nb = NULL, nam = NULL, seq = NULL, com = NULL)

Arguments

nb
integer. The number of sequences in the alignment.
nam
vector of nb character strings. The sequence names.
seq
vector of nb character strings. The aligned sequences.
com
vector of nb character strings. The comments about sequences.

Value

An object of class alignment which is a list with the following components:

References

citation("seqinr")

See Also

read.alignment, as.matrix.alignment, read.fasta, write.fasta, reverse.align, dist.alignment.

Examples

Run this code
as.alignment(nb = 2, nam = c("one", "two"), 
  seq = c("-ACGT", "GACG-"), com = c("un", "deux"))

Run the code above in your browser using DataLab