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

Heudiconv: Automatically include “IntendedFor” field in the metadata #474

Closed
ChristianNSchmitz opened this issue Nov 4, 2020 · 5 comments

Comments

@ChristianNSchmitz
Copy link

Dear heudiconv-team,
we are using heudiconv and fmriprep for preprocessing functional MRI data. As we would like to use fieldmaps to unwarp these images, the fieldmap-metadata has to include the key “IntendedFor” in order to be used with fmriprep.
Is there a way for heudiconv to automatically include this data in the metadata using the heuristic file? I have seen that the package fw-heudiconv does include it, but we would appreciate using the docker version of heudiconv.
Thank you very much for you support!
Best,
Christian

@yarikoptic
Copy link
Member

Unfortunately not yet automagically. Original issue #138

@mirestrepo
Copy link

In case it's helpful, this is our work around, we do it as a post processing step

@pvelasco
Copy link
Contributor

pvelasco commented Dec 8, 2020

I have written a module to do this (and also add a "NumberOfVolumes" field to the functional jsons), and I would like to add it to this repo.
To run it, you need to have all the json files extracted in the destination folder, so what would be the place to insert the call?

@yarikoptic
Copy link
Member

I think it would be useful also as a "tool" (command) to run, so why not to

  • add populate_intended_for(path_to_bids_session) to heudiconv/bids.py
  • interface in main.py:process_extra_commands by sweeping across provided paths
  • then we would need to interface it also in convert.py:convert

@yarikoptic
Copy link
Member

we have now implementation within heudiconv and also supplementary command to populate intended for in already converted data.

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

No branches or pull requests

4 participants