Skip to content

Commit

Permalink
add a new step to update mapping files
Browse files Browse the repository at this point in the history
  • Loading branch information
onursumer committed Dec 26, 2024
1 parent 6f89a2c commit 20ac539
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions data/fetch_autominerva_mappings.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
curl https://d3p249wtgzkn5u.cloudfront.net/final-output/htan-imaging-assets-latest.json
1 change: 1 addition & 0 deletions data/fetch_dsa_mappings.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
curl 'https://raw.githubusercontent.com/ncihtan/dsa-htan/master/synapseSync/htanCrosswalkFiles/mvpImageData.working.json'
1 change: 0 additions & 1 deletion data/update_dsa_mappings.sh

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
},
"scripts": {
"dev": "yarn run next dev",
"updateData": "yarn run findAndReplace && yarn run processSynapseJSON && yarn run gzip",
"updateMappings": "bash data/fetch_autominerva_mappings.sh > data/htan-imaging-assets.json && bash data/fetch_dsa_mappings.sh > data/dsa-images.json",
"updateData": "yarn run findAndReplace && yarn updateMappings && yarn run processSynapseJSON && yarn run gzip",
"gzip": "yarn run gzipData && yarn run gzipMetadata",
"gzipData": "gzip < public/syn_data.json > public/syn_data.json.gz && gzip < public/processed_syn_data.json > public/processed_syn_data.json.gz",
"gzipMetadata": "rm -rf data/metadata_gzip/ && cp -r data/metadata data/metadata_gzip && find data/metadata_gzip -type f -exec gzip {} \\; -exec mv {}.gz {} \\;",
Expand Down

0 comments on commit 20ac539

Please sign in to comment.