Skip to content
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

[WIP] FIX: Anatomic fast track (except freesurfer/surface rec.) #272

Closed
wants to merge 1 commit into from

Conversation

nuKs
Copy link

@nuKs nuKs commented Nov 26, 2021

What my patch does is to rely on pybids layout instead of bids build_path in order to retrieve the fast_track derivatives files.
Pybids layout does adapt to any bids-valid naming scheme, while build_path does not, but rather directly assumes the file name.

So far, examples that make fast-track fails include:

  • subjects with a single T1 (as the path is different since no template is made)
  • subjects with T1 containing run-x segments within the name.

EXAMPLE:
In my case, IBC has been failing (without fix) for some subjects, modified/reduced day2day datasets too.
IBC openneuro: https://openneuro.org/datasets/ds002685/versions/1.3.1
day2day upon request: https://bmcneurosci.biomedcentral.com/articles/10.1186/s12868-017-0383-y

WARNING:
This fix is less restrictive than previous version, thus might select too much files.
This risk should properly be assessed.

WARNING:
freesurfer files aren't fixed.

cf. #224

@pep8speaks
Copy link

pep8speaks commented Nov 26, 2021

Hello @nuKs! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 163:75: E502 the backslash is redundant between brackets
Line 164:29: E127 continuation line over-indented for visual indent

Comment last updated at 2021-11-26 16:27:11 UTC

What my patch does is to rely on pybids layout instead of bids build_path in order to retrieve the fast_track derivatives files.
Pybids layout does adapt to any bids-valid naming scheme, while build_path does not, but rather directly assumes the file name.

So far, examples that make fast-track fails include:

- subjects with a single T1 (as the path is different since no template is made)
- subjects with T1 containing run-x segments within the name.

EXAMPLE:
In my case, IBC has been failing (without fix) for some subjects, modified/reduced day2day datasets too.
IBC openneuro: https://openneuro.org/datasets/ds002685/versions/1.3.1
day2day upon request: https://bmcneurosci.biomedcentral.com/articles/10.1186/s12868-017-0383-y

WARNING:
This fix is less restrictive than previous version, thus might select too much files.
This risk should properly be assessed.

WARNING:
freesurfer files aren't fixed.

cf. nipreps#224
@nuKs nuKs changed the title FIX: Anatomic fast track (except freesurfer/surface rec.) [WIP] FIX: Anatomic fast track (except freesurfer/surface rec.) Nov 28, 2021
@nuKs
Copy link
Author

nuKs commented Nov 28, 2021

@oesteban where can I download ds054 (it's not here: https://openfmri.org/dataset/) ? ds054 tests fail while ds005 do not. Might be a problem with my approach (cf. my #224 comments), though I am not sure.

@effigies
Copy link
Member

effigies commented Dec 5, 2023

If this still needs doing, let's start over from the current master.

@effigies effigies closed this Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants