as.fasta(x, id=NULL, ...)
get.seq
or seqbind
). Convert alignment/sequence in matrix/vector format to FASTA object.
This function provides basic functionality to convert a sequence character matrix/vector to a FASTA object.
"fasta"
with the following components:
Grant, B.J. et al. (2006) Bioinformatics 22, 2695--2696.
as.fasta(c("A", "C", "D"))1 3 seq1 ACD 1 3 Call: as.fasta(x = c("A", "C", "D")) Class: fasta Alignment dimensions: 1 sequence rows; 3 position columns (3 non-gap, 0 gap) + attr: id, ali, call