Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Score FIMO hits with attributions #73

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

avantikalal
Copy link
Collaborator

@avantikalal avantikalal commented Oct 21, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants