afids / autoafids_prep

Snakemake workflow to prepare data for afids-CNN project
MIT License
0 stars 1 forks source link

parsing bids dataset #7

Open ataha24 opened 4 weeks ago

ataha24 commented 4 weeks ago

Currently, worklow seems to break when one subject's T1w image or directories is labeled differently from others. For example, when one subject contains {ses} wildcard but others do not, workflow is not sure how to handle that and it breaks.

Need to figure out how to parse this, ideally treating each session for the same subject independently in cases where one subject has multiple sessions but another has none. I believe this issue could arise in a different format if the naming of the T1w files contains other wildcards within the same dataset.

Example 1: When one subject contains {ses} directory and scans but another does not within the same dataset

Screenshot 2024-10-23 at 3 38 03 AM

Example 2: When one subject contains a different naming format than another (i.e., one contains acq wildcard but another does not)

Screenshot 2024-10-23 at 3 43 37 AM