ncol.msa: MSA Sequence Length.

Description Usage Arguments Value Author(s) See Also Examples

Description

Returns the length of sequence in an MSA alignment.

Usage

1
2
## S3 method for class 'msa'
ncol(x, refseq = NULL)

Arguments

x

an MSA object

refseq

character vector giving name(s) of sequence whose length to return. The default NULL implies the frame of reference of the entire alignment.

Value

an integer vector containing the length of the named sequences. If refseq is NULL, returns the number of columns in the alignment.

Author(s)

Melissa J. Hubisz and Adam Siepel

See Also

msa

Examples

1
2
3
4
m <- msa(seqs=c("A--ACGTAT", "AG-AGGTAA", "AGGAGGTAG"),
         names=c("human", "mouse", "rat"))
ncol.msa(m)
ncol.msa(m, names.msa(m))


Search within the rphast package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.