Description Usage Arguments Value Examples
View source: R/nucleosome_enrichment.R
A function to compute nucleosome enrichment over a Vmat
1 2 | ## S3 method for class 'Vmat'
nucleosomeEnrichment(x, background, plus1_nuc_only = FALSE, ...)
|
x |
a computed Vmat. Should be un-normalized. |
background |
a background Vmat. Should be un-normalized. |
plus1_nuc_only |
Boolean, should compute nucleosome enrichment only for +1 nucleosome? |
... |
additional parameters |
list
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | data(bam_test)
data(ce11_proms)
V <- plotVmat(
bam_test,
ce11_proms,
normFun = '',
return_Vmat = TRUE
)
V_bg <- plotVmat(
bam_test,
sampleGRanges(ce11_proms),
normFun = '',
return_Vmat = TRUE
)
n <- nucleosomeEnrichment(V, V_bg)
n$fisher_test
n$plot
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.