-
Notifications
You must be signed in to change notification settings - Fork 62
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
WIP: New labels maps and simplification of tractometry profile scripts #554
Conversation
Hello @frheault, Thank you for updating !
Comment last updated at 2022-07-27 18:26:08 UTC |
Build Failed 💥 |
Build Failed 💥 |
Build Failed 💥 |
Build passed ! Good Job 🍻 ! |
Build passed ! Good Job 🍻 ! |
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 I covered everything but will do a second round once you fixed everything.
centroid = get_streamlines_centroid(ref_bundle.streamlines, | ||
20)[0] | ||
else: | ||
centroid = get_streamlines_centroid(sft.streamlines, 20)[0] |
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.
Why 20 points has never been an arg and is hardcoded ?
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 is simply because I have to convert streamlines to an array with an equal number of pts, it could be 10, 20, 50, but in the end, it changes virtually nothing.
Co-authored-by: arnaudbore <arnaud.bore@gmail.com>
Build passed ! Good Job 🍻 ! |
…nto new_labels_map
Build Failed 💥 |
@arnaudbore The import inside the function is a circular dependency, everything crash if I put it at the top. |
Build passed ! Good Job 🍻 ! |
Build passed ! Good Job 🍻 ! |
Build passed ! Good Job 🍻 ! |
Build passed ! Good Job 🍻 ! |
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.
Help is missing - no npz saved anymore.
Build passed ! Good Job 🍻 ! |
Build passed ! Good Job 🍻 ! |
Adding new functionalities to
scil_compute_bundle_voxel_label_map.py
Support multiples (co-registered) input to improve longitudinal tractometry and add the new (yet undertested) labeling approach based on bundle-shape (instead of simple euclidian distance to a single centroid).
Also, remove the need for NPZ file in tractometry and rely simply on NIFTI file instead (simpler to follow). Fix a problem with double weighting using density (can explain if needed)
Finally, use a memmap for distance to centroids instead of pure RAM. So big bundle can have their labels map computed with >> 20 points!
This PR requires an update to the Tractometry-Flow pipeline.