Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 onbin/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
orphs000007.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