Skip to content

Commit e93d40e

Browse files
fedorovclaude
andcommitted
ENH: update to IDC index v24
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 9aa436f commit e93d40e

15 files changed

Lines changed: 23 additions & 23 deletions

assets/ann_group_index.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ SELECT
6363
group_item.AnnotationGroupAlgorithmIdentificationSequence[SAFE_OFFSET(0)].AlgorithmName AS AlgorithmName
6464

6565
FROM
66-
`bigquery-public-data.idc_v23.dicom_all` AS ann
66+
`bigquery-public-data.idc_v24.dicom_all` AS ann
6767
CROSS JOIN
6868
UNNEST(ann.AnnotationGroupSequence) AS group_item
6969
WHERE

assets/ann_index.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ SELECT
2121
ReferencedSeriesSequence[SAFE_OFFSET(0)].SeriesInstanceUID AS referenced_SeriesInstanceUID
2222

2323
FROM
24-
`bigquery-public-data.idc_v23.dicom_all` AS ann
24+
`bigquery-public-data.idc_v24.dicom_all` AS ann
2525
WHERE
2626
# Microscopy Bulk Simple Annotations SOP Class UID - more reliable than Modality = "ANN"
2727
SOPClassUID = "1.2.840.10008.5.1.4.1.1.91.1"

assets/clinical_index.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ SELECT
2525
# values encountered in the column
2626
`values`
2727
FROM
28-
`bigquery-public-data.idc_v23_clinical.column_metadata`
28+
`bigquery-public-data.idc_v24_clinical.column_metadata`
2929
ORDER BY
3030
collection_id, table_name

assets/contrast_index.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ WITH contrast_data AS (
1111
ARRAY_AGG(DISTINCT ContrastBolusAgent IGNORE NULLS ORDER BY ContrastBolusAgent) AS ContrastBolusAgent,
1212
ARRAY_AGG(DISTINCT ContrastBolusIngredient IGNORE NULLS ORDER BY ContrastBolusIngredient) AS ContrastBolusIngredient,
1313
ARRAY_AGG(DISTINCT ContrastBolusRoute IGNORE NULLS ORDER BY ContrastBolusRoute) AS ContrastBolusRoute
14-
FROM `bigquery-public-data.idc_v23.dicom_all`
14+
FROM `bigquery-public-data.idc_v24.dicom_all`
1515
WHERE Modality IN ('CT', 'MR', 'PT', 'XA', 'RF')
1616
GROUP BY SeriesInstanceUID
1717
)

assets/rtstruct_index.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ WITH
1616
roi.ROIName,
1717
roi.ROIGenerationAlgorithm
1818
FROM
19-
`bigquery-public-data.idc_v23.dicom_all`
19+
`bigquery-public-data.idc_v24.dicom_all`
2020
CROSS JOIN
2121
UNNEST(StructureSetROISequence) AS roi
2222
WHERE
@@ -29,7 +29,7 @@ WITH
2929
obs.ReferencedROINumber,
3030
obs.RTROIInterpretedType
3131
FROM
32-
`bigquery-public-data.idc_v23.dicom_all`
32+
`bigquery-public-data.idc_v24.dicom_all`
3333
CROSS JOIN
3434
UNNEST(RTROIObservationsSequence) AS obs
3535
WHERE
@@ -40,7 +40,7 @@ WITH
4040
SOPInstanceUID,
4141
rt_series.SeriesInstanceUID AS referenced_SeriesInstanceUID
4242
FROM
43-
`bigquery-public-data.idc_v23.dicom_all`
43+
`bigquery-public-data.idc_v24.dicom_all`
4444
CROSS JOIN
4545
UNNEST(ReferencedFrameOfReferenceSequence) AS ref_frame
4646
CROSS JOIN

