A function to compute nucleosome enrichment of a Vmat
computeNucleosomeEnrichmentOverBackground(
Vmat,
background = NULL,
plus1_nuc_only = FALSE,
minus1_nuc = list(c(xmin = -150, xmax = -70), c(ymin = 165, ymax = 260)),
minus1_nuc_neg = list(c(xmin = -150, xmax = -70), c(ymin = 60, ymax = 145)),
plus1_nuc = list(c(xmin = 70, xmax = 150), c(ymin = 165, ymax = 260)),
plus1_nuc_neg = list(c(xmin = 70, xmax = 150), c(ymin = 50, ymax = 145)),
...
)
A Vmat computed by nucleosomeEnrichment function
a background Vmat
Boolean Should compute nucleosome enrichment only for +1 nucleosome?
list where the -1 nucleosome is located
where the background of the -1 nucleosome is located
where the +1 nucleosome is located
where the background of the +1 nucleosome is located
additional parameters
list