Returns an object of (S3) class alignment.
as.alignment(nb = NULL, nam = NULL, seq = NULL, com = NULL)
An object of class alignment
which is a list with the following components:
the number of aligned sequences
a vector of strings containing the names of the aligned sequences
a vector of strings containing the aligned sequences
a vector of strings containing the commentaries for each sequence or NA
if there are no comments
integer. The number of sequences in the alignment.
vector of nb
character strings. The sequence names.
vector of nb
character strings. The aligned sequences.
vector of nb
character strings. The comments about sequences.
D. Charif, J.R. Lobry
citation("seqinr")
read.alignment
,
as.matrix.alignment
, read.fasta
,
write.fasta
, reverse.align
, dist.alignment
.
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