Learn R Programming

rphast (version 1.6.9)

nrow.msa: MSA Number of Sequences

Description

Returns the number of sequence in an MSA alignment.

Usage

# S3 method for msa
nrow(x)

Arguments

x

an MSA object

Value

an integer containing the number of sequences in an alignment.

See Also

msa

Examples

Run this code
# NOT RUN {
m <- msa(seqs=c("A--ACGTAT", "AG-AGGTAA", "AGGAGGTAG"),
         names=c("human", "mouse", "rat"))
nrow.msa(m)
# }

Run the code above in your browser using DataLab