<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://www.nitrc.org/themes/nitrc3.0/css/rss.xsl.php?feed=https://www.nitrc.org/export/rss20_forum.php?forum_id=4073" ?>
<?xml-stylesheet type="text/css" href="https://www.nitrc.org/themes/nitrc3.0/css/rss.css" ?>
<rss version="2.0"> <channel>
  <title>NITRC Graph Theory GLM (GTG) MATLAB Toolbox Forum: help</title>
  <link>http://www.nitrc.org/forum/forum.php?forum_id=4073</link>
  <description>Get Public Help</description>
  <language>en-us</language>
  <copyright>Copyright 2000-2026 NITRC OSI</copyright>
  <webMaster></webMaster>
  <lastBuildDate>Thu, 14 May 2026 0:17:05 GMT</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>NITRC RSS generator</generator>
  <item>
   <title>filename error</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=11240&amp;forum_id=4073</link>
   <description>Dear professors,&lt;br /&gt;
        when I do the first step, I had some problems with filename error.After I set parameters ande click 'start',MATLAB was reporting that 'Error using fopen The file name contains characters that are not contained in the filesystem encoding.&lt;br /&gt;
Certain operations may not work as expected'. &lt;br /&gt;
        I try to change all the filename but it did't work.I use matlab R2018A and  GTG_beta_045.Here are some pictures&lt;br /&gt;
with my work.</description>
   <author>li nan</author>
   <pubDate>Wed, 29 Apr 2020 7:15:06 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=11240&amp;forum_id=4073</guid>
  </item>
  <item>
   <title>RE: how to write design matrix for permutation analysis </title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=10256&amp;forum_id=4073</link>
   <description>[i]Originally posted by li wenlong:[/i][quote]The program will recognize that you have a repeated measure, because the last dimension of your input matrix is 2 (not 1).  Therefore, you don't have to explicitly do anything beyond setting up your input matrix correctly. In other words, the toolbox will automatically compute between, within, and (if needed) between x within interactions.  Therefore, you should just set up your design/contrast matrices as if you did not have a repeated measure and those effects will be automatically computed.[/quote][quote]&lt;br /&gt;
[/quote][quote]If you just want to compare the repeated measure, just create a variable that is one column of all ones and enter use that as your predictor.  This will setup a within-subjects comparison (equivalent to a paired t-test) that tests whether the mean of one condition differs from the mean of the other.  You don't need a separate 'group' predictor, unless you have different groups.  The contrast would just be 1.  You also don't need to do the -1 contrast, unless you want a 1-tailed test (you will be given the 1-tailed and 2-tailed p-values).   [/quote][quote]&lt;br /&gt;
[/quote][quote]&lt;br /&gt;
[/quote][quote]&lt;br /&gt;
[/quote][quote]Dear Dr. Spielberg,&lt;br /&gt;
&lt;br /&gt;
Forgive my ignorance, I meet the same questions and cannot fully understand what you replied. So, can we give an example：&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the connectivity matrix is 90*90*5*2 , now we set a design matrices:&lt;br /&gt;
(5 subjects: sub1/sub2/sub3/sub4/sub5;   2 conditions: A/B )&lt;br /&gt;
&lt;br /&gt;
we plan to compare A &amp;gt; B, should predictors be set like this?&lt;br /&gt;
&lt;br /&gt;
predictors: 1 1 1 1 1&lt;br /&gt;
options: Contrasts&lt;br /&gt;
contrast: [1 0]     (group is 1, intercept is 0)&lt;br /&gt;
A &amp;lt; B contrast: [-1 0]&lt;br /&gt;
&lt;br /&gt;
What do these two columns represent? And how should I set the predictors and contrast to find the correction between A &amp;gt; B and scale score?&lt;br /&gt;
Best wishes,&lt;br /&gt;
Wenlong[/quote]</description>
   <author>Jeffrey Spielberg</author>
   <pubDate>Thu, 12 Mar 2020 13:49:10 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=10256&amp;forum_id=4073</guid>
  </item>
  <item>
   <title>RE: how to write design matrix for permutation analysis </title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=10256&amp;forum_id=4073</link>
   <description>Dear Dr. Spielberg,&lt;br /&gt;
