Prune Failed Subjects
prune_failed_subjectsDelete cortical_tiles outputs for subjects that fail QC by reading a QC file and removing their files; use dry_run=True to preview deletions without changes.
Instructions
Remove cortical_tiles outputs for all subjects that failed QC.
Reads a QC TSV/CSV file with 'participant_id' and 'qc' columns and deletes all files belonging to subjects with qc==0 or absent from the QC file. Equivalent to having run cortical_tiles with --sk_qc_path from the start.
Use dry_run=True to preview what would be deleted without modifying anything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qc | Yes | ||
| output | Yes | ||
| dry_run | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||