deconvolveBidirectionalPromoters: A function to duplicate bi-directional GRanges

View source: R/utils.R

deconvolveBidirectionalPromotersR 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))

js2264/VplotR documentation built on Jan. 4, 2024, 7:49 p.m.