powered by
Returns the length of sequence in an MSA alignment.
# S3 method for msa ncol(x, refseq = NULL)
an MSA object
character vector giving name(s) of sequence whose length to return. The default NULL implies the frame of reference of the entire alignment.
NULL
an integer vector containing the length of the named sequences. If refseq is NULL, returns the number of columns in the alignment.
msa
# NOT RUN { m <- msa(seqs=c("A--ACGTAT", "AG-AGGTAA", "AGGAGGTAG"), names=c("human", "mouse", "rat")) ncol.msa(m) ncol.msa(m, names.msa(m)) # }
Run the code above in your browser using DataLab