View source: R/randomizeFeaturesTxIA.R
randomizeFeaturesTxIA | R Documentation |
Randomize features into transcriptome, especially for the features that have isoform ambiguity.
randomizeFeaturesTxIA(RS, txdb, type = "mature", N = 1, ...)
RS |
The feature being 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 |
Randomization times. |
... |
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
, randomizeFeaturesTx
, randomizeTx
library(TxDb.Hsapiens.UCSC.hg19.knownGene)
file <- system.file(package="RgnTX", "extdata/m6A_sites_data.rds")
m6A_sites_data <- readRDS(file)
txdb <- TxDb.Hsapiens.UCSC.hg19.knownGene
RS1 <- m6A_sites_data[1:100]
RS <- randomizeFeaturesTxIA(RS1, txdb, N = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.