otherStrand: Return the name of the opposite strand

Description Usage Arguments Details Value Author(s) Examples

View source: R/otherStrand.R

Description

Return the name of the opposite strand

Usage

1

Arguments

x

Character vector whose elements are "+" or "-".

Details

This is a rather trivial convenience function.

An alternative would be to code strands with integers -1 and +1, in which case the inversion would be a trivial builtin operation. However, many genomic databases and input data files use the character string / factor notation.

Value

Character vector of same length as x, with strands reversed.

Author(s)

W. Huber <huber@ebi.ac.uk>

Examples

1
  otherStrand(c("+", "-"))

tilingArray documentation built on Nov. 8, 2020, 10:59 p.m.