View source: R/overlapCountsTx.R
overlapCountsTx | R Documentation |
This function receives two region sets and returns the number of their overlaps.
overlapCountsTx(A, B, count_once = TRUE, over_trans = TRUE, ...)
A |
Region set 1. A |
B |
Region set 2. A |
count_once |
Whether the overlap of multiple B regions with a single A region should be counted once or multiple times. |
over_trans |
Whether the overlapping is counted over the transcriptome or over the genome. |
... |
Any additional parameters needed. |
A numeric
object.
overlapCountsTx
library(TxDb.Hsapiens.UCSC.hg19.knownGene)
txdb <- TxDb.Hsapiens.UCSC.hg19.knownGene
trans.ids <- c("170", "782", "974", "1364", "1387")
exons.tx0 <- exonsBy(txdb)
regions.A <- exons.tx0[trans.ids]
A <- randomizeTransByOrder(regions.A, random_length = 200)
B <- randomizeTransByOrder(regions.A, random_length = 200)
overlapCountsTx(A, B)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.