<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://stage.nitrcce.org/themes/nitrc3.0/css/rss.xsl.php?feed=https://stage.nitrcce.org/export/rss20_forum.php?forum_id=5530" ?>
<?xml-stylesheet type="text/css" href="https://stage.nitrcce.org/themes/nitrc3.0/css/rss.css" ?>
<rss version="2.0"> <channel>
  <title>NITRC SPM for fNIRS toolbox Forum: help</title>
  <link>http://stage.nitrcce.org/forum/forum.php?forum_id=5530</link>
  <description>help_forum</description>
  <language>en-us</language>
  <copyright>Copyright 2000-2026 NITRC OSI</copyright>
  <webMaster></webMaster>
  <lastBuildDate>Sat, 11 Apr 2026 3:15:01 GMT</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>NITRC RSS generator</generator>
  <item>
   <title>Spatial file type in spm error</title>
   <link>http://stage.nitrcce.org/forum/forum.php?thread_id=14973&amp;forum_id=5530</link>
   <description>&lt;p&gt;I used the procedure &quot;Conversion of NIRx NIRScout data format to SPM-fNIRS data format&quot; by using the .wl1 , .wl2 and .hdr files. And this worked for me but when click spatial and try to upload files it suggests I use a .csv file. I collected my data using nirs star/nirs lab and am now trying to process in spm. The raw data file folder doesn't have any csv files. It does have config.txt, probe_info.txt, .dat, .hdr, .mat, .avg, and more. Does anyone know which files I need to use for this step or what works. I keep getting an error.&amp;nbsp;&lt;/p&gt;</description>
   <author>Tatiana Pillsbury</author>
   <pubDate>Fri, 01 Mar 2024 6:08:09 GMT</pubDate>
   <guid>http://stage.nitrcce.org/forum/forum.php?thread_id=14973&amp;forum_id=5530</guid>
  </item>
  <item>
   <title>RE: Read data errors </title>
   <link>http://stage.nitrcce.org/forum/forum.php?thread_id=14063&amp;forum_id=5530</link>
   <description>I am having the same problem. Did you find a solution?</description>
   <author>Daina Crafa</author>
   <pubDate>Fri, 19 May 2023 12:51:19 GMT</pubDate>
   <guid>http://stage.nitrcce.org/forum/forum.php?thread_id=14063&amp;forum_id=5530</guid>
  </item>
  <item>
   <title>Read data errors </title>
   <link>http://stage.nitrcce.org/forum/forum.php?thread_id=14063&amp;forum_id=5530</link>
   <description>Hi all, &lt;br /&gt;
&lt;br /&gt;
I am trying to use the spm fnirs toolbox to analyze fNIRS data obtained with NIRSport2 but I am unable to read and convert the raw data. There is no specific procedure in the manual that shows how to convert NIRSport2 raw data. &lt;br /&gt;
&lt;br /&gt;
I tried to use the procedure &amp;quot;Conversion of NIRx NIRScout data format to SPM-fNIRS data format&amp;quot; by using the .wl1 , .wl2 and .hdr files but I run into the following error: &lt;br /&gt;
&lt;br /&gt;
Not enough input arguments.&lt;br /&gt;
&lt;br /&gt;
Error in spm_fnirs_convert_ui (line 90)&lt;br /&gt;
if ~isfield(P.fname.raw, 'type')&lt;br /&gt;
Error in spm_fnirs&amp;gt;push_convert_Callback (line 58)&lt;br /&gt;
spm_fnirs_convert_ui;&lt;br /&gt;
Error in gui_mainfcn (line 95)&lt;br /&gt;
feval(varargin{:});&lt;br /&gt;
Error in spm_fnirs (line 25)&lt;br /&gt;
gui_mainfcn(gui_State, varargin{:});&lt;br /&gt;
Error in matlab.graphics.internal.figfile.FigFile/read&amp;gt;@(hObject,eventdata)spm_fnirs('push_convert_Callback',hObject,eventdata,guidata(hObject))&lt;br /&gt;
Error while evaluating UIControl Callback.&lt;br /&gt;
&lt;br /&gt;
Has anyone experienced the same problem? Is there another way to convert the data?&lt;br /&gt;
&lt;br /&gt;
Thank you, &lt;br /&gt;
Best,&lt;br /&gt;
Cam</description>
   <author>camsan</author>
   <pubDate>Mon, 23 Jan 2023 15:33:33 GMT</pubDate>
   <guid>http://stage.nitrcce.org/forum/forum.php?thread_id=14063&amp;forum_id=5530</guid>
  </item>
  <item>
   <title>RE: error results _ never end</title>
   <link>http://stage.nitrcce.org/forum/forum.php?thread_id=10326&amp;forum_id=5530</link>
   <description>I also have the same issue, as others have reported before. I have tried several Matlab version (from 2014 to 2022), and different operating systems (MacOS and Windows) and the error persists. The only way I get to prevent the never end loop is running twice the estimation GLM parameter. However, the result I get after calculating the activation p values is a blank surface of the rendered brain, without any significant cortical activation value. Looking at the beta values, it seems that they are smaller than they should be, or at least when you multiply them by 5 or 10, for example, it results in a cortical activation figure closer to that represented in the manual, but still not the same. &lt;br /&gt;
