View source: R/randomizeTransByOrder.R
randomizeTransByOrder | R Documentation |
This function receives a GRangesList
object and picks a random region within each list element of this object. The length of the region to be picked is decided by the input random_length
argument.
randomizeTransByOrder(regions_A, random_length = 20)
regions_A |
A |
random_length |
A |
A GRangesList
object. The name of each list element should be the corresponding transcript id.
randomizeTx
, randomizeFeaturesTx
, randomizeFeaturesTxIA
library(TxDb.Hsapiens.UCSC.hg19.knownGene)
txdb <- TxDb.Hsapiens.UCSC.hg19.knownGene
exons.tx0 <- exonsBy(txdb)
trans.ids <- sample(names(exons.tx0), 3)
regions.A <- exons.tx0[trans.ids]
RS <- randomizeTransByOrder(regions.A, random_length = 200)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.