Skip to content

Refactor diagnostics module #772

Closed
@JulioAPeraza

Description

@JulioAPeraza

Summary

Following the changes in #765, where we adopted get_clusters_table from nilearn, we plan to get the label maps from that function as well. That output should be available in the next nilearn release.

Additional details

This will potentially reduce the computation time and the number of lines of code, as ndimage.label won't be re-run.

Next steps

For nilearn>0.10.0, add return_label_maps parameter:

clusters_table, labeled_cluster_arr = reporting.get_clusters_table(
    target_img, 
    stat_threshold, 
    return_label_maps=True,
)

Metadata

Metadata

Assignees

Labels

diagnosticsIssues/PRs related to the diagnostics module.enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions