Description Usage Arguments Details Value Methods (by class) Examples
Function to get a set of background peaks for each peak based on GC content and # of fragments across all samples
1 2 3 4 5 6 7 8 9 10 11 12 13 | getBackgroundPeaks(object, ...)
## S4 method for signature 'SummarizedExperiment'
getBackgroundPeaks(object,
bias = rowData(object)$bias, niterations = 50, w = 0.1, bs = 50)
## S4 method for signature 'RangedSummarizedExperiment'
getBackgroundPeaks(object,
bias = rowRanges(object)$bias, niterations = 50, w = 0.1, bs = 50)
## S4 method for signature 'MatrixOrmatrix'
getBackgroundPeaks(object, bias, niterations = 50,
w = 0.1, bs = 50)
|
object |
fragment counts as SummarizedExperiment, RangedSummarized, Matrix, or matrix |
... |
addtional arguments |
bias |
vector of values for some bias signal for each row of object |
niterations |
number of background peaks to sample |
w |
parameter controlling similarity of background peaks |
bs |
bin size parameter |
Background peaks are chosen by sampling peaks based on similarity in GC content and # of fragments across samples using the Mahalanobis distance. The w paramter controls how similar background peaks should be. The bs parameter controls the precision with which the similarity is computed; increasing bs will make the function run slower. Sensible default parameters are chosen for both.
matrix with one row per peak and one column per iteration. values in a row represent indices of background peaks for the peak with that index
SummarizedExperiment
: method for SummarizedExperiment
RangedSummarizedExperiment
: method for RangedSummarizedExperiment
MatrixOrmatrix
: method for Matrix or matrix
1 2 3 4 5 | # Load very small example counts (already filtered)
data(mini_counts, package = "chromVAR")
# get background peaks
bgpeaks <- getBackgroundPeaks(mini_counts)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.