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

Fetch Autominerva imaging assets from a remote URL #733

Merged
merged 2 commits into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion data/dsa-images.json

This file was deleted.

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
40,763 changes: 21,910 additions & 18,853 deletions data/htan-imaging-assets.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions data/processSynapseJSON.log
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ ncc: Version 0.28.6
ncc: Compiling file index.js
ncc: Using [email protected] (local user-provided)
40kB sourcemap-register.js
10961kB index.js
1425kB index.js.map
11001kB [9288ms] - ncc 0.28.6
10201kB index.js
1427kB index.js.map
10241kB [26259ms] - ncc 0.28.6
Missing ParentBiospecimenID: {
Component: 'ScRNA-seqLevel3',
Filename: 'single_cell_RNAseq_level_3_ped_glioma/HTAN_pHGG_161_New_Reg1_snRNA/barcodes.tsv.gz',
Expand Down
1 change: 0 additions & 1 deletion data/update_dsa_mappings.sh

This file was deleted.

2 changes: 1 addition & 1 deletion lib/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export async function fetchData(): Promise<LoadDataResult> {
const processedSynURL =
process.env.NODE_ENV === 'development'
? '/processed_syn_data.json'
: `${getCloudBaseUrl()}/processed_syn_data_20241211_2209.json`;
: `${getCloudBaseUrl()}/processed_syn_data_20241226_1531.json`;
return fetchSynData(processedSynURL);
}

Expand Down
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",
"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
Binary file modified public/processed_syn_data.json.gz
Binary file not shown.