Description Usage Arguments Value Author(s) Examples
View source: R/getUpstreamSequence.R
This function gets the sequence upstream of a putative pA site (including the site)
1 | getUpstreamSequence(peaks, upstream = 40, genome)
|
peaks |
GRanges containing putative pA sites |
upstream |
upstream = int. This is the length of the sequence to get. |
genome |
BSgenomeName |
Returns an object of GRanges with uptream sequences.
Sarah Sheppard, Jianhong Ou, Nathan Lawson, Lihua Julie Zhu
1 2 3 4 5 | library(BSgenome.Drerio.UCSC.danRer7)
testFile <- system.file("extdata", "test.bed", package="cleanUpdTSeq")
testSet <- read.table(testFile, sep="\t", header=TRUE)
peaks <- BED2GRangesSeq(testSet[1:10, ], withSeq=FALSE)
seq = getUpstreamSequence(peaks, upstream=40, genome=Drerio)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.