View source: R/02.getContextSequences.R
getContextSequences | R Documentation |
Retrieve upstream and downstream sequences of pA sites from a BSgenome object based on a GRanges object
getContextSequences(peaks, upstream = 40L, downstream = 30L, genome)
peaks |
An object of GRanges representing pA sites |
upstream |
An integer(1) vector, length of upstream sequence of pA sites, including pA site. |
downstream |
An integer(1) vector, length of downstream sequences of pA sites |
genome |
An object of BSgenome. |
A data.frame containing sequences upstream and downstream pA sites:
sequence upstream pA site, including pA site
sequence downstream pA site
Haibo Liu
library(BSgenome.Drerio.UCSC.danRer7)
testFile <- system.file("extdata", "test.bed",
package = "cleanUpdTSeq")
peaks <- BED6WithSeq2GRangesSeq(file = testFile,
skip = 1L, withSeq = FALSE)
peaks_seq <- getContextSequences(peaks,
upstream = 40L,
downstream = 30L,
genome = Drerio)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.