&lt;br /&gt;
I wonder if someone found a solution to this issue. Any help would be much appreciated.&lt;br /&gt;
&lt;br /&gt;
Best wishes,&lt;br /&gt;
&lt;br /&gt;
Manuel</description>
   <author>Manuel Munoz</author>
   <pubDate>Wed, 16 Nov 2022 3:03:16 GMT</pubDate>
   <guid>http://stage.nitrcce.org/forum/forum.php?thread_id=10326&amp;forum_id=5530</guid>
  </item>
  <item>
   <title>RE: error results _ never end</title>
   <link>http://stage.nitrcce.org/forum/forum.php?thread_id=10326&amp;forum_id=5530</link>
   <description>I am also having the same issue.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When I stopped it, the command line showed the following error.&lt;br /&gt;
&lt;br /&gt;
Operation terminated by user during spm_ECdensity&lt;br /&gt;
&lt;br /&gt;
In spm_P_RF (line 63)&lt;br /&gt;
EC  = spm_ECdensity(STAT,Z,df);&lt;br /&gt;
In spm_uc_RF (line 37)&lt;br /&gt;
[P, P, p] = spm_P_RF(1,0,u,df,STAT,R,n);&lt;br /&gt;
In spm_uc (line 31)&lt;br /&gt;
u = spm_uc_RF(a,df,STAT,R,n);&lt;br /&gt;
In spm_fnirs_viewer_stat&amp;gt;push_activation_Callback (line 211)&lt;br /&gt;
u = spm_uc(u,df, SPM.xCon(ic).STAT , SPM.xVol.R{view},1,SPM.xVol.S{view});&lt;br /&gt;
In gui_mainfcn (line 95)&lt;br /&gt;
feval(varargin{:});&lt;br /&gt;
In spm_fnirs_viewer_stat (line 35)&lt;br /&gt;
gui_mainfcn(gui_State, varargin{:});&lt;br /&gt;
In matlab.graphics.internal.figfile.FigFile/read&amp;gt;@(hObject,eventdata)spm_fnirs_viewer_stat('push_activation_Callback',hObject,eventdata,guidata(hObject))&lt;br /&gt;
Interrupt while evaluating UIControl Callback.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It seems that the program can not exit the following &amp;quot;while loop&amp;quot; of spm_uc_RF (line 37)&lt;br /&gt;
&lt;br /&gt;
%-Approximate estimate using E{m}&lt;br /&gt;
%--------------------------------------------------------------------------&lt;br /&gt;
d  = 1;&lt;br /&gt;
while abs(d) &amp;gt; 1e-6&lt;br /&gt;
[P, P, p] = spm_P_RF(1,0,u,df,STAT,R,n);&lt;br /&gt;
[P, P, q] = spm_P_RF(1,0,u + du,df,STAT,R,n);&lt;br /&gt;
d         = (a - p)/((q - p)/du);&lt;br /&gt;
u         = u + d;&lt;br /&gt;
if isinf(u), u=+Inf; return; end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I was using the sample data following the manual with Matlab R2022b on Mac.&lt;br /&gt;
&lt;br /&gt;
Does somebody find any solution?</description>
   <author>yasunori</author>
   <pubDate>Tue, 01 Nov 2022 2:10:23 GMT</pubDate>
   <guid>http://stage.nitrcce.org/forum/forum.php?thread_id=10326&amp;forum_id=5530</guid>
  </item>
  <item>
   <title>How to add covariates to paired sample t-test design? </title>
   <link>http://stage.nitrcce.org/forum/forum.php?thread_id=13705&amp;forum_id=5530</link>
   <description>Hello all&lt;br /&gt;
