Error creating connectivity matrices

Submitted by chelsmar on

Hello,

I am new to graph theory and I'm trying out GraphVar (thank you for this toolbox, by the way!).  I created ROI timeseries data using DPARSFA and I am now trying to create connectivity matrices for each subject within GraphVar.  I'm running into an error message and I wonder if it's a problem with our stats toolbox or with the ROI signal files or something I haven't considered?  We have checked and rechecked the matlab stats package license and everything seems ok. 

So here is what I do:

1. Load Brainregions.csv and Variables.csv files.

2. Click generate conn matrix (keeping all defaults, pearson correlation) and select ROI signal files for multiple subjects. Hit ok and then I get this error:

Error in internal.stats.parseArgs (line 42)

[varargout{1:nargout}]=statslib.internal.parseArgs(pnames,dflts,varargin{:})

*Full error message attached*

 

I'm running GraphVar beta 0.62 and matlab 2014a.

Any help narrowing down the problem would be much appreciated!
 
Thank you,
Chelsea

Johann Kruschwitz

Wed, 01/27/2016 - 12:31

Hi,

the error is situated within the "corr" function (matlab correlation function). Probably somthing is wrong with the data you try to correlate. The data has to be in a matrix format (please check if the data you try to read into GraphVar is the same format as the sample time series data in the sample workspace - which should be the case if you extracted with DPARSFA). Do you have NaNs in the data? Does the brain regions file consist of the exact same number of rois as the number of columns in your matrix? Alternatively, you could also send me some of your data files and I can have a look whats the problem (if everything works we would know that its your stats toolbox..).

Best,
Johann

Thank you for your help, Johann.  I checked my time series data and it seems to look like the sample data.  It is 180 x 120.  I added 4 of my own ROIs to the brainregions file - I wonder if this is the problem?  I am attaching a few examples of the data as well as the brain regions file.
Best,
Chelsea

On Wed, Jan 27, 2016 at 7:31 AM, The R-fMRI Network <rfmri.org@gmail.com> wrote:
[To post a comment, please reply to rfmri.org@gmail.com ABOVE this line]

Commented by Johann Kruschwitz (Johann Kruschwitz)

Hi,

the error is situated within the "corr" function (matlab correlation function). Probably somthing is wrong with the data you try to correlate. The data has to be in a matrix format (please check if the data you try to read into GraphVar is the same format as the sample time series data in the sample workspace - which should be the case if you extracted with DPARSFA). Do you have NaNs in the data? Does the brain regions file consist of the exact same number of rois as the number of columns in your matrix? Alternatively, you could also send me some of your data files and I can have a look whats the problem (if everything works we would know that its your stats toolbox..).

Best,
Johann


Online version of this post: http://rfmri.org/comment/4103#comment-4103


Many a little makes a mickle -- your kind contributions shall make our efforts not perish from the earth. Please help The R-fMRI Network at http://rfmri.org/#overlay=HelpUs
To manage subscriptions, please visit: http://rnet.co/mailman/listinfo/rfmri.org_rnet.co

Mail comment ID: http://rfmri.org/mailcomment/redirect/%3C31.2210.4103.1453897900.99817a1df516a33743dc496841113e71%40www.rfmri.org%3E

