otherStrand {tilingArray} | R Documentation |
Return the name of the opposite strand
otherStrand(x)
x |
Character vector whose elements are "+" or "-". |
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.
Character vector of same length as x
, with strands reversed.
W. Huber <huber@ebi.ac.uk>
otherStrand(c("+", "-"))