-
Notifications
You must be signed in to change notification settings - Fork 32
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
ENH: Add a command line option to apply a transformation #143
Conversation
8905765
to
f97f597
Compare
Needs to be tested. @zhangfanmark would be great if you could or members in your lab could test this. |
@jhlegarreta I tested but it says there is no -t option |
line 209-214, wm_harden_transform.py -t "$TfmFile" "InputTractography" needs to be changed to the folder, because wm_harden_transform.py only supports folder input. |
f97f597
to
c50e2f6
Compare
@JoshuaKening thanks for trying. I have amended the script. Please let me know if the updated version works as expected. |
Add a command line option to apply a transformation to the obtained tractography data. Relevant for data where the brain size of the subject is significantly different (e.g. infant data) from an adult's brain size (used for the ORG atlas). The option allows to apply a scaling transformation so that the registration process to the ORG atlas data can work reasonably. The inverse transformation is automatically applied after the clustering process has finished in case the transformation file is provided. Document the use of the transform in documentation file.
c50e2f6
to
079ba8d
Compare
@JoshuaKening @zhangfanmark 079ba8d fixes issues with previous commits. This is ready to be merged on my side:
|
@JoshuaKening the script runs without issues on my computer (Ubuntu 22.04):
The above is the last line of the printed messages: you can check that it is right at the end of the script. A few thoughts:
|
|
There are no errors now, the issue is caused by the command I input is not complete. |
OK. So ready to be merged. |
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.
thanks looks good
Add a command line option to apply a transformation to the obtained tractography data. Relevant for data where the brain size of the subject is significantly different (e.g. infant data) from an adult's brain size (used for the ORG atlas). The option allows to apply a scaling transformation so that the registration process to the ORG atlas data can work reasonably. The inverse transformation is automatically applied after the clustering process has finished in case the transformation file is provided.
Document the use of the transform in documentation file.