&lt;br /&gt;
I have a within subjects design, and I want to examine a covariate of interest. Each subject had two maps generated (wins &amp;gt; control and nowins &amp;gt; control). These are my two con maps going into the second level as a paired t-test (wins&amp;gt;control &amp;gt; nowins&amp;gt;control). I want to see how learning rate (covariate of interest) scales with this comparison, but I'm confused on how to enter the covariate and what the contrast vector should be.&lt;br /&gt;
&lt;br /&gt;
Should there be two vectors for the covariate values, one for the con_0001 and one for con_0002, or should they be in the same vector? &lt;br /&gt;
&lt;br /&gt;
I only have one learning rate per subject, so should this learning rate value be duplicated (0.5 0.5 per subject) or with zeros separating (0.5 0 per subject)? &lt;br /&gt;
&lt;br /&gt;
What should the contrast vector look like? My guess with how my design is currently set up, it would be .5 -.5 .5 -.5. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I attached a screenshot of the design matrix in case my description was not clear. &lt;br /&gt;
&lt;br /&gt;
Thanks!</description>
   <author>Miranda Ramirez</author>
   <pubDate>Wed, 10 Aug 2022 17:15:35 GMT</pubDate>
   <guid>http://stage.nitrcce.org/forum/forum.php?thread_id=13705&amp;forum_id=5530</guid>
  </item>
  <item>
   <title>Association between ASL (repeated measure) &amp;amp; baseline covariate (paired t-test)</title>
   <link>http://stage.nitrcce.org/forum/forum.php?thread_id=13456&amp;forum_id=5530</link>
   <description>Dear all,&lt;br /&gt;
&lt;br /&gt;
We are analysing ASL-data and our research question is, whether there is an association between a baseline value (one value per subject) and changes in ASL-signal (between 2 conditions, within one subject).&lt;br /&gt;
This means that every subject has one baseline value and two following ASL-scans (control vs. intervention) and we'd like to find out whether there's an association between these measures.&lt;br /&gt;
We used a 2-repeated measure design and compared the ASL scans in a paired t-test.&lt;br /&gt;
&lt;br /&gt;
We wanted to ask, whether it is valid to look at the association between these measures within SPM in a paired t-test and if not, what the best way would be to do this.&lt;br /&gt;
&lt;br /&gt;
Thanks a lot for your help,&lt;br /&gt;
Nathalie</description>
   <author>Nathalie Rieser</author>
   <pubDate>Tue, 10 May 2022 12:45:55 GMT</pubDate>
   <guid>http://stage.nitrcce.org/forum/forum.php?thread_id=13456&amp;forum_id=5530</guid>
  </item>
  <item>
   <title>Converting Raw Data to hemoglobin concentrations</title>
   <link>http://stage.nitrcce.org/forum/forum.php?thread_id=13448&amp;forum_id=5530</link>
   <description>Dear all,&lt;br /&gt;
&lt;br /&gt;
I am trying to convert my Raw Data from an fNIRS measurement with NIRSport to hemoglobin concentrations.&lt;br /&gt;
&lt;br /&gt;
I read in the data with the function spm_fnirs_read_nirscout(F) which stores the results in a NIRS.mat file. Afterwards I am specifying all my features P which are needed for the convert function spm_fnirs_convert_ui(F{1},P), which calculates the hemoglobin changes by the Beer-Lambert Law.&lt;br /&gt;
&lt;br /&gt;
load NIRS.mat&lt;br /&gt;
P.wav = [760 850];% wavelengths [nm] of the *.wl1 and *.wl2 files, respectively eg, 760 850 nm&lt;br /&gt;
P.age = [21] ; % age of subject [years] to be used in estimation of DPF&lt;br /&gt;
P.d = [3];% distance between source and detector [cm] eg, 2.5&lt;br /&gt;
P.acoef = [1.4033 3.8547; 2.6694 1.8096];%molar absorption coefficients [mM^-1cm^-1] of HbO and HbR at wavelength 1 and wavelength2.&lt;br /&gt;
P.dpf = [[6.658 5.5957]]; %DPF at wavelength 1 and wavelength&lt;br /&gt;
spm_fnirs_convert_ui(F{1}, P);&lt;br /&gt;
&lt;br /&gt;
I do not get any error message, but regarding the new NIRS.mat file all fields are empty (od, hbo, hbr, hbt). So it seems like Matlab doesn't calculate anything.&lt;br /&gt;
&lt;br /&gt;
Having a closer look at the function, I saw that I don't have the variable P.base.&lt;br /&gt;
All mentioned P.variables in the head of the function spm_fnirs_convert_ui(F{1}, P);&lt;br /&gt;
% P.wav      light wavelengths &lt;br /&gt;
% P.fs            sampling frequency&lt;br /&gt;
% P.nch          number of channels&lt;br /&gt;
% P.ns            number of samples&lt;br /&gt;
% P.mask       mask of measurements&lt;br /&gt;
% P.fname     names of raw files and converted file (NIRS.mat)&lt;br /&gt;
%&lt;br /&gt;
% P.d             distance between source and detector&lt;br /&gt;
% P.acoef      molar absorption coefficients [1/(mM*cm)]&lt;br /&gt;
% P.dpf         differential pathlength factor [unitless]&lt;br /&gt;
% P.base       baseline period [scan]&lt;br /&gt;
&lt;br /&gt;
Can someone help me out what P.base might be and how I can specify it? And why is spm_fnirs not giving an error? By using the GUI of spm_fnirs the values of hbo etc. aren't empty when entereing the same features as mentioned above.&lt;br /&gt;
&lt;br /&gt;
Happy to hearing from someone of you!&lt;br /&gt;
Thanks in advance</description>
   <author>Jana Welkerling</author>
   <pubDate>Mon, 09 May 2022 14:08:21 GMT</pubDate>
   <guid>http://stage.nitrcce.org/forum/forum.php?thread_id=13448&amp;forum_id=5530</guid>
  </item>
  <item>
   <title>RE: Parametric modulation of regressors</title>
   <link>http://stage.nitrcce.org/forum/forum.php?thread_id=13367&amp;forum_id=5530</link>
   <description>Never mind, I found a way</description>
   <author>marsarius</author>
   <pubDate>Thu, 21 Apr 2022 10:29:23 GMT</pubDate>
   <guid>http://stage.nitrcce.org/forum/forum.php?thread_id=13367&amp;forum_id=5530</guid>
  </item>
  <item>
   <title>Parametric modulation of regressors</title>
   <link>http://stage.nitrcce.org/forum/forum.php?thread_id=13367&amp;forum_id=5530</link>
   <description>Hello:&lt;br /&gt;
&lt;br /&gt;
To my knowledge, there is no available routine to insert parametric modulators in the design matrix.&lt;br /&gt;
Since SPM-fNIRS utilities are to a large extent a repurposing of the SPM algorithms, it would seem that implementing parametric modulators should not be cumbersome.&lt;br /&gt;
&lt;br /&gt;
Could you kindly provide a code snippet to implement parametric modulation or at least indicate what should I change in the code (in the function spm_fnirs_specify1st_ui.m) ?&lt;br /&gt;
&lt;br /&gt;
Best wishes,&lt;br /&gt;
&lt;br /&gt;
Mario</description>
   <author>marsarius</author>
   <pubDate>Thu, 14 Apr 2022 11:26:15 GMT</pubDate>
   <guid>http://stage.nitrcce.org/forum/forum.php?thread_id=13367&amp;forum_id=5530</guid>
  </item>
 </channel>
</rss>
