
"sequenceCalc"(x, organism, pattern, fixed = TRUE, positions = FALSE) "sequenceCalc"(x, organism, window = NULL, positions = FALSE, ...)
data.frame
, with columns chr
and position
, or instead of the column position
there can be columns start
, end
, and strand
, or a GRanges
object of the regions.x
that are in the window. Calculation will consider windowSize/2-1
bases upstream, and windowSize/2
bases downstream.BSgenome
object to calculate CpG density upon.DNAString
to search for.TRUE
FALSE
GRanges
methodpositions
is TRUE
, a list of vectors of positions of matches in relation to the elements of x
, otherwise a vector
of the number of matches for each element of x
.
cpgDensityCalc
, mappabilityCalc
, gcContentCalc
require(BSgenome.Hsapiens.UCSC.hg18)
TSSTable <- data.frame(chr=paste("chr",c(1,2),sep=""), position=c(100000,200000))
sequenceCalc(TSSTable, 600, organism=Hsapiens, pattern=DNAString("CG"))
Run the code above in your browser using DataLab