Closed EmmaRenauld closed 1 month ago
Hello @EmmaRenauld, Thank you for updating !
There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers:
Attention: Patch coverage is 71.98697%
with 86 lines
in your changes are missing coverage. Please review.
Project coverage is 68.37%. Comparing base (
11f218b
) to head (fbd68fb
).
Writing here, so that we don't forget: As discovered by @arnaudbore, the new dilation usage creates a difference in the results are compared to the master branch. gm_mask on master: 839 238 voxels. gm_mask here: 854 041 voxels.
Writing here, so that we don't forget: As discovered by @arnaudbore, the new dilation usage creates a difference in the results are compared to the master branch. gm_mask on master: 839 238 voxels. gm_mask here: 854 041 voxels.
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?
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