Skip to content

Commit

Permalink
#408 download SMPDB while link is failing
Browse files Browse the repository at this point in the history
  • Loading branch information
ecwood committed Sep 2, 2024
1 parent e7d76d6 commit 7edd988
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions extract/extract-smpdb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ smpdb_link="https://pathbank.org/downloads/pathbank_all_pathways.csv.zip"
pwml_link="https://pathbank.org/downloads/pathbank_all_pwml.zip"
smpdb_pmids_file="SMPDB_pubmed_IDs.csv"

${curl_get} ${output_dir}/ ${smpdb_link} > ${output_dir}/${smpdb_output_file}.zip
${curl_get} ${output_dir}/ ${pwml_link} > ${output_dir}/${pw_output_file}
# ${curl_get} ${output_dir}/ ${smpdb_link} > ${output_dir}/${smpdb_output_file}.zip
# ${curl_get} ${output_dir}/ ${pwml_link} > ${output_dir}/${pw_output_file}

# Temporary patch due to cURL failure
${s3_cp_cmd} s3://${s3_bucket}/${smpdb_output_file}.zip ${output_dir}/${smpdb_output_file}.zip
${s3_cp_cmd} s3://${s3_bucket}/${pw_output_file} ${output_dir}/${pw_output_file}

unzip -o ${output_dir}/${smpdb_output_file}.zip -d ${output_dir}/
unzip -o -q ${output_dir}/${pw_output_file} -d ${output_dir}/
Expand Down

0 comments on commit 7edd988

Please sign in to comment.