Description Usage Arguments Details Value Author(s) Examples
Function to calculate the GC content of windows
1 2 3 4 | ## S4 method for signature 'GRanges,BSgenome'
gcContentCalc(x, organism, verbose = TRUE)
## S4 method for signature 'data.frame,BSgenome'
gcContentCalc(x, organism, window = NULL, ...)
|
x |
A |
window |
Bases around the locations that are in the window. Calculation will
consider |
organism |
The |
verbose |
Whether to print the progess of processing. |
... |
The |
The windows considered will be windowSize/2
bases upstream and windowSize/2-1
bases downstream of the given position, for each position. The value returned for
each region is a percentage of bases in that region that are a G or C.
A vector of GC content percentages, one for each region.
Aaron Statham
1 2 3 | require(BSgenome.Hsapiens.UCSC.hg18)
TSSTable <- data.frame(chr = paste("chr", c(1,2), sep = ""), position = c(100000, 200000))
gcContentCalc(TSSTable, 200, organism=Hsapiens)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.