1;Precentral_L;Precentral gyrus (Left);-40;-6;51 1;Precentral_R;Precentral gyrus (Right);40;-8;52 1;Frontal_Sup_L;Superior frontal gyrus, dorsolateral (Left);-19;35;42 1;Frontal_Sup_R;Superior frontal gyrus, dorsolateral (Right);20;31;44 1;Frontal_Sup_Orb_L;Superior frontal gyrus, orbital part (Left);-18;47;-13 1;Frontal_Sup_Orb_R;Superior frontal gyrus, orbital part (Right);17;48;-14 1;Frontal_Mid_L;Middle frontal gyrus (Left);-34;33;35 1;Frontal_Mid_R;Middle frontal gyrus (Right);37;33;34 1;Frontal_Mid_Orb_L;Middle frontal gyrus orbital part (Left);-32;50;-10 1;Frontal_Mid_Orb_R;Middle frontal gyrus orbital part (Right);32;53;-11 1;Frontal_Inf_Oper_L;Inferior frontal gyrus, opercular part (Left);-49;13;19 1;Frontal_Inf_Oper_R;Inferior frontal gyrus, opercular part (Right);49;15;21 1;Frontal_Inf_Tri_L;Inferior frontal gyrus, triangular part (Left);-47;30;14 1;Frontal_Inf_Tri_R;Inferior frontal gyrus, triangular part (Right);49;30;14 1;Frontal_Inf_Orb_L;Inferior frontal gyrus, orbital part (Left);-37;31;-12 1;Frontal_Inf_Orb_R;Inferior frontal gyrus, orbital part (Right);40;32;-12 1;Rolandic_Oper_L;Rolandic operculum (Left);-48;-8;14 1;Rolandic_Oper_R;Rolandic operculum (Right);52;-6;15 1;Supp_Motor_Area_L;Supplementary motor area (Left);-6;5;61 1;Supp_Motor_Area_R;Supplementary motor area (Right);8;0;62 1;Olfactory_L;Olfactory cortex (Left);-9;15;-12 1;Olfactory_R;Olfactory cortex (Right);8;16;-11 1;Frontal_Sup_Medial_L;Superior frontal gyrus, medial (Left);-6;49;31 1;Frontal_Sup_Medial_R;Superior frontal gyrus, medial (Right);8;51;30 1;Frontal_Med_Orb_L;Superior frontal gyrus, medial orbital (Left);-6;54;-7 1;Frontal_Med_Orb_R;Superior frontal gyrus, medial orbital (Right);7;52;-7 1;Rectus_L;Gyrus rectus (Left);-6;37;-18 1;Rectus_R;Gyrus rectus (Right);7;36;-18 1;Insula_L;Insula (Left);-36;7;3 1;Insula_R;Insula (Right);38;6;2 1;Cingulum_Ant_L;Anterior cingulate and paracingulate gyri (Left);-5;35;14 1;Cingulum_Ant_R;Anterior cingulate and paracingulate gyri (Right);7;37;16 1;Cingulum_Mid_L;Median cingulate and paracingulate gyri (Left);-6;-15;42 1;Cingulum_Mid_R;Median cingulate and paracingulate gyri (Right);7;-9;40 1;Cingulum_Post_L;Posterior cingulate gyrus (Left);-6;-43;25 1;Cingulum_Post_R;Posterior cingulate gyrus (Right);6;-42;22 1;Hippocampus_L;Hippocampus (Left);-26;-21;-10 1;Hippocampus_R;Hippocampus (Right);28;-20;-10 1;ParaHippocampal_L;Parahippocampal gyrus (Left);-22;-16;-21 1;ParaHippocampal_R;Parahippocampal gyrus (Right);24;-15;-20 1;Amygdala_L;Amygdala (Left);-24;-1;-17 1;Amygdala_R;Amygdala (Right);26;1;-18 1;Calcarine_L;Calcarine fissure and surrounding cortex (Left);-8;-79;6 1;Calcarine_R;Calcarine fissure and surrounding cortex (Right);15;-73;9 1;Cuneus_L;Cuneus (Left);-7;-80;27 1;Cuneus_R;Cuneus (Right);13;-79;28 1;Lingual_L;Lingual gyrus (Left);-16;-68;-5 1;Lingual_R;Lingual gyrus (Right);15;-67;-4 1;Occipital_Sup_L;Superior occipital gyrus (Left);-18;-84;28 1;Occipital_Sup_R;Superior occipital gyrus (Right);23;-81;31 1;Occipital_Mid_L;Middle occipital gyrus (Left);-33;-81;16 1;Occipital_Mid_R;Middle occipital gyrus (Right);36;-80;19 1;Occipital_Inf_L;Inferior occipital gyrus (Left);-37;-78;-8 1;Occipital_Inf_R;Inferior occipital gyrus (Right);37;-82;-8 1;Fusiform_L;Fusiform gyrus (Left);-32;-40;-20 1;Fusiform_R;Fusiform gyrus (Right);33;-39;-20 1;Postcentral_L;Postcentral gyrus (Left);-43;-23;49 1;Postcentral_R;Postcentral gyrus (Right);40;-25;53 1;Parietal_Sup_L;Superior parietal gyrus (Left);-24;-60;59 1;Parietal_Sup_R;Superior parietal gyrus (Right);25;-59;62 1;Parietal_Inf_L;Inferior parietal, but supramarginal and angular gyri (Left);-44;-46;47 1;Parietal_Inf_R;Inferior parietal, but supramarginal and angular gyri (Right);45;-46;50 1;SupraMarginal_L;Supramarginal gyrus (Left);-57;-34;30 1;SupraMarginal_R;Supramarginal gyrus (Right);57;-32;34 1;Angular_L;Angular gyrus (Left);-45;-61;36 1;Angular_R;Angular gyrus (Right);45;-60;39 1;Precuneus_L;Precuneus (Left);-8;-56;48 1;Precuneus_R;Precuneus (Right);9;-56;44 1;Paracentral_Lobule_L;Paracentral lobule (Left);-9;-25;70 1;Paracentral_Lobule_R;Paracentral lobule (Right);6;-32;68 1;Caudate_L;Caudate nucleus (Left);-12;11;9 1;Caudate_R;Caudate nucleus (Right);14;12;9 1;Putamen_L;Lenticular nucleus, putamen (Left);-25;4;2 1;Putamen_R;Lenticular nucleus, putamen (Right);27;5;2 1;Pallidum_L;Lenticular nucleus, pallidum (Left);-19;0;0 1;Pallidum_R;Lenticular nucleus, pallidum (Right);20;0;0 1;Thalamus_L;Thalamus (Left);-12;-18;8 1;Thalamus_R;Thalamus (Right);12;-18;8 1;Heschl_L;Heschl gyrus (Left);-43;-19;10 1;Heschl_R;Heschl gyrus (Right);45;-17;10 1;Temporal_Sup_L;Superior temporal gyrus (Left);-54;-21;7 1;Temporal_Sup_R;Superior temporal gyrus (Right);57;-22;7 1;Temporal_Pole_Sup_L;Temporal pole: superior temporal gyrus (Left);-41;15;-20 1;Temporal_Pole_Sup_R;Temporal pole: superior temporal gyrus (Right);47;15;-17 1;Temporal_Mid_L;Middle temporal gyrus (Left);-57;-34;-2 1;Temporal_Mid_R;Middle temporal gyrus (Right);56;-37;-1 1;Temporal_Pole_Mid_L;Temporal pole: middle temporal gyrus (Left);-37;15;-34 1;Temporal_Pole_Mid_R;Temporal pole: middle temporal gyrus (Right);43;15;-32 1;Temporal_Inf_L;Inferior temporal gyrus (Left);-51;-28;-23 1;Temporal_Inf_R;Inferior temporal gyrus (Right);53;-31;-22 1;Cerebelum_Crus1_L;Cerebelum_Crus1_L;-36;-67;-29 1;Cerebelum_Crus1_R;Cerebelum_Crus1_R;37;-67;-30 1;Cerebelum_Crus2_L;Cerebelum_Crus2_L;-29;-73;-38 1;Cerebelum_Crus2_R;Cerebelum_Crus2_R;32;-69;-40 1;Cerebelum_3_L;Cerebelum_3_L;-9;-37;-19 1;Cerebelum_3_R;Cerebelum_3_R;12;-34;-19 1;Cerebelum_4_5_L;Cerebelum_4_5_L;-15;-43;-17 1;Cerebelum_4_5_R;Cerebelum_4_5_R;17;-43;-18 1;Cerebelum_6_L;Cerebelum_6_L;-23;-59;-22 1;Cerebelum_6_R;Cerebelum_6_R;25;-58;-24 1;Cerebelum_7b_L;Cerebelum_7b_L;-33;-60;-43 1;Cerebelum_7b_R;Cerebelum_7b_R;35;-64;-47 1;Cerebelum_8_L;Cerebelum_8_L;-26;-55;-48 1;Cerebelum_8_R;Cerebelum_8_R;25;-56;-49 1;Cerebelum_9_L;Cerebelum_9_L;-11;-49;-46 1;Cerebelum_9_R;Cerebelum_9_R;9;-49;-46 1;Cerebelum_10_L;Cerebelum_10_L;-23;-34;-42 1;Cerebelum_10_R;Cerebelum_10_R;26;-34;-41 1;Vermis_1_2;Vermis_1_2;1;-39;-20 1;Vermis_3;Vermis_3;1;-40;-11 1;Vermis_4_5;Vermis_4_5;1;-52;-6 1;Vermis_6;Vermis_6;1;-67;-15 1;Vermis_7;Vermis_7;1;-72;-25 1;Vermis_8;Vermis_8;1;-64;-34 1;Vermis_9;Vermis_9;1;-55;-35 1;Vermis_10;Vermis_10;0;-46;-32 1;AntIns_GLXbox_34_19_0;AntIns_GLX;34;19;0 1;PostIns_GLXbox_38_-17_8;PostIns_GLX;38;-17;8 1;R_aInsula_jieun_37_18_-1;AntIns_jieun;37;18;-1 1;R_pInsula_jieun_41_-17_10;PostIns_jieun;41;-17;10

Attachment Size
error message 271.35 KB
Forums