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)
- Manually download zip (ex
UNII_Data_20211213.zip)
- Place in snakemake data fda folder (default =
snakemake_data/fda) snakemake_data/fda/UNII_Data_20211213.zip
- Unzip
cd snakemake_data/fda; unzip UNII_Data_20211213.zip
- rename the main text file to remove the version
mv UNII_Records_13Dec2021.txt UNII_Records.txt
- go back to the main directory
cd ./../../
- Run the snakemake workflow as normal, snakemake will count the download step as complete
snakemake ...
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)
UNII_Data_20211213.zip)snakemake_data/fda)snakemake_data/fda/UNII_Data_20211213.zipcd snakemake_data/fda; unzip UNII_Data_20211213.zipmv UNII_Records_13Dec2021.txt UNII_Records.txtcd ./../../snakemake ...