Plotting fragment density graphs

plotVmat()

A function to plot a Vmat

computeVmat()

A function to compute Vmat.

scaleVmat()

A function to scale a Vmat.

normalizeVmat()

A function to normalized a Vmat to a given background.

shuffleVmat()

A function to shuffle a Vmat

Computing flanking nucleosome enrichment scores

nucleosomeEnrichment()

A function to compute nucleosome enrichment over a set of GRanges

computeNucleosomeEnrichmentOverBackground()

A function to compute nucleosome enrichment of a Vmat. Should only be used internally.

Helpers

importPEBamFiles()

A function to import paired end bam files as GRanges. Can be quite lengthy for .bam files with 5+ millions fragments.

shiftATACGranges()

A function to shift GRanges fragments by 5/-4. This is useful when dealing with fragments coming from ATAC-seq.

getFragmentsDistribution()

A function to compute sizes distribution for PE fragments