-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ENH] start bidsifying output #80
Merged
Merged
Changes from 12 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
547d888
bidsify output
Remi-Gau 4649ea1
rm tmp files
Remi-Gau ef48177
start fixing test
Remi-Gau 614b8a8
fix tests
Remi-Gau e3a36ca
Merge remote-tracking branch 'upstream/main' into folder
Remi-Gau 14415ef
post merge fix
Remi-Gau 6eb1126
update doc output
Remi-Gau e91e91b
update tests
Remi-Gau 15441d3
Update giga_connectome/postprocess.py
Remi-Gau ec0a33d
rm tmp
Remi-Gau 3c0e72e
Merge remote-tracking branch 'upstream/main' into folder
Remi-Gau 3b12bf5
remove old data files it exists
Remi-Gau 2538c43
Update giga_connectome/utils.py
Remi-Gau 3eb3061
make output to bids the default
Remi-Gau 3e8570c
make bids output the default
Remi-Gau 21fa3db
save correlation matrix to tsv
Remi-Gau 0d5db0b
revert group level
Remi-Gau 5224759
one output file per atlas
Remi-Gau 49cbf3a
Merge remote-tracking branch 'upstream/main' into folder
Remi-Gau 2100612
Merge remote-tracking branch 'upstream/main' into folder
Remi-Gau c82f3d2
isort
Remi-Gau 7eb15f6
timeseries to tsv
Remi-Gau 405c6ac
fix test and output doc
Remi-Gau e4a88c9
Merge branch 'main' into folder
Remi-Gau c463fdd
Update .pre-commit-config.yaml
Remi-Gau 784d9b5
lint
Remi-Gau 808dd65
fixes
Remi-Gau 29efb3e
move to contrib
Remi-Gau File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,7 +1,79 @@ | ||
# Outputs | ||
|
||
The output of this app aims to follow the guideline | ||
of the [BIDS extension proposal 17 - Generic BIDS connectivity data schema](https://bids.neuroimaging.io/bep017). | ||
|
||
Metadata files content is described in this BIDS extension proposal. | ||
|
||
## participant level | ||
|
||
When performing `participant` level analysis, the output is a HDF5 file per participant that was passed to `--participant_label` or all subjects under `bids_dir`. | ||
The output file name is: `sub-<participant_id>_atlas-<atlas_name>_desc-<denoising_strategy>.h5` | ||
|
||
When performing `group` level analysis, the file will contain time series and connectomes of each subject, as well as group average connectomes. The output is a HDF5 file per participant that was passed to `--participant_label` or all subjects under `bids_dir`. | ||
The output file name is: `atlas-<atlas_name>_desc-<denoising_strategy>.h5` | ||
The output file name is: | ||
|
||
``` | ||
sub-<participant_id>/func/sub-<participant_id>_atlas-<atlas_name>_meas-PearsonCorrelation_desc-<denoising_strategy>_relmat.h5 | ||
``` | ||
|
||
## group level | ||
|
||
When performing `group` level analysis, | ||
the file will contain time series and connectomes of each subject, | ||
as well as group average connectomes. | ||
|
||
The output is a HDF5 file per participant that was passed to `--participant_label` or all subjects under `bids_dir`. | ||
|
||
The output file name is: `group/atlas-<atlas_name>_meas-PearsonCorrelation_desc-<denoising_strategy>.h5` | ||
|
||
## Examples | ||
|
||
``` | ||
├── dataset_description.json | ||
├── meas-PearsonCorrelation_desc-simple_relmat.json | ||
├── group | ||
│ └── atlas-Schaefer20187Networks_meas-PearsonCorrelation_desc-simple_relmat.h5 | ||
├── sub-1 | ||
│ └── func | ||
│ └── sub-1_atlas-Schaefer20187Networks_meas-PearsonCorrelation_desc-simple_relmat.h5 | ||
└── sub-2 | ||
└── func | ||
└── sub-2_atlas-Schaefer20187Networks_meas-PearsonCorrelation_desc-simple_relmat.h5 | ||
``` | ||
|
||
### BIDS compliant output | ||
|
||
If the `--output_to_bids` is passed to the command line then each input file will have associated output file. | ||
|
||
The output file name is: | ||
|
||
``` | ||
sub-<participant_id>/[ses-<ses_id>]/func/<source_filename>_atlas-<atlas_name>_meas-PearsonCorrelation_desc-<denoising_strategy>_relmat.h5 | ||
``` | ||
|
||
Example: | ||
|
||
``` | ||
giga_connectome/data/test_data/output | ||
├── dataset_description.json | ||
├── meas-PearsonCorrelation_desc-simple_relmat.json | ||
├── group | ||
│ └── atlas-Schaefer20187Networks_meas-PearsonCorrelation_desc-simple_relmat.h5 | ||
├── sub-1 | ||
│ ├── ses-timepoint1 | ||
│ │ └── func | ||
│ │ ├── sub-1_ses-timepoint1_task-probabilisticclassification_run-01_space-MNI152NLin2009cAsym_res-2_atlas-Schaefer20187Networks_meas-PearsonCorrelation_desc-simple_relmat.h5 | ||
│ │ └── sub-1_ses-timepoint1_task-probabilisticclassification_run-02_space-MNI152NLin2009cAsym_res-2_atlas-Schaefer20187Networks_meas-PearsonCorrelation_desc-simple_relmat.h5 | ||
│ └── ses-timepoint2 | ||
│ └── func | ||
│ ├── sub-1_ses-timepoint2_task-probabilisticclassification_run-01_space-MNI152NLin2009cAsym_res-2_atlas-Schaefer20187Networks_meas-PearsonCorrelation_desc-simple_relmat.h5 | ||
│ └── sub-1_ses-timepoint2_task-probabilisticclassification_run-02_space-MNI152NLin2009cAsym_res-2_atlas-Schaefer20187Networks_meas-PearsonCorrelation_desc-simple_relmat.h5 | ||
└── sub-2 | ||
├── ses-timepoint1 | ||
│ └── func | ||
│ ├── sub-2_ses-timepoint1_task-probabilisticclassification_run-01_space-MNI152NLin2009cAsym_res-2_atlas-Schaefer20187Networks_meas-PearsonCorrelation_desc-simple_relmat.h5 | ||
│ └── sub-2_ses-timepoint1_task-probabilisticclassification_run-02_space-MNI152NLin2009cAsym_res-2_atlas-Schaefer20187Networks_meas-PearsonCorrelation_desc-simple_relmat.h5 | ||
└── ses-timepoint2 | ||
└── func | ||
├── sub-2_ses-timepoint2_task-probabilisticclassification_run-01_space-MNI152NLin2009cAsym_res-2_atlas-Schaefer20187Networks_meas-PearsonCorrelation_desc-simple_relmat.h5 | ||
└── sub-2_ses-timepoint2_task-probabilisticclassification_run-02_space-MNI152NLin2009cAsym_res-2_atlas-Schaefer20187Networks_meas-PearsonCorrelation_desc-simple_relmat.h5 | ||
``` |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A bit extra to this PR but it felt like a minimum description on how to run a demo was necessary |
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added examples of the output generated by the demo