[BUG] Abnormal vertex reassignment in neuromaps.nulls.alexander_bloch
#83
Labels
bug
Something isn't working
neuromaps.nulls.alexander_bloch
#83
Issue summary
(Posting here for traceability)
Vertex values of large swathes of cortex appear to not be reassigned in null maps generated by the
neuromaps.nulls.alexander_bloch
method, resulting in abnormal proportions of repeated values.Detailed issue description
Hi neuromaps team, thank you for this wonderful tool!
While attempting to use
neuromaps.nulls.alexander_bloch()
to spin a map of vertex-parcel assignments for a data-driven cortical parcellation (e.g. where the data is a 81924x1 array of integer parcel labels from 1-8), I noticed an issue with the generated null maps upon plotting them on my CIVET cortical surface. Certain vertices appear to be reassigned significantly more than others, resulting in multiple parcel labels being lost in the 'spun' maps.I was unable to reproduce this behaviour using the original Alexander-Bloch matlab spin-test toolbox (the null maps from the o.g. implementation look normal), so this appears to be a
neuromaps
-specific issue (or an issue of how I am using it), or possibly a bug introduced by one of the methods called behind the scenes (netneurotools.stats.gen_spinsamples()
?)...The specific data I was trying to spin can be found here (in the code below, lh_nmf-k8_allcomps.txt = lh_nmf-resid-zvert_k8_clustering.txt, and rh_nmf-k8_allcomps.txt = rh_nmf-resid-zvert_k8_clustering.txt), and the surfaces I used can be found here.
Steps to reproduce issue
Software version
0.0.3
What operating system were you using when you encountered this issue?
Code of Conduct
neuromaps
Code of ConductThe text was updated successfully, but these errors were encountered: