The enrichment of every k-mer at the observed cut sites over its frequency in the accessible genome. The k-mer is centred on the cut and the weights are symmetrised over the two strands, because both fragment ends are counted as insertions.
Arguments
- ins
A
GRangesof insertion sites with ascorecolumn.- regions
A
GRangesof the accessible regions.- genome
A
BSgenomeobject.- k
Length of the k-mer.
- max.ins
Number of insertion sites drawn for the estimate.
- chunk
Number of sites read from the genome at a time.
- bg
Background counts from
kmerBackground, or NULL to count them here.