Open lgunsalus opened 3 months ago
This pull request adds ISM scoring to motifs.
Updated src/grelu/interpret/motifs.py:
src/grelu/interpret/motifs.py
calculate_ism_weight
Updated src/grelu/visualize.py:
src/grelu/visualize.py
_moving_average
plot_motifs_on_ism
Updated docs/tutorials/5_variant.ipynb:
docs/tutorials/5_variant.ipynb
Potential todo: draw motif logos on plot.
Testing:
This pull request adds ISM scoring to motifs.
Updated
src/grelu/interpret/motifs.py
:calculate_ism_weight
function to compute ISM weights across the scan motif DataFrame.Updated
src/grelu/visualize.py
:_moving_average
function for calculating moving averages of arrays.plot_motifs_on_ism
function to visualize motifs on ISM data.Updated
docs/tutorials/5_variant.ipynb
:Potential todo: draw motif logos on plot.
Testing: