-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from DCAN-Labs/sessions-tsv
sessions.tsv Implementation
- Loading branch information
Showing
3 changed files
with
34 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
## Multiple Participant Requirements | ||
|
||
### `participants.tsv` | ||
### `sub-{}_sessions.tsv` | ||
|
||
#### Format Specification Example | ||
|
||
| participant_id | session | age | | ||
|:-:|:-:|:-:| | ||
| sub-123456 | ses-A | 1 | | ||
| session | age | | ||
|:-:|:-:| | ||
| ses-A | 1 | | ||
|
||
NOTE: `sub-` and `ses-` prefixes are currently required for `participant_id` and `session` values. | ||
NOTE: the `ses-` prefix is currently required for `session` values. | ||
|
||
#### Content | ||
|
||
When running multiple subjects and/or sessions, the `participants.tsv` file in the `bids_dir` must include an `age` column. In that column, each row has one positive integer, the participant's age in months at that session. | ||
When running multiple subjects and/or sessions, the `sub-{}_sessions.tsv` file in each subject's directory (at the session directory level) must include an `age` column. In that column, each row has one positive integer, the participant's age in months at that session. | ||
|
||
<br /> | ||
<img src="https://user-images.githubusercontent.com/102316699/184005162-0b1ebb76-3e5a-4bd3-b258-a686272e2ecc.png" width=555em style="margin-left: auto; margin-right: auto; display: block" /> | ||
<br /> | ||
|
||
If the user wants to specify the brain height (shown above) for each subject session, then the user must also include an additional `"brain_z_size"` column. That column also must have a positive integer for each row: the size of the participant's brain along the z-axis in millimeters. The `participants.tsv` file should look like the example below: | ||
If the user wants to specify the brain height (shown above) for each subject session, then the user must also include an additional `"brain_z_size"` column. That column also must have a positive integer for each row: the size of the participant's brain along the z-axis in millimeters. The `sessions.tsv` file for a given subject should look like the example below: | ||
|
||
| participant_id | session | age | brain_z_size | | ||
|:-:|:-:|:-:|:-:| | ||
| sub-123456 | ses-X | 1 | 120 | | ||
| sub-234567 | ses-X | 6 | 145 | | ||
| session | age | brain_z_size | | ||
:-:|:-:|:-:| | ||
| ses-X | 1 | 120 | | ||
| ses-X | 6 | 145 | | ||
|
||
Without a `brain_z_size` column, `CABINET` will calculate the `brain_z_size` value based on a table with [BCP](https://babyconnectomeproject.org/) participants' average head radius per age. That table is called `age_to_avg_head_radius_BCP.csv` under the `data` directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters