This implements two methods for scoring FIMO hits based on the sequence attributions.
score_sites: This function returns the mean attribution over the site, i.e. importance of the region
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.
This implements two methods for scoring FIMO hits based on the sequence attributions.
score_sites
: This function returns the mean attribution over the site, i.e. importance of the regionscore_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.