-
Notifications
You must be signed in to change notification settings - Fork 15
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
heuristic_option: (run) index_format option to allow for non-0-padded run indexes #48
Comments
reproin heuristic is developed/shipped within heudiconv, where you reference it from, so any PR should be submitted there code could not be changed as suggested since you cannot concatenate an Although I can possibly see the motivation, it is a bit odd that fmriprep starts to trim those leading 0s in derived output filenames, or may be it is a bug since I would expect fmriprep to preserve entity values as is, @effigies? |
It's from shifting to PyBIDS, which parses indices as integers, and does not record padding. |
Should then bids recommend to not use zero padding because pybids would remove it for the derived files this making it harder to align, or actually even breaking assumptions for common derivatives that file prefix remains unaltered? |
I guess the question should be reopened. I believe most of the discussion has been around the pain of making PyBIDS able to handle something that needs to be treated as both a string and an integer. But that is a solveable problem. |
It seems that ReproIn will zero pad run numbers, even if it wasn't set in the |
I think that would be good... we can't change right away though since it would make user conversions inconsistent with "upgrade" for no obvious benefit. An alternative is to finally find time to review/finalize or redo nipy/heudiconv#466 to introduce configuration, so then we could have heuristic specific configuration options, and add an option to reproin heuristic (e.g. `index_format="%2d") so it could be tuned up to the user's liking. We already have a good number of similar option ideas identified: https://github.com/ReproNim/reproin/issues?q=is%3Aissue+is%3Aopen+heuristic+option . I will adjust the title of this issue to match. |
Sorry, this is another instance of me not knowing where to submit the PR request, but I'll describe it here. In the reproin heuristic code there is theiscode snippet:
I wanted to see what your thoughts are on removing the zero padding of run labels. From this NeuroStars post, the BIDS spec specifies that run labels should be non-negative integers, and the pre-processed output of newer fMRIPrep version adhere to this integer designation for run labels. Thus, the code above could be changed to:
The text was updated successfully, but these errors were encountered: