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

outdated instruction "pheweb phenolist glob-files" #217

Open
jielab opened this issue Feb 15, 2024 · 2 comments
Open

outdated instruction "pheweb phenolist glob-files" #217

jielab opened this issue Feb 15, 2024 · 2 comments

Comments

@jielab
Copy link

jielab commented Feb 15, 2024

Hi, there:

I noticed pheweb phenolist glob-files on this instruction page https://github.com/statgen/pheweb/blob/master/etc/detailed-loading-instructions.md#configuration-options. However, it won't work. It should be just "glob", not "glob-files".

The first time when I run pheweb process, I think pheweb automatically download the huge dbsnp reference files. If I already have these huge dbsnp files downloaded for another software, how could I speficy its location in the config.py file so that it won't need to be re-downloaded?

Previously, I have pointed out that many GWAS simply report A1/A2, not the strict REF/ALT. Once the reference genomes get bigger and bigger, the REF/ALT specification would become really indefinite and inconsistent. Therefore, I strongly suggest that pheweb would accommodate the use of A1/A2 and be able to map rsIDs with a better flexibility. Otherwise, most SNPs in a GWAS would have no mapped rsIDs after running pheweb. You guys only need to change one line (line 140), for add_rsids.py.
Before
rsids = [rsid['rsid'] for rsid in rsid_group if cpra['ref'] == rsid['ref'] and are_match(cpra['alt'], rsid['alt'])]
After
rsids = [rsid['rsid'] for rsid in rsid_group if (cpra['ref'] == rsid['ref'] and are_match(cpra['alt'], rsid['alt'])) or (cpra['ref'] == rsid['alt'] and are_match(cpra['alt'], rsid['ref']))]

Please kindly consider this.

Thank you & best regards,
Jie

@pjvandehaar
Copy link
Collaborator

pjvandehaar commented Feb 15, 2024 via email

@jielab
Copy link
Author

jielab commented Feb 15, 2024 via email

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

No branches or pull requests

2 participants