Description Usage Arguments Details Value Author(s) See Also Examples
Function to find all occurrences of a DNA pattern in given locations.
1 2 3 4 | ## S4 method for signature 'GRanges,BSgenome'
sequenceCalc(x, organism, pattern, fixed = TRUE, positions = FALSE)
## S4 method for signature 'data.frame,BSgenome'
sequenceCalc(x, organism, window = NULL, positions = FALSE, ...)
|
x |
A |
window |
Bases around the locations supplied in |
organism |
The |
pattern |
The |
fixed |
Whether to allow degenerate matches. |
positions |
If |
... |
Arguments passed into the |
If the version of the data frame with the start, end, and strand columns is given, the window will be created around the TSS.
If positions
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
.
Aaron Statham
cpgDensityCalc
, mappabilityCalc
, gcContentCalc
1 2 3 | 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"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.