VibecoderMcSwaggins commited on
Commit
b507097
·
verified ·
1 Parent(s): 4de94a5

docs: update dataset card for v4 (Sequence[Nifti] structural schema)

Browse files
Files changed (1) hide show
  1. README.md +24 -13
README.md CHANGED
@@ -31,16 +31,16 @@ The Aphasia Recovery Cohort (ARC) is a large-scale, longitudinal neuroimaging da
31
  |--------|-------|
32
  | Subjects | 230 |
33
  | Sessions | 902 |
34
- | T1-weighted scans | 441 sessions* |
35
- | T2-weighted scans | 439 sessions* |
36
- | FLAIR scans | 231 sessions* |
37
  | BOLD fMRI (naming40 task) | 750 sessions (894 runs) |
38
  | BOLD fMRI (resting state) | 498 sessions (508 runs) |
39
  | Diffusion (DWI) | 613 sessions (2,089 runs) |
40
  | Single-band reference | 88 sessions (322 runs) |
41
  | Expert lesion masks | 228 |
42
 
43
- *Sessions with exactly one scan. Sessions with multiple runs of the same structural modality are set to `None` to avoid ambiguity (3 T1w, 1 T2w, 2 FLAIR sessions affected).
44
 
45
  - **Source:** [OpenNeuro ds004884](https://openneuro.org/datasets/ds004884)
46
  - **Paper:** [Gibson et al., Scientific Data 2024](https://doi.org/10.1038/s41597-024-03819-7)
@@ -69,10 +69,10 @@ Each row represents a single scanning session (subject + timepoint):
69
  {
70
  "subject_id": "sub-M2001",
71
  "session_id": "ses-1",
72
- "t1w": <nibabel.Nifti1Image>, # T1-weighted structural
73
- "t2w": <nibabel.Nifti1Image>, # T2-weighted structural
74
  "t2w_acquisition": "space_2x", # T2w sequence type
75
- "flair": <nibabel.Nifti1Image>, # FLAIR structural
76
  "bold_naming40": [<Nifti1Image>, ...], # Naming task fMRI runs
77
  "bold_rest": [<Nifti1Image>, ...], # Resting state fMRI runs
78
  "dwi": [<Nifti1Image>, ...], # Diffusion runs
@@ -95,10 +95,10 @@ Each row represents a single scanning session (subject + timepoint):
95
  |-------|------|-------------|
96
  | `subject_id` | string | BIDS subject identifier (e.g., "sub-M2001") |
97
  | `session_id` | string | BIDS session identifier (e.g., "ses-1") |
98
- | `t1w` | Nifti | T1-weighted structural MRI (nullable) |
99
- | `t2w` | Nifti | T2-weighted structural MRI (nullable) |
100
  | `t2w_acquisition` | string | T2w acquisition type: `space_2x`, `space_no_accel`, `turbo_spin_echo` (nullable) |
101
- | `flair` | Nifti | FLAIR structural MRI (nullable) |
102
  | `bold_naming40` | Sequence[Nifti] | BOLD fMRI runs for naming40 task |
103
  | `bold_rest` | Sequence[Nifti] | BOLD fMRI runs for resting state |
104
  | `dwi` | Sequence[Nifti] | Diffusion-weighted imaging runs |
@@ -174,7 +174,7 @@ ds = load_dataset("hugging-science/arc-aphasia-bids", split="train")
174
  # Access a session
175
  session = ds[0]
176
  print(session["subject_id"]) # "sub-M2001"
177
- print(session["t1w"]) # nibabel.Nifti1Image
178
  print(session["wab_aq"]) # Aphasia severity score
179
 
180
  # Access BOLD by task type
@@ -196,11 +196,11 @@ for i, (dwi_run, bval, bvec) in enumerate(zip(
196
  space_only = ds.filter(
197
  lambda x: (
198
  x["lesion"] is not None
199
- and x["t2w"] is not None
200
  and x["t2w_acquisition"] in ("space_2x", "space_no_accel")
201
  )
202
  )
203
- # Returns 222 SPACE samples (115 space_2x + 107 space_no_accel)
204
 
205
  # Clinical metadata analysis
206
  import pandas as pd
@@ -277,6 +277,17 @@ Thanks to [@The-Obstacle-Is-The-Way](https://github.com/The-Obstacle-Is-The-Way)
277
 
278
  ## Changelog
279
 
 
 
 
 
 
 
 
 
 
 
 
280
  ### v2 (December 2025)
281
 
282
  - **BREAKING:** `bold` column split into `bold_naming40` and `bold_rest` for task-specific analysis
 
31
  |--------|-------|
32
  | Subjects | 230 |
33
  | Sessions | 902 |
34
+ | T1-weighted scans | 444 sessions (447 runs)* |
35
+ | T2-weighted scans | 440 sessions (441 runs)* |
36
+ | FLAIR scans | 233 sessions (235 runs)* |
37
  | BOLD fMRI (naming40 task) | 750 sessions (894 runs) |
38
  | BOLD fMRI (resting state) | 498 sessions (508 runs) |
39
  | Diffusion (DWI) | 613 sessions (2,089 runs) |
40
  | Single-band reference | 88 sessions (322 runs) |
41
  | Expert lesion masks | 228 |
42
 
43
+ *Sessions with multiple runs of the same structural modality now include all runs as a list.
44
 
45
  - **Source:** [OpenNeuro ds004884](https://openneuro.org/datasets/ds004884)
46
  - **Paper:** [Gibson et al., Scientific Data 2024](https://doi.org/10.1038/s41597-024-03819-7)
 
69
  {
70
  "subject_id": "sub-M2001",
71
  "session_id": "ses-1",
72
+ "t1w": [<nibabel.Nifti1Image>, ...], # T1-weighted structural (list of runs)
73
+ "t2w": [<nibabel.Nifti1Image>, ...], # T2-weighted structural (list of runs)
74
  "t2w_acquisition": "space_2x", # T2w sequence type
75
+ "flair": [<nibabel.Nifti1Image>, ...], # FLAIR structural (list of runs)
76
  "bold_naming40": [<Nifti1Image>, ...], # Naming task fMRI runs
77
  "bold_rest": [<Nifti1Image>, ...], # Resting state fMRI runs
78
  "dwi": [<Nifti1Image>, ...], # Diffusion runs
 
95
  |-------|------|-------------|
96
  | `subject_id` | string | BIDS subject identifier (e.g., "sub-M2001") |
97
  | `session_id` | string | BIDS session identifier (e.g., "ses-1") |
98
+ | `t1w` | Sequence[Nifti] | T1-weighted structural MRI runs |
99
+ | `t2w` | Sequence[Nifti] | T2-weighted structural MRI runs |
100
  | `t2w_acquisition` | string | T2w acquisition type: `space_2x`, `space_no_accel`, `turbo_spin_echo` (nullable) |
101
+ | `flair` | Sequence[Nifti] | FLAIR structural MRI runs |
102
  | `bold_naming40` | Sequence[Nifti] | BOLD fMRI runs for naming40 task |
103
  | `bold_rest` | Sequence[Nifti] | BOLD fMRI runs for resting state |
104
  | `dwi` | Sequence[Nifti] | Diffusion-weighted imaging runs |
 
174
  # Access a session
175
  session = ds[0]
176
  print(session["subject_id"]) # "sub-M2001"
177
+ print(session["t1w"][0]) # nibabel.Nifti1Image
178
  print(session["wab_aq"]) # Aphasia severity score
179
 
180
  # Access BOLD by task type
 
196
  space_only = ds.filter(
197
  lambda x: (
198
  x["lesion"] is not None
199
+ and len(x["t2w"]) > 0
200
  and x["t2w_acquisition"] in ("space_2x", "space_no_accel")
201
  )
202
  )
203
+ # Returns 223 SPACE samples (115 space_2x + 108 space_no_accel)
204
 
205
  # Clinical metadata analysis
206
  import pandas as pd
 
277
 
278
  ## Changelog
279
 
280
+ ### v4 (December 2025)
281
+
282
+ - **BREAKING:** `t1w`, `t2w`, `flair` changed from `Nifti()` to `Sequence(Nifti())` for full data fidelity
283
+ - **FIX:** 6 sessions with multiple structural runs now include all files (previously set to `None`)
284
+ - **NOTE:** Most sessions have exactly 1 structural scan; access via `session["t2w"][0]`
285
+
286
+ ### v3 (December 2025)
287
+
288
+ - **RETRACTED:** Attempted fix for 222 → 223 SPACE samples was incorrect diagnosis
289
+ - **NOTE:** The missing sample is caused by a schema design flaw (see v4 fix above), not upload issues
290
+
291
  ### v2 (December 2025)
292
 
293
  - **BREAKING:** `bold` column split into `bold_naming40` and `bold_rest` for task-specific analysis