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


rtfbs documentation built on Jan. 22, 2020, 1:07 a.m.