View source: R/overlapCountsTxIA.R
overlapCountsTxIA | R Documentation |
Evaluation function. This function receives a feature set (with isoform ambiguity) and a transcriptome region set (without isoform ambiguity), and returns a weighted number of overlaps between them.
overlapCountsTxIA(A, B, ...)
A |
A feature set, which should be |
B |
A region set, which should be |
... |
Any additional parameters needed. |
A numeric
object.
overlapWidthTx
, distanceTx
, overlapCountsTx
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]
trans.info <- getTransInfo(RS1, txdb)
trans.ids <- trans.info[, "trans_ID"]
RS2 <- getStopCodon(trans.ids, txdb = txdb)
# Evaluation step.
orig.ev <- overlapCountsTxIA(RS1, RS2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.