deconvolveBidirectionalPromoters: A function to duplicate bi-directional GRanges

Description Usage Arguments Value Examples

View source: R/utils.R

Description

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

Usage

1

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

1
2
3
4
5
6
7
8
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))

VplotR documentation built on Nov. 8, 2020, 7:50 p.m.