assets/seg_index.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ WITH
2525
SegmentSequence,
2626
SegmentationType
2727
FROM
28-
`bigquery-public-data.idc_v23.dicom_metadata`
28+
`bigquery-public-data.idc_v24.dicom_metadata`
2929
WHERE
3030
# more reliable than Modality = "SEG"
3131
SOPClassUID = "1.2.840.10008.5.1.4.1.1.66.4"
@@ -101,7 +101,7 @@ WITH
101101
SourceImageSequence[SAFE_OFFSET(0)].ReferencedSOPInstanceUID
102102
AS sis_one
103103
FROM
104-
`bigquery-public-data.idc_v23.dicom_all`
104+
`bigquery-public-data.idc_v24.dicom_all`
105105
WHERE
106106
Modality = "SEG"
107107
AND SOPClassUID = "1.2.840.10008.5.1.4.1.1.66.4"
@@ -126,7 +126,7 @@ WITH
126126
FROM
127127
coalesced_ref
128128
JOIN
129-
`bigquery-public-data.idc_v23.dicom_all` AS dicom_all
129+
`bigquery-public-data.idc_v24.dicom_all` AS dicom_all
130130
ON
131131
coalesced_ref.referenced_sop = dicom_all.SOPInstanceUID
132132
RIGHT JOIN

assets/sm_index.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
-- SELECT
66
-- * EXCEPT(Modality)
77
-- FROM
8-
-- `bigquery-public-data.idc_v19.dicom_metadata_curated_series_level`
8+
-- `bigquery-public-data.idc_v24.dicom_metadata_curated_series_level`
99
-- WHERE
1010
-- Modality = "SM"
1111

@@ -38,7 +38,7 @@ WITH
3838

3939

4040
FROM
41-
`bigquery-public-data.idc_v23.dicom_all` AS dicom_all
41+
`bigquery-public-data.idc_v24.dicom_all` AS dicom_all
4242
GROUP BY
4343
SeriesInstanceUID
4444
),
@@ -52,7 +52,7 @@ SpecimenPreparationSequence_unnested AS (
5252
concept_code_sequence.CodeMeaning AS ccs_cm,
5353
concept_code_sequence.CodingSchemeDesignator AS ccs_csd,
5454
concept_code_sequence.CodeValue AS ccs_val,
55-
FROM `bigquery-public-data.idc_v23.dicom_all`,
55+
FROM `bigquery-public-data.idc_v24.dicom_all`,
5656
UNNEST(SpecimenDescriptionSequence[SAFE_OFFSET(0)].SpecimenPreparationSequence) as preparation_unnest_step1,
5757
UNNEST(preparation_unnest_step1.SpecimenPreparationStepContentItemSequence) as preparation_unnest_step2,
5858
UNNEST(preparation_unnest_step2.ConceptNameCodeSequence) as concept_name_code_sequence,

assets/sm_instance_index.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ WITH
1616
concept_code_sequence.CodingSchemeDesignator AS ccs_csd,
1717
concept_code_sequence.CodeValue AS ccs_val,
1818
FROM
19-
`bigquery-public-data.idc_v23.dicom_all`,
19+
`bigquery-public-data.idc_v24.dicom_all`,
2020
UNNEST(SpecimenDescriptionSequence[SAFE_OFFSET(0)].SpecimenPreparationSequence) AS preparation_unnest_step1,
2121
UNNEST(preparation_unnest_step1.SpecimenPreparationStepContentItemSequence) AS preparation_unnest_step2,
2222
UNNEST(preparation_unnest_step2.ConceptNameCodeSequence) AS concept_name_code_sequence,
@@ -144,7 +144,7 @@ SELECT
144144
# unique identifier of the instance within the IDC
145145
dicom_all.crdc_instance_uuid AS crdc_instance_uuid
146146
FROM
147-
`bigquery-public-data.idc_v23.dicom_all` AS dicom_all
147+
`bigquery-public-data.idc_v24.dicom_all` AS dicom_all
148148
LEFT JOIN
149149
slide_embedding
150150
ON

scripts/python/idc_index_data_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ def retrieve_latest_idc_release_version(self) -> int:
454454
SELECT
455455
MAX(idc_version) AS latest_idc_release_version
456456
FROM
457-
`bigquery-public-data.idc_v23.version_metadata`
457+
`bigquery-public-data.idc_v24.version_metadata`
458458
"""
459459
query_job = self.client.query(query)
460460
result = query_job.result()

scripts/sql/analysis_results_index.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ SELECT
4343
# citation for the analysis results collection that should be used for acknowledgment
4444
Citation
4545
FROM
46-
`bigquery-public-data.idc_v23.analysis_results_metadata`
46+
`bigquery-public-data.idc_v24.analysis_results_metadata`
4747
ORDER BY
4848
analysis_result_id

0 commit comments

Comments
 (0)