View source: R/randomizeFeaturesTx.R
randomizeFeaturesTx | R Documentation |
Randomize features into transcriptome.
randomizeFeaturesTx(RS, txdb, type = "mature", N = 1, ...)
RS |
The feature to be randomized. It should be a |
txdb |
A TxDb object. |
type |
A character object. Default is "mature". It accepts options "mature", "full", "fiveUTR", "CDS" or "threeUTR", with which one can get corresponding types of transcriptome regions. |
N |
The number of iterations. |
... |
Any additional parameters needed. |
A GRangesList
object. The name of each element is the id of the transcript where the corresponding range is located.
randomizeTransByOrder
, randomizeFeaturesTxIA
, randomizeTx
library(TxDb.Hsapiens.UCSC.hg19.knownGene)
txdb <- TxDb.Hsapiens.UCSC.hg19.knownGene
trans.ids <- c("170", "782", "974", "1364", "1387")
RS1 <- randomizeTx(txdb, trans.ids, random_num = 100, random_length = 100)
RS <- randomizeFeaturesTx(RS1, txdb, N = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.