View source: R/GRangesList2GRanges.R
GRangesList2GRanges | R Documentation |
Convert a GRangesList
object to a GRanges
object. The output region set follows the format required by the RgnTX permutation test functions, which should have metadata columns 'group' and 'transcriptsHits'.
GRangesList2GRanges(A = NULL)
A |
A |
A GRanges
object. Its transcript ids (if available) should be contained in a metadata column named “transcriptsHits”, which are provided by the names of input GRangesList
object.
GRanges2GRangesList
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)
RS1 <- GRangesList2GRanges(RS1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.