Genentech / gReLU

gReLU is a python library to train, interpret, and apply deep learning models to DNA sequences.
https://genentech.github.io/gReLU/
MIT License
228 stars 23 forks source link

WIP: Score FIMO hits with attributions #73

Open avantikalal opened 1 month ago

avantikalal commented 1 month ago

This implements two methods for scoring FIMO hits based on the sequence attributions.

  1. score_sites: This function returns the mean attribution over the site, i.e. importance of the region
  2. score_motifs: this function returns the elementwise product of the attribution matrix and the PWM, averaged over all nucleotides. This tells you how well the shape of the attributions match the PWM shape, and can help distinguish between multiple motifs at the same site.