-
Notifications
You must be signed in to change notification settings - Fork 21
json and invocation for testing new CBRAIN tool for DWI denoise prepr… #326
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
base: master
Are you sure you want to change the base?
Conversation
…ocessing DesignerV2
| "/home/hayabusa/PROJECT_MPN/MPN_TESTS/sub-MPN0000087/ses-MPN1Scan1/dwi/sub-MPN0000087_ses-MPN1Scan1_acq-multib38_dir-AP_dwi.nii.gz", | ||
| "/home/hayabusa/PROJECT_MPN/MPN_TESTS/sub-MPN0000087/ses-MPN1Scan1/dwi/sub-MPN0000087_ses-MPN1Scan1_acq-multib70_dir-AP_dwi.nii.gz" | ||
| ] | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we do not store invocations in this folder, please remove. It will likely create problems
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can attach file separately to the PR, if you like
| "custom": { | ||
| "cbrain:author": "Alexandre Pastor-Bernier <alexandre.pastor@mcgill.ca>", | ||
| "cbrain:readonly-input-files": true, | ||
| "cbrain:integrator_modules": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in cbrain, you should use actually existing id, such as phase, no input has 'input' id. This will cause an error during integration or run
| "url":"https://nyu-diffusionmri.github.io/DESIGNER-v2/", | ||
| "command-line": "B0=[RPE_B0]; SUBJECT=$(basename $B0); SID=${SUBJECT%%_ses}; designer [MAG] [OUT_DIR] -denoise -shrinkage frob -algorithm jespersen [PHASE] -degibbs -pf 0.75 [PENDIR] -eddy [RPE_B0] -normalize -b1correct [PROCESSING] -nocleanup", | ||
| "container-image": { | ||
| "image": "designer2_v2.0.13", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use exact image name in dockerhub format
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is
nyudiffusionmri/designer2:v2.0.13
it seems a bit strange as 2 appears both in the name and the version tag, yet a
correct docker name will help us (eventually) update to 2.0.14 or higher when needed
| "optional": false, | ||
| "value-key": "[PHASE]", | ||
| "command-line-flag":"-phase" | ||
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you would need to create CBRAIN file lists ahead for this, let's discuss other options.
|
In MPN data provider, you register subject folders rather than individual files. Therefore, for the purposes of the MPN project, it would be better to have boutiques that accept a single folder as input. In fact, we could use BidsSingleSubjectMaker so it appears as a BIDS app tool with dataset input and subject. Then, perhaps paths could be passed as string parameters. What do you think? I understand that for many users, especially those familiar with Designer 2, a more straightforward implementation might work better. If you like, we can integrate it this way and then determine what changes are needed to fit MPN’s requirements. Perhaps we could also create an additional tool, such as MPN-designer or MPN-diffuse, which would more closely match your original script. Additionally, there are a few technical issues within the boutiques code that need attention. |
MontrealSergiy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see above comments, namely
- correct docker name
- correct "input" key to something properly defined
- discuss applicability to MNP
| "/home/hayabusa/PROJECT_MPN/MPN_TESTS/sub-MPN0000087/ses-MPN1Scan1/dwi/sub-MPN0000087_ses-MPN1Scan1_acq-multib38_dir-AP_dwi.nii.gz", | ||
| "/home/hayabusa/PROJECT_MPN/MPN_TESTS/sub-MPN0000087/ses-MPN1Scan1/dwi/sub-MPN0000087_ses-MPN1Scan1_acq-multib70_dir-AP_dwi.nii.gz" | ||
| ] | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can attach file separately to the PR, if you like
| "url":"https://nyu-diffusionmri.github.io/DESIGNER-v2/", | ||
| "command-line": "B0=[RPE_B0]; SUBJECT=$(basename $B0); SID=${SUBJECT%%_ses}; designer [MAG] [OUT_DIR] -denoise -shrinkage frob -algorithm jespersen [PHASE] -degibbs -pf 0.75 [PENDIR] -eddy [RPE_B0] -normalize -b1correct [PROCESSING] -nocleanup", | ||
| "container-image": { | ||
| "image": "designer2_v2.0.13", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is
nyudiffusionmri/designer2:v2.0.13
it seems a bit strange as 2 appears both in the name and the version tag, yet a
correct docker name will help us (eventually) update to 2.0.14 or higher when needed
| "input": [ "NiftiFile", "SingleFile" ] | ||
| }, | ||
| "BoutiquesOutputFileTypeSetter": { | ||
| "output_dir": "DesignerOutput" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On top of all the changes suggested by Sergiy, this Userfile model 'DesignerOutput' does not exist and is not provided in the PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alex, maybe delete this type setter for now. It is optional, mostly to distinguish given tool output conveniently.
Of course if you can define DesignerOutput type if you have a gist of ruby coding, or just following few other examples.
No need of this file for CBRAIN -> in reply to Segey
Added a new descriptor for the FreeSurfer cortical defacing ad refacing process, including command-line options and input/output specifications.
Removed and restructured output definitions in the freesurfer8_MiDeFace descriptor.
Updating to load with FS8 # But need to bind wrapper-script !
Removed input for NIFTI file and updated session input details.
…ocessing DesignerV2