-
Notifications
You must be signed in to change notification settings - Fork 0
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
Incorporate new PheWeb manhattan plot filtering #20
Comments
The python to get the top 100k variants is nice: https://github.com/statgen/pheweb/blob/master/pheweb/load/best_of_pheno.py#L35 . The js is not great. It's almost-but-not-quite the same as the normal manhattan code, and I didn't do the work of factoring out common sections. And even before the duplication it wasn't elegant code. Somehow I never learned how to make d3 readable. https://github.com/statgen/pheweb/blob/master/pheweb/serve/static/pheno-filter.js . |
Thanks! If I do incorporate this, I'll try to modularize my JS code to be useful across both services. I've been trying to make LZ's d3 usages more readable in the upcoming release as well. Two examples of potential code sharing:
Last question: Is the "top 100k variants" code a replacement for the old manhattan binner, or a supplement used for filtering? |
https://github.com/statgen/pheweb/blob/master/pheweb/load/best_of_pheno.py#L35 just makes a normal tsv file with only 100k variants in it. https://github.com/statgen/pheweb/blob/8f43ca0075cc14c4b58673c6c3e2dcaac0a9951d/pheweb/serve/server.py#L124 reads that file, filters variants, feeds them into the manhattan plot binner, and then sends the result to the client. During pre-processing, the same manhattan plot binner runs on the full input file to make the normal manhattan plots. |
Our Manhattan plots draw from the PheWeb codebase, with modifications.
PheWeb recently gained the ability to filter manhattan plots by variant type and annotation. We should investigate incorporating that feature into the upload service, as well as abstracting manhattan plots in a way that better supports code sharing.
The text was updated successfully, but these errors were encountered: