-
Notifications
You must be signed in to change notification settings - Fork 18
[WIP]: add module tensor #119
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: main
Are you sure you want to change the base?
Conversation
AlexVCaron
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.
A great start for your first module, some minor things to adjust and it'll be perfect !
| --- | ||
| # yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/meta-schema.json | ||
| name: "tensor_ratio" | ||
| description: Split the tensor image and compute the ratio of Dxx to Dyy and Dxx to Dzz for ALPS. |
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.
Specify to which convention the tensor image must abide to (I assume it's FSL). Something like :
The tensor elements must be ordered following convention, that is : Dxx, Dxy, Dxz, Dyy, Dyz, Dzz.
| tuple val(meta), path("*_Dxx_to_Dyy.nii.gz") , emit: tensor_x_to_y | ||
| tuple val(meta), path("*_Dxx_to_Dzz.nii.gz") , emit: tensor_x_to_z |
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 feel the names ratio_x_on_y or eval_x_on_y (same for x on z) would convey a better meaning. If you agree, please adjust, here and in the meta.
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.
This snapshot will have to be updated
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.
Remove the TODO comments in this file.
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.
Do you think the ratio of y on z could be interesting for someone ? If so, please add it to the module.
Type of improvement
If submitting a new module or fixing a bug, please use the appropriate template.
Describe your improvement
Add a module to create tensor ratio map for DTI-ALPS computation.
Describe how to test your improvement
to be tested with a tensor image (DTI or FW-DTI) as the input
Checklist before requesting a review