-
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
Tractogram scripts parts4 #961
Tractogram scripts parts4 #961
Conversation
Hello @EmmaRenauld, Thank you for updating ! There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2024-05-14 15:09:27 UTC |
65327b7
to
7d3c538
Compare
7d3c538
to
b832064
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #961 +/- ##
==========================================
+ Coverage 67.97% 68.37% +0.40%
==========================================
Files 419 419
Lines 21615 21544 -71
Branches 3251 3219 -32
==========================================
+ Hits 14693 14731 +38
+ Misses 5633 5535 -98
+ Partials 1289 1278 -11
|
b832064
to
6a84ee2
Compare
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.
Minor comments
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.
Seems GTG, two huge scripts I would need to compare before merging.
ac856f8
to
5e87795
Compare
Writing here, so that we don't forget: |
The end of the discussion was: Should we modify the option in the script to have a --dilate_radius in number of voxel (= number of pass) like in scil_volume_math, or do we need to keep it in mm? |
b172cee
to
952cff9
Compare
952cff9
to
4141a6a
Compare
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.
About your questions for the 'sequential' nature of scil_tractogram_filter_with_roi.py. I think it is not actually so important to mention if it is sequential or not since we only support logical AND so the results are the same.
Quick description
Modified the tractogram filtering scripts! Looks like a lot of changes but the core methods should not have changed. Only the managing of all inputs and options.
scil_tractogram_filter_by_length
: ok. Cite other filtering scripts.scil_tractogram_filter_by_orientation
: ok. Cite other filtering scripts.scil_tractogram_filter_by_anatomy
: Will be difficult to review, sorry!_finish_all
.binarize_labels
toimage.labels.get_binary_mask_from_labels
dilate_mask
. Now uses scipy, like we do inscil_volume_math.py
! Dilation ratio now in voxels. Confirmed by @frheaultcompute_outliers
is not required anymore; I made sure that all filtering methods used also return the outlier streamlines or their ids.save_intermediate_sft
,save_rejected
,display_count
,save_count
) are now all included in_finalize_step
.scil_tractogram_filter_by_roi
: Will be difficult to review, sorry!--drawn_roi
and--atlas_roi
separately, for instance. To do it sequentially, we would need to get the input as is and parse it ourselves. However, I did change the management of thefiltering_list
option. Before, it was indeed sequential only for the filtering_list options! (and other options such as--drawn_roi
were done before which was not clear from explanation!!). I can revert my changes if you want, to keep sequential management. But then, I would explain better in the doc that it's only for filtering_list, and I would prevent using filtering_list with any other ROI option. Any comment? @frheault# Todo. Prepare now the names of other files (ex, ROI) and verify if exist and compatible.
Type of change
Check the relevant options.
Checklist