A function to compute nucleosome enrichment over a set of GRanges

nucleosomeEnrichment(x, ...)

Arguments

x

a GRanges or Vmat

...

additional parameters

Value

list

Examples

data(bam_test)
data(ce11_proms)
n <- nucleosomeEnrichment(bam_test, ce11_proms)
#> Computing Vmat...
#> Computing background...
#> Computing enrichment...
n$fisher_test
#> 
#> 	Fisher's Exact Test for Count Data
#> 
#> data:  matrix(vec, ncol = 2)
#> p-value = 0.06783
#> alternative hypothesis: true odds ratio is not equal to 1
#> 95 percent confidence interval:
#>   0.8543144 39.3801981
#> sample estimates:
#> odds ratio 
#>   4.135035 
#> 
n$plot