open-brace.ms: Extract, replace, reorder MS

Description Usage Arguments Details Value Note Author(s)

Description

Treat multiple sequences as a array where each row corresponds to a sequence for one species.

Usage

1
2
## S3 method for class 'ms'
x[rows]

Arguments

x

An object of type ms

rows

A numeric vector of sequence indices, character vector (containing sequence name), or logical vector (containing sequences to keep). If logical vector it will be recycled as necessary to the same length as nrow.ms(x).

Details

The bracket notation can return a set of sequences, or re-order rows.

Value

An MS object sampled from x as indicated by rows.

Note

This function will not alter the value of x even if it is stored as a pointer to a C structure.

Author(s)

Nick Peterson



Search within the rtfbs 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.