View source: R/createRandomNodes.R
createRandomNodes | R Documentation |
Generate a list of random nodes used for example or test.
createRandomNodes( txdb, seq = "chr22", size = 500, upstream = 500, downstream = 500, maxDist = 1e+06, wid = 5000 )
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. |
An GRanges object with comp_id metadata.
library(TxDb.Hsapiens.UCSC.hg19.knownGene) set.seed(123) node_regions <- createRandomNodes(TxDb.Hsapiens.UCSC.hg19.knownGene)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.