-
Notifications
You must be signed in to change notification settings - Fork 24
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
Use tangermeme backend for tomtom #75
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
…into tomtom-tangermeme
…into tomtom-tangermeme
src/grelu/interpret/score.py
Outdated
top_n_matches: int, | ||
) -> None: | ||
""" | ||
Modified from https://github.com/jmschrei/tfmodisco-lite/blob/main/modiscolite/report.py#L245 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add the permalink: https://github.com/jmschrei/tfmodisco-lite/blob/3c6e38f/modiscolite/report.py#L245
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, would it make more sense to put this function and run_modisco in a separate modisco.py file? Does not fit into score.py thematically I feel.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, I'll make both changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
for more information, see https://pre-commit.ci
Replaced the TOMTOM executable from the MEME suite with the tomtom reimplementation in tangermeme v0.4. Tomtom no longer has to be installed in the environment to use
run_modisco
, which is a major source of user issues.Specific changes:
Dockerfile
:run_tomtom
function ininterpret.motifs
. This takes a dictionary of motifs and a meme file, and compares the motifs to the reference motifs in the meme file.run_tomtom
intests/test_interpret.py
.run_modisco
to userun_tomtom
for the tomtom part if a meme file is provided. This involved creating a new function _add_tomtom_to_modisco_report which is modified from modiscolite.Fully addresses #55