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

Update CDS DRS mapping data #728

Merged
merged 10 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion data/processSynapseJSON.log
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ncc: Using [email protected] (local user-provided)
40kB sourcemap-register.js
8675kB index.js
1425kB index.js.map
8715kB [26726ms] - ncc 0.28.6
8715kB [8766ms] - 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
7 changes: 2 additions & 5 deletions data/processSynapseJSON.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,13 +400,10 @@ function addDownloadSourcesInfo(
if (file.synapseId && dbgapImgSynapseSet.has(file.synapseId)) {
// Level 2 imaging data is open access
// ImagingLevel2, SRRSImagingLevel2 as specified in released.entities table (CDS_Release) column
if (
file.level === 'Level 2' &&
file.Component.startsWith('Imaging')
) {
if (file.viewers?.cds?.drs_uri) {
file.downloadSource = DownloadSourceCategory.cds;
} else {
file.downloadSource = DownloadSourceCategory.dbgap;
file.downloadSource = DownloadSourceCategory.comingSoon;
}
} else if (
file.Component === 'OtherAssay' &&
Expand Down
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_20241205_1557.json`;
: `${getCloudBaseUrl()}/processed_syn_data_20241206_1308.json`;
return fetchSynData(processedSynURL);
}

Expand Down
Binary file modified public/processed_syn_data.json.gz
Binary file not shown.
Binary file modified public/syn_data.json.gz
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't need to update this file. original json should still be the same.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, actually, the file has changed. @inodb did you run the python script again to update the data?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's also possible that you had the previous version locally and never updated it to the latest

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch - fixed this now!

Binary file not shown.