shiftExonTx | R Documentation |
Shift regions over transcripts (exons).
shiftExonTx(regions, start, width)
regions |
A region set either to be |
start |
Starting positions. The function will return a region set shifting from these starting positions. |
width |
Widths. The widths of returned regions. It should be positive/negative if users would like to move the starting positions to the right (3')/left (5'). |
A GRangesList
object.
library(TxDb.Hsapiens.UCSC.hg19.knownGene)
txdb <- TxDb.Hsapiens.UCSC.hg19.knownGene
exons.tx0 <- exonsBy(txdb)
#Shift regions over the following transcripts
trans.ids <- c("170", "1387", "4113", "10715")
regions <- exons.tx0[trans.ids]
start <- c(3624255, 55158197, 881641, 15694195)
width <- c(200, -200, 200, -200)
shifted_regions <- shiftExonTx(regions, start, width)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.