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

SDC-pepolar not executed only for some runs #774

Closed
oesteban opened this issue Oct 17, 2017 · 9 comments
Closed

SDC-pepolar not executed only for some runs #774

oesteban opened this issue Oct 17, 2017 · 9 comments

Comments

@oesteban
Copy link
Member

DS000223 / sub-01 / run-03, run-04 don't have SDC-pepolar, while run-01 and run-02 do.

@oesteban oesteban added the bug label Oct 17, 2017
@effigies
Copy link
Member

effigies commented Oct 17, 2017 via email

@effigies
Copy link
Member

Actually, it just looks like there's only fieldmaps for runs 1 and 2 for subjects 1-6. There are no fieldmaps at all for subjects 7-19.

@oesteban
Copy link
Member Author

@chrisfilo what do you think we should do here? My feeling is that not running SDC unless the file has been pointed by an IntendedFor key would implicitly make IntendedFor mandatory. What is the current stand of BIDS on this?

@oesteban oesteban added this to the Future milestone Oct 20, 2017
@effigies
Copy link
Member

Just to be clear, here:

$ tree /data/bids/ds000223/sub-01 
/data/bids/ds000223/sub-01
├── anat
│   └── sub-01_T1w.nii.gz
├── fmap
│   ├── sub-01_dir-opposing_run-01_epi.json
│   ├── sub-01_dir-opposing_run-01_epi.nii.gz
│   ├── sub-01_dir-opposing_run-02_epi.json
│   └── sub-01_dir-opposing_run-02_epi.nii.gz
└── func
    ├── sub-01_task-mag_run-01_bold.json
    ├── sub-01_task-mag_run-01_bold.nii.gz
    ├── sub-01_task-mag_run-01_events.tsv
    ├── sub-01_task-mag_run-02_bold.json
    ├── sub-01_task-mag_run-02_bold.nii.gz
    ├── sub-01_task-mag_run-02_events.tsv
    ├── sub-01_task-mag_run-03_bold.json
    ├── sub-01_task-mag_run-03_bold.nii.gz
    ├── sub-01_task-mag_run-03_events.tsv
    ├── sub-01_task-mag_run-04_bold.json
    ├── sub-01_task-mag_run-04_bold.nii.gz
    └── sub-01_task-mag_run-04_events.tsv

My interpretation is that the opposing runs are specifically acquired for runs 01 and 02, and that they are not valid for 03 and 04. Is that wrong? (The IntendedFor fields are certainly written as if this is the case, but I don't have any outside context for this dataset.)

@oesteban
Copy link
Member Author

oesteban commented Oct 20, 2017 via email

@effigies
Copy link
Member

So this should be solved by #747, then?

@oesteban
Copy link
Member Author

Yes - mostly. The idea being: fmriprep tries to make the best estimation of the field map possible given a certain set of means (pepolar, fieldmap, syn, etc) and then corrects all BOLD scans with that.

As for BIDS, I think we are reaching to a point where we can rethink the "IntendedFor". With all this experience we gathered, I think we can propose to make the field mandatory. And the meaning would be something like: this EPI is the opposing direction of this other EPI (can be a BOLD, another EPI, a low-b diffusion or an SBref), and those two (or more) are the inputs for TOPUP (or whatever pepolar method you want to use).

@chrisgorgo
Copy link
Contributor

IntendedFor field is share across all types of fieldmap data and does not indicate how the fieldmaps should be estimated. It only tells which file a particular fieldmap should be applied to.

This sounds like a problem with the dataset itself - "IntendedFor" should be listed for all runs (unless they should not be applied to all runs). Please raise this issue via appropriate channels with OpenfMRI curation team.

As for what to do with fieldmap data that do not have "IntendedFor" fields - that is up to each package. One approach could be to (suggested by @poldrack a while ago) to create a robust average for all available fieldmaps (for each subject independently) and apply it to all BOLD runs (ignoring "IntendedFor" field even if it is present). The advantage of this approach is that due to averaging the fieldmap will be more robust.

@oesteban
Copy link
Member Author

Thanks, I forgot that IntendedFor applies to all fieldmaps.

Anyways, this seems to be a BIDS-specification issue more than a FMRIPREP issue. Especially with #747 there. I'll bring the discussion to the appropriate venue.

Feel free to reopen if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants