orientBy {soGGi} | R Documentation

## Set strand by overlapping or nearest anchor GRanges

### Description

Set strand by overlapping or nearest anchor GRanges

### Usage

    orientBy(testRanges, anchorRanges)

### Arguments

`testRanges` | The GRanges object to anchor.
`anchorRanges` | A GRanges object by which to anchor strand orientation.

### Value

newRanges A GRanges object.

### Examples

    data(ik_Example)
    strand(ik_Example[[1]]) <- "+"
    anchoredGRanges <- orientBy(ik_Example[[2]],ik_Example[[1]])

[Package soGGi version 1.26.0 Index]