Prints a short description of an MSA (multiple sequence alignment) object.
# S3 method for msa
summary(object, ..., print.seq = ncol.msa(object) < 100 &&
nrow.msa(object) < 30, format = "FASTA", pretty.print = FALSE)
an MSA object
additional arguments sent to print
whether to supress printing of the alignment
to print sequence in if printing alignment
whether to pretty.print pretty-print sequence if printing alignment
# NOT RUN {
# read in an MSA stored in R
m <- msa(seqs=c("ACGTAT", "AGGTAA", "AGGTAG"),
names=c("human", "mouse", "rat"))
summary(m)
#'
# read in an MSA stored by reference in C
m <- msa(seqs=c("ACGTAT", "AGGTAA", "AGGTAG"),
names=c("human", "mouse", "rat"),
pointer.only=TRUE)
summary(m)
# }
Run the code above in your browser using DataLab