&lt;br /&gt;
Forgive my ignorance, I meet the same questions and cannot fully understand what you replied. So, can we give an example：&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the connectivity matrix is 90*90*5*2 , now we set a design matrices:&lt;br /&gt;
(5 subjects: sub1/sub2/sub3/sub4/sub5;   2 conditions: A/B )&lt;br /&gt;
&lt;br /&gt;
we plan to compare A &amp;gt; B, should predictors be set like this?&lt;br /&gt;
&lt;br /&gt;
predictors: 1 1 1 1 1&lt;br /&gt;
options: Contrasts&lt;br /&gt;
contrast: [1 0]     (group is 1, intercept is 0)&lt;br /&gt;
A &amp;lt; B contrast: [-1 0]&lt;br /&gt;
&lt;br /&gt;
What do these two columns represent? And how should I set the predictors and contrast to find the correction between A &amp;gt; B and scale score?&lt;br /&gt;
Best wishes,&lt;br /&gt;
Wenlong</description>
   <author>li wenlong</author>
   <pubDate>Wed, 11 Mar 2020 13:22:15 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=10256&amp;forum_id=4073</guid>
  </item>
  <item>
   <title>design matrix in permutation analysis</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=10274&amp;forum_id=4073</link>
   <description>Dear Jeffrey Spielberg,&lt;br /&gt;
Thank you very much for your help. When the design matrix is n*n*number of subjects*conditions, I still cannot figure out the corresponding design matrix and contrast. In your article named &amp;quot;Flexible brain network reconfiguration supporting inhibitory control&amp;quot; which published in 2015 in PNAS, each graph property was entered as a repeated-measure dependent variable into the GTG toolbox, with task condition (incongruent vs. congruent) as the repeated measure. Could you teach me how to write the design matrix and contrast when you analyze the data to compare the two conditions in your article? I mean if you could give me an example like the one below that from NBS.&lt;br /&gt;
&lt;br /&gt;
design matrix:&lt;br /&gt;
1 0 0 0 1&lt;br /&gt;
0 1 0 0 1&lt;br /&gt;
0 0 1 0 1&lt;br /&gt;
0 0 0 1 1&lt;br /&gt;
1 0 0 0 -1&lt;br /&gt;
0 1 0 0 -1&lt;br /&gt;
0 0 1 0 -1&lt;br /&gt;
0 0 0 1 -1&lt;br /&gt;
contrast:&lt;br /&gt;
0 0 0 0 1&lt;br /&gt;
&lt;br /&gt;
Thank you again. I am looking forward to hearing from you.&lt;br /&gt;
&lt;br /&gt;
Best wishes,&lt;br /&gt;
xiuling</description>
   <author>xiu ling</author>
   <pubDate>Fri, 07 Jun 2019 23:50:10 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=10274&amp;forum_id=4073</guid>
  </item>
  <item>
   <title>RE: how to write design matrix for permutation analysis </title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=10256&amp;forum_id=4073</link>
   <description>You don't have to account for the repeated measure in the design matrix - the toolbox will recognize that there is a repeated measure because of the dimensions of your input data and automatically set up between, within, and (if needed) between x within interactions.  Therefore, you should just set up your design/contrast matrices as if you did not have a repeated measure and those effects will be automatically computed.</description>
   <author>Jeffrey Spielberg</author>
   <pubDate>Mon, 03 Jun 2019 13:36:28 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=10256&amp;forum_id=4073</guid>
  </item>
  <item>
   <title>how to write design matrix for permutation analysis </title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=10256&amp;forum_id=4073</link>
   <description>Hi Dr. Spielberg,&lt;br /&gt;
&lt;br /&gt;
Thank you for developing this tool!&lt;br /&gt;
I'm having some difficulty at the run permutation analysis stage. &lt;br /&gt;
&lt;br /&gt;
If the format of connectivity matrix is n(ROI)*n(ROI)*number of subject*2(condition), how should I write  the design matrix and contrast vector in the stage of run permutation analysis to contrast the graph properties of 2 conditions. &lt;br /&gt;
&lt;br /&gt;
I am looking forward  to hearing from you. Thank you for your help.&lt;br /&gt;
xiuling</description>
   <author>xiu ling</author>
   <pubDate>Fri, 31 May 2019 11:40:03 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=10256&amp;forum_id=4073</guid>
  </item>
  <item>
   <title>error opening/runing permutation analyses</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=9315&amp;forum_id=4073</link>
   <description>Dear experts,&lt;br /&gt;
&lt;br /&gt;
There are some errors when I open or run the stage 4, my computer system is windows 10 and GTG is GTG_beta_0.45.&lt;br /&gt;
&lt;br /&gt;
1.Using matlab R2017a or matlab R2014b,I can not open the GUI fully(screenshot attached).&lt;br /&gt;
&lt;br /&gt;
2.Using matlab R2012a, I can open the GUI fully but can not  use parallel processing. I know that PCT was not available until matlab 2013, but it doesn't work even if PCT Workers is set to 1, the following is Matlab error message(PCT Workers=1):&lt;br /&gt;
&lt;br /&gt;
Undefined variable &amp;quot;parallel&amp;quot; or class &amp;quot;parallel.internal.convertStringToChar&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Error in gcp (line 38)&lt;br /&gt;
convertedArgs = parallel.internal.convertStringToChar(varargin);&lt;br /&gt;
Error in GTG_runpermanalyses_GUI&amp;gt;Start_pushbutton_Callback (line 1728)&lt;br /&gt;
if isempty(gcp('nocreate'))&lt;br /&gt;
Error in gui_mainfcn (line 96)&lt;br /&gt;
feval(varargin{:});&lt;br /&gt;
Error in GTG_runpermanalyses_GUI (line 98)&lt;br /&gt;
gui_mainfcn(gui_State, varargin{:});&lt;br /&gt;
Error in&lt;br /&gt;
@(hObject,eventdata)GTG_runpermanalyses_GUI('Start_pushbutton_Callback',hObject,eventdata,guidata(hObject))&lt;br /&gt;
Error while evaluating uicontrol Callback</description>
   <author>li wenlong</author>
   <pubDate>Tue, 22 May 2018 2:33:35 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=9315&amp;forum_id=4073</guid>
  </item>
  <item>
   <title>RE: ROC curve analysis</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=8751&amp;forum_id=4073</link>
   <description>You will want to extract the clustering coefficient values for each ROI (for each participant).  These are in the X_propcalc.mat file (or the X_permout.mat file).  You will need to figure out the index # for the ROIs you want.  To do this, look in out.ROI_labels and find the lines corresponding to the two ROIs.  The line numbers will be the index values you need.  Note that this is not necessarily the same as the value of that ROI in the original atlas you used.  For example, if the label for the dlPFC ROI was on line 30 of out.ROI_labels, the values you want can be extracted by running:&lt;br /&gt;
&lt;br /&gt;
dlPFC_CCvals = out.fullmat_graph_meas.clust_coef_pos(:,30,:);&lt;br /&gt;
&lt;br /&gt;
This will give you an n x 1 vector containing the CC values for the dlPFC ROI (if you want the Zen-Horvath CC, use clust_coef_ZH_pos instead of clust_coef_pos).</description>
   <author>Jeffrey Spielberg</author>
   <pubDate>Mon, 27 Nov 2017 16:42:45 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=8751&amp;forum_id=4073</guid>
  </item>
  <item>
   <title>ROC curve analysis</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=8751&amp;forum_id=4073</link>
   <description>Dear experts,&lt;br /&gt;
&lt;br /&gt;
Recently, I made a two-sample t test to compare the clustering coefficient between the patients' and HCs' groups, and I found some group difference in two nodes , the DLPFC and vmPFC. Now I want to extract  the value to do some simple ROC curve analysis to see if these group differences could clarify the two groups. Do you know what kind of value should I use? &lt;br /&gt;
&lt;br /&gt;
Looking forward for your reply,&lt;br /&gt;
&lt;br /&gt;
Thanks a lot,&lt;br /&gt;
&lt;br /&gt;
Hua</description>
   <author>Hua Yu</author>
   <pubDate>Sun, 26 Nov 2017 14:00:50 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=8751&amp;forum_id=4073</guid>
  </item>
  <item>
   <title>RE: covariates</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=8643&amp;forum_id=4073</link>
   <description>Commenting out matlabpool and parpool has not worked. Do you have other suggestions I could try?&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Heena</description>
   <author>Heena Manglani</author>
   <pubDate>Fri, 17 Nov 2017 20:47:44 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=8643&amp;forum_id=4073</guid>
  </item>
 </channel>
</rss>
