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

FDA SRS UNII download links no longer scriptable #61

Open
creisle opened this issue Jan 24, 2022 · 1 comment
Open

FDA SRS UNII download links no longer scriptable #61

creisle opened this issue Jan 24, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@creisle
Copy link
Member

creisle commented Jan 24, 2022

The snakemake workflow is failing to download the UNII data b/c it looks like the FDA changed the links to more complicated redirects. It can still be downloaded manually from https://precision.fda.gov/uniisearch/archive

I have sent them an email to ask about how this can be downloaded via a script and am awaiting a reply. In the mean time users will need to either download this data manually and put it in the correct spot for the rest of the workflow (see example below)

  1. Manually download zip (ex UNII_Data_20211213.zip)
  2. Place in snakemake data fda folder (default = snakemake_data/fda) snakemake_data/fda/UNII_Data_20211213.zip
  3. Unzip cd snakemake_data/fda; unzip UNII_Data_20211213.zip
  4. rename the main text file to remove the version mv UNII_Records_13Dec2021.txt UNII_Records.txt
  5. go back to the main directory cd ./../../
  6. Run the snakemake workflow as normal, snakemake will count the download step as complete snakemake ...
@creisle creisle added the bug Something isn't working label Jan 24, 2022
@creisle creisle mentioned this issue Jan 25, 2022
@mathieulemieux
Copy link
Member

Seems the redirect is working with wget v1.21.1.
It wasn't with v1.14.
As an alternative, "curl -L https://precision.fda.gov/uniisearch/archive/latest/UNII_Data.zip > UNII_Data.zip" could work too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants