strand {BSgenome}R Documentation

Accessing strand information

Description

The strand generic is meant as an accessor for strand information. Two methods are defined by the BSgenome package, described below.

Usage

strand(x, ...)

Arguments

x The object from which to obtain a strand factor, can be missing.
... Additional arguments to pass to methods

Details

If x is missing, returns an empty factor with the standard levels that any strand factor should have: +, -, and * (for either).

If x is a character vector, x is coerced to a factor with the levels listed above.

Author(s)

Michael Lawrence

Examples

strand()
strand(c("+", "-", NA, "*"))

[Package BSgenome version 1.12.3 Index]