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

Add generic dbGaP downloader #283

Merged
merged 4 commits into from
May 2, 2023
Merged

Conversation

gaurav
Copy link
Collaborator

@gaurav gaurav commented Apr 25, 2023

This PR adds a script, bin/get_dbgap_data_dicts.py, which can be used to download all the dbGaP identifiers from a CSV or TSV file into a specified directory. It is based on bin/get_ncpi_data_dicts.py, but is much more configurable.

There is an unknown bug which you can replicate by trying to download phs000285.v3.p2 or phs000007.v32.p13. Since we need this functionality for BDC ingest, I'm inclined to merge this PR and open an issue for that bug to be debugged later, but I'm happy to try to fix it in this PR first if that is preferable.

You can test this by running:

$ python bin/get_dbgap_data_dicts.py data/ncpi-dataset-catalog-results.tsv --field "Study Accession" --group-by Platform --outdir data/ncpi-dataset-catalog --skip phs000285.v3.p2 --skip phs000007.v32.p1

@gaurav gaurav requested a review from YaphetKG April 25, 2023 02:53
@gaurav gaurav marked this pull request as ready for review April 25, 2023 02:53
Copy link
Contributor

@YaphetKG YaphetKG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@YaphetKG YaphetKG merged commit e4db242 into develop May 2, 2023
@YaphetKG YaphetKG deleted the add-generic-dbgap-downloader branch May 2, 2023 15:31
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