Skip to content
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

Error with ciftify_peaktable : "ValueError : must have equal en keys and value when setting an iterable". #159

Open
SamDaou opened this issue May 25, 2021 · 4 comments

Comments

@SamDaou
Copy link

SamDaou commented May 25, 2021

Good afternoon Dr.Dickie,

I'm an M2 student of neuroscience. I performed a vertex-wise comparison of cortical thickness maps (fs_32k) with FSL_PALM, thus obtaining statistical results for each hemisphere. Thereafter, I merged bot files into a single cifti file dscalar.nii with wb_command 1.4.2.

As I had significant clusters with -log(p) values > 1.3, I decided to extract the significant clusters using ciftify_peaktable. When I set a max-threshold at 1.3 and let other parameters as defaults, I get a nifti file and a csv file containing information about my clusters. However, my two largest and most significant clusters (that can be seen in the nifti file) do not appear in the final csv file.

I suppose I should reduce the surface distance below 20 (default value), but when I do it, I get the following error :
"ValueError : must have equal en keys and value when setting an iterable".

Besides, no matter the values I choose for my parameters, I get deprecation warnings of the following type but they do not seem to prevent the program from working :
"deprecated from version: 2.1
will raise class <class 'nibble.deprecator.expireddeprecationerror'> as of version
4.0

Thank you in advance for your help,

DAOUDI Sami.

@edickie
Copy link
Owner

edickie commented May 25, 2021 via email

@SamDaou
Copy link
Author

SamDaou commented May 27, 2021

Good afternoon Dr.Dickie,

Thank you for you answer !

I tried using ciftify_statclust_report, but I'm getting an error (line 182 in the code) that I did not have with ciftify_peaktable, even when using the default parameters : AttributeError: 'Index' object has no attribute 'get_values'. Thereafter, only the nifti file is generated but not the csv file. I admit I do not know how to deal with that error ^^.

DAOUDI Sami.

@joebathelt
Copy link

I ran into the same issue. I think it might be because df.index.get_values() is deprecated in newer versions of pandas (>0.25, see pandas documentation). It could be replaced with df.index.to_numpy().

@joebathelt
Copy link

UPDATE: This did indeed solve it for me. I changed all instances of df.index.get_values() in ciftify_statclust_report.py and report.py to df.index.to_numpy. Then, ciftify_statclust_report ran and produced sensible outputs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants