This is a plugin for LBFextract that calculates the Jensen-Shannon divergence (JSD) for all intervals in a BED file. Specifically, it compares the fragment length distribution in the flanking regions of each interval to the fragment length distribution at each position within the interval.
The plugin outputs the results as a CSV file and generates a plot of the signal, similar to the example below:
(jsd_to_flanking_ctcf_signal_plot.pdf)
This Plugin implements the CLI interface for the extract_jsd_to_flanking feature extraction method.
extract_jsd_to_flanking
Given a set of genomic intervals having the same length w, extract_jsd_to_flanking calculates the JSD at each position, which can be represented as:
where
Where
To install this plugin, you can use the following command:
pip install 'git+https://github.com/Isy89/fextract_jsd_to_flanking.git'