REGISTRATION overhaul !#175
REGISTRATION overhaul !#175AlexVCaron merged 37 commits intonf-neuro:mainfrom AlexVCaron:fix/registration
Conversation
|
It was long overdue, I like it! 😄 @AlexVCaron I am not aware of the offline discussion prompting these changes, but why using the If we are to change how we name transformation files, we could also go for the BIDS nomenclature directly, which I think is pretty intuitive (e.g. |
Thank you ! The new nomenclature is homemade, I was just looking for a clear annotation for transform directions, "forward"+"backward" seemed better than ""+"inverse". I do like going all-BIDS though, hadn't thought of it ! Could you point me to the standard or specification ? I cannot find it in the v1.0.0 of the BIDS specification. |
|
Fixes #174 |
|
Sadly, I am unsure if it is truly supported by BIDS as of now (derivative files naming is a bit experimental). I saw that post on NeuroStars that discusses it. I mainly adopted it through the examples I saw from fmriprep outputs 😅 . However, from my understanding, the current convention is to specify the origin and destination ( |
Still in WIP, but we can use what we like in it and adapt for what we need. Here are the entities that would create the names :
Would give something like this, for an affine+warp :
|
|
I am onboard with that! I would place the |
|
The official convention is in PR : nf-neuro/website#47 The set of entities necessary to distinguish between forward and backward transformation sequences : ( Or is it ? There is a corner case in the above for Nextflow : when both The problem :
It happens in This may be a case of BIDS overhaul of nf-neuro, which should happen, but not in this PR. The logic could work well, but it needs well formatted filenames all-around. Maybe we should keep my custom forward/backward naming convention for now and orchestrate for BIDS more carefully ? |
|
I agree, maybe abiding to the BIDS conventions should be done in all of nf-neuro at the same time. Otherwise, it can quickly become a mess of conventions... The forward/backward naming convention seems fine for now, but I do like the from/to that BIDS proposes. Maybe we could brainstorm a bit on how we should implement BIDS all around? |
gdevenyi
left a comment
There was a problem hiding this comment.
Lots of tiny commentary sprinkled in here.
Main thing is, I agree with the forward/backward naming here, there's a few more places to standardize the nomenclature regarding this.
Its a big PR, so I'll probably want to do another round.
|
@gdevenyi tests are passing with all naming changes, you can start your second review round ! |
…nt actual error gobbling in registration stubs
…ong running downloads and untar
…ther registration tests to check it doesn't affect other containers
Type of improvement
If submitting a new module or fixing a bug, please use the appropriate template.
Describe your improvement
Conventions
Documented in nf-neuro/website#47 !
There has been a lot of confusion throughout the evolution of registration in the library, for very good reasons by the way, I'm not pointing fingers. Nomenclature around registration is still changing, formats are not universal and spaces are used differently between tools. This PR attempts to fix it for nf-neuro, so it makes some decisions :
Major changes
Minor changes
nextflow.config(with minimally output publishing) + one in cases needing specific configurationDescribe how to test your improvement
Run lint and test for registration modules and the subworkflows that uses them
Checklist before requesting a review