[ENH]: In-built support for spearman correlation for FunctionalConnectivity markers #335
No reviewers
Labels
No labels
CRITICAL
Stale
WIP
bug
concept
coordinate
dataset
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
maintenance
maps
marker
mask
on hold
parcellation
preprocess
question
ready
storage
template-space
triage
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
juaml/junifer!335
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/spearman_correlation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Which marker do you want to include?
Currently it does not work out of the box, but some people like it and its a small enough thing to expect it out of the box and not really worth it have users implement their own markers for this.
Is there any publication or available code?
just rank time series and get pearson correlation
Do you have a sample code that implements this outside of junifer?
Anything else to say?
No response
This also relates to #333.
We need to somehow address the issue that nilearn does not accept any other "method" than these ones here:
github.com/nilearn/nilearn@4f47301630/nilearn/connectome/connectivity_matrices.py (L497)In my opinion, we might need a custom
JuniferConnectivityMeasureakin toJuniferNiftiSpheresMasker, which would allow this.In my opinion, this is reasonable, and would also allow us to set the default to EmpiricalCovariance which is what we use mainly anyways.
We definitely will have more upsides than downsides from what I understand. I'll get the skeleton ready if @juaml/junifer-core agrees on this and then you can get this in while I get #333 in?
sounds good! ping me once i can start getting active
@LeSasse You should be able to easily implement it by tweaking https://github.com/juaml/junifer/blob/main/junifer/external/nilearn/junifer_connectivity_measure.py
We need to define the value for kind, i guess, so maybe something like:
can turn into:
What do you think
I'd actually keep "correlation" as is so that we're 100% compatible with nilearn but make the Spearman or any other correlation metric like so:
"<name> correlation", so Spearman can become: "spearman correlation".sounds good, then the list for implementing the spearman correlation will be:
Exactly! :D
Codecov Report
All modified and coverable lines are covered by tests ✅
Additional details and impacted files
100.00% <ø> (ø)Flags with carried forward coverage won't be shown. Click here to find out more.
92.30% <ø> (-0.22%)