createRandomNodes: Create a list of random nodes

View source: R/createRandomNodes.R

createRandomNodesR Documentation

Create a list of random nodes

Description

Generate a list of random nodes used for example or test.

Usage

createRandomNodes(
  txdb,
  seq = "chr22",
  size = 500,
  upstream = 500,
  downstream = 500,
  maxDist = 1e+06,
  wid = 5000
)

Arguments

txdb

An TxDb object.

seq

seqlevels to be kept.

size

the length of regions involved in nodes

upstream, downstream

upstream or downstream for promoters

maxDist

maximal distance from promoters

wid

regions width.

Value

An GRanges object with comp_id metadata.

Examples

library(TxDb.Hsapiens.UCSC.hg19.knownGene)
set.seed(123)
node_regions <- createRandomNodes(TxDb.Hsapiens.UCSC.hg19.knownGene)

jianhong/interactionHub documentation built on April 22, 2022, 12:34 p.m.