deconvolveBidirectionalPromoters {VplotR} | R Documentation

## A function to duplicate bi-directional GRanges

### Description

This function splits bi-directional ranges into + and - stranded ranges. It duplicates the ranges which are '*'.

### Usage

    deconvolveBidirectionalPromoters(granges)

### Arguments

`granges` | A stranded GRanges object

### Value

GRanges with only '+' and '-' strands. GRanges with '*' strand have been duplicated and split into forward and reverse strands.

### Examples

    data(ce11_all_REs)
    library(GenomicRanges)
    proms <- ce11_all_REs[grepl('prom', ce11_all_REs$regulatory_class)]
    proms
    table(strand(proms))
    proms <- deconvolveBidirectionalPromoters(proms)
    proms
    table(strand(proms))

[Package VplotR version 1.4.0 Index]