vanderbilt: subject/id is the six-digit patient ID, without the view number

#74
by oisinn - opened

Draft mode until submitters review.

Sets metadata/subject/id to the six-digit patient ID in the 164 in-vivo files in data/Fundamental/ and data/Harmonic/. The files currently store <subject_id>_<view_number> (e.g. 118420_1, 118420_2), which is 82 distinct IDs for the README's 30 patients. Grouping by subject/id therefore treats every view as a different patient, and a subject-wise split leaks the same patient across folds.

Source: the README ("Each dataset follows the naming convention of subject_idview_numbersequence_type. subject_id is a six-digit random number. view_number distinguishes between multiple views acquired on the same subject."). The script checked that every stored ID is exactly the <six digits>_<view> prefix of its filename; stripping the view leaves 30 IDs, the README's patient count. The view number stays in the filename. CIRS_validation/CIRS_fundamental.hdf5 (id = "CIRS") is unchanged.

Files changed: 164. Only metadata/subject/id was written, raw_data and all other metadata are untouched.

Diff:

vanderbilt/data/Fundamental/118420_1_Focused_Uncoded_TX.hdf5: differs (main)
  ~ metadata/subject/id: value '118420_1' -> '118420'
vanderbilt/data/Fundamental/118420_2_Focused_Uncoded_TX.hdf5: differs (main)
  ~ metadata/subject/id: value '118420_2' -> '118420'
vanderbilt/data/Fundamental/118420_3_Focused_Uncoded_TX.hdf5: differs (main)
  ~ metadata/subject/id: value '118420_3' -> '118420'
vanderbilt/data/Fundamental/126438_1_Focused_Uncoded_TX.hdf5: differs (main)
  ~ metadata/subject/id: value '126438_1' -> '126438'
vanderbilt/data/Fundamental/126438_2_Focused_Uncoded_TX.hdf5: differs (main)
  ~ metadata/subject/id: value '126438_2' -> '126438'
vanderbilt/data/Fundamental/126987_1_Focused_Uncoded_TX.hdf5: differs (main)
  ~ metadata/subject/id: value '126987_1' -> '126987'
... (158 more files, each `<id>_<view>` -> `<id>`)
Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment