<?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=1818" ?>
<?xml-stylesheet type="text/css" href="https://www.nitrc.org/themes/nitrc3.0/css/rss.css" ?>
<rss version="2.0"> <channel>
  <title>NITRC Spatially Constrained Parcellation Forum: open-discussion</title>
  <link>http://www.nitrc.org/forum/forum.php?forum_id=1818</link>
  <description>General Discussion</description>
  <language>en-us</language>
  <copyright>Copyright 2000-2026 NITRC OSI</copyright>
  <webMaster></webMaster>
  <lastBuildDate>Sat, 02 May 2026 3:42:22 GMT</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>NITRC RSS generator</generator>
  <item>
   <title>How to find the centroids of the clusters? </title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=11686&amp;forum_id=1818</link>
   <description>Hi I have knee structural MRIs with the ground truth label files (of different compartments) and the mask created from the template (constructed from 20 subjects). Is it possible to use this tool for structural MRIs for the spatial parcellation?&lt;br /&gt;
I have attached the knee MRI, label file and the mask&lt;br /&gt;
&lt;br /&gt;
2) my second question is about the code, I ran the test example code with the test subjects, Is it possible to find the clusters' centroids in this technique? If yes, where can I find the centroids?&lt;br /&gt;
&lt;br /&gt;
3) How to create the parcellation within all subjects? I have a template and 243 test subjects. Once we create the parcellation based on template, how the same parcellation can be applied on test subjects?&lt;br /&gt;
&lt;br /&gt;
Your expert opinion is really appreciated&lt;br /&gt;
&lt;br /&gt;
Sara</description>
   <author>Sara Eb</author>
   <pubDate>Sat, 12 Sep 2020 2:52:30 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=11686&amp;forum_id=1818</guid>
  </item>
  <item>
   <title>RE: error running test script</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=11187&amp;forum_id=1818</link>
   <description>I ran into the same issue. I found that the original code was made with an older version of numpy than the one I have. The solution was to replace &amp;quot;rank&amp;quot; with &amp;quot;ndim&amp;quot;.&lt;br /&gt;
https://kite.com/python/docs/numpy.rank</description>
   <author>Rebecca Rebi</author>
   <pubDate>Fri, 22 May 2020 14:20:08 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=11187&amp;forum_id=1818</guid>
  </item>
  <item>
   <title>error running test script</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=11187&amp;forum_id=1818</link>
   <description>Hi, I am getting the following error when running &amp;quot;pyClusterROI_test.py&amp;quot;,&lt;br /&gt;
NameError: name 'rank' is not defined&lt;br /&gt;
from line 70 of &amp;quot;make_local_connectivity_ones.py&amp;quot;&lt;br /&gt;
     if(rank(idx) == 1):&lt;br /&gt;
&lt;br /&gt;
I'm running nmpy 1.18.1&lt;br /&gt;
&lt;br /&gt;
thank you in advance for any  help or suggestions</description>
   <author> skyflyer fun</author>
   <pubDate>Thu, 16 Apr 2020 23:49:25 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=11187&amp;forum_id=1818</guid>
  </item>
  <item>
   <title>Err running tcorr and scorr</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=8151&amp;forum_id=1818</link>
   <description>Hi all,&lt;br /&gt;
I don't have any problem to run the sample data. However when I started using my own rs fmri data, for some voxels, I have the following errors and cannot successfully finish the parcellation. &lt;br /&gt;
&lt;br /&gt;
[b]For scorr[/b]&lt;br /&gt;
&lt;br /&gt;
Traceback (most recent call last):&lt;br /&gt;
File &amp;quot;scorr_test.py&amp;quot;, line 115, in&lt;br /&gt;
make_local_connectivity_scorr( in_file, maskname, outname, 0.5 )&lt;br /&gt;
File &amp;quot;/data/fnl/Computing/xda/Projects/DepInf/craddock_2011/cluster_roi_test_rs/make_local_connectivity_scorr.py&amp;quot;, line 190, in make_local_connectivity_scorr&lt;br /&gt;
R[isnan(R)]=0&lt;br /&gt;
TypeError: 'numpy.float64' object does not support item assignment&lt;br /&gt;
&lt;br /&gt;
[b]For tcorr[/b]&lt;br /&gt;
Traceback (most recent call last):&lt;br /&gt;
File &amp;quot;tcorr_test.py&amp;quot;, line 114, in&lt;br /&gt;
make_local_connectivity_tcorr( in_file, maskname, outname, 0.5 )&lt;br /&gt;
File &amp;quot;/data/fnl/Computing/xda/Projects/DepInf/craddock_2011/cluster_roi_test_rs/make_local_connectivity_tcorr.py&amp;quot;, line 176, in make_local_connectivity_tcorr&lt;br /&gt;
R=R[nndx,:].flatten()&lt;br /&gt;
IndexError: invalid index to scalar variable.&lt;br /&gt;
&lt;br /&gt;
Do you have any idea to solve these problems?&lt;br /&gt;
&lt;br /&gt;
Thanks and best regards,&lt;br /&gt;
&lt;br /&gt;
Steve Da</description>
   <author>Steve Da</author>
   <pubDate>Thu, 08 Jun 2017 3:04:15 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=8151&amp;forum_id=1818</guid>
  </item>
  <item>
   <title>Using FSL for cluster labelling via PyCluster</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=5860&amp;forum_id=1818</link>
   <description>Hello all,&lt;br /&gt;
&lt;br /&gt;
1. Has anybody used PyCluster for automatic labelling as described on the PyCluster &quot;Usage&quot; page? :&lt;br /&gt;
[url=http://ccraddock.github.io/cluster_roi/usage.html]http://ccraddock.github.io/cluster_roi/usage.html[/url]&lt;br /&gt;
See the bottom of the page.&lt;br /&gt;
&lt;br /&gt;
2. The auto labelling requires the FMRIB, FSL software to be installed. Has anyone installed FSL on openSUSE?&lt;br /&gt;
&lt;br /&gt;
FSL is a huge download (1.7 GB). Moreover, It is not clear from the FMRIB FSL page whether it can be installed on Linux distributions other than Debian or CentOS.&lt;br /&gt;
I'm using openSUSE and I don't want to go to the trouble of downloading all of it and then finding out that it doesn't work on my distribution.&lt;br /&gt;
Installing on windows requires a installation of a virtual environment - so that is even less convenient.&lt;br /&gt;
&lt;br /&gt;
Is there some smaller part of FSL that can be downloaded just for the purpose of cluster labelling.&lt;br /&gt;
&lt;br /&gt;
Thank you,&lt;br /&gt;
Regards&lt;br /&gt;
SK Mody</description>
   <author>S Mody</author>
   <pubDate>Sun, 30 Aug 2015 18:43:14 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=5860&amp;forum_id=1818</guid>
  </item>
  <item>
   <title>RE: number of clusters</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=5163&amp;forum_id=1818</link>
   <description>Hi again,&lt;br /&gt;
&lt;br /&gt;
This script should work until Cameron releases an official fix: https://github.com/danlurie/cluster_roi/blob/master/nifti_gen_fix.py&lt;br /&gt;
&lt;br /&gt;
The problem was essentially an overflow error; the data type from the mask image (to which the parcellation values are written) is uint8 by default, which can't handle values over 255. My fix converts everything to float64, which is overkill, but works.&lt;br /&gt;
&lt;br /&gt;
Let me know if there are any issues.&lt;br /&gt;
&lt;br /&gt;
Dan</description>
   <author>Daniel Lurie</author>
   <pubDate>Mon, 17 Aug 2015 9:00:47 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=5163&amp;forum_id=1818</guid>
  </item>
  <item>
   <title>RE: number of clusters</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=5163&amp;forum_id=1818</link>
   <description>Hi all,&lt;br /&gt;
&lt;br /&gt;
I'm also experiencing this issue (212 subjects, 4mm voxels, HO 25% GM mask, group average parcellation).&lt;br /&gt;
&lt;br /&gt;
It looks like the actual parcel data (in the .npy files) contains the right number of parcels. You can check this on your own results with the following python code:[code]import numpy as np[/code][code]parcel_data = np.load('/path/to/parcellation_k.npy')[/code][code]np.unique(parcel_data, return_counts=True)[/code]&lt;br /&gt;
This will return two arrays of equal length. The first array shows every unique value in the data, so if your k=100, it should have *around* 100 entries (as Cameron mentions in the paper, NCUT can sometimes produce clustering with empty clusters, so your actual k might end up somewhat smaller than your desired k). The second array is the number of voxels with each value at the same array index in the first array.&lt;br /&gt;
&lt;br /&gt;
I think the issue is with the scripts that convert the NumPy parcellation data into a NIfTI volume. Working on a fix now, will report back if/when I'm successful.&lt;br /&gt;
&lt;br /&gt;
Dan</description>
   <author>Daniel Lurie</author>
   <pubDate>Mon, 17 Aug 2015 7:49:35 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=5163&amp;forum_id=1818</guid>
  </item>
  <item>
   <title>RE: number of clusters</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=5163&amp;forum_id=1818</link>
   <description>@Shenwei, perhaps the reason you get so few clusters is that the correlation matrix is so sparse that only 255 of the eigenvectors are numerically significant. Did you consider this possibility?&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
Sandeep Mody.</description>
   <author>S Mody</author>
   <pubDate>Sat, 15 Aug 2015 10:46:10 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=5163&amp;forum_id=1818</guid>
  </item>
  <item>
   <title>RE: number of clusters</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=5163&amp;forum_id=1818</link>
   <description>[i]Originally posted by Adam Steel:[/i][quote]Hi Shangwei -&lt;br /&gt;
&lt;br /&gt;
I'm having the same issue at the moment. Was this issue ever resolved?&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;
Adam[/quote]&lt;br /&gt;
[color=#000000]It appears that (at least some of the) code may not complete in a practical amount of time for higher resolutions. I used preprocessed fMRI data from the Human Connectome Project which has a voxel resolution of (2 x 2 x 2) mm. I used a cluster count of 1000. The function make_local_connectivity_tcorr() with a grey mask having about 255,000 voxels runs successfully to create the correlation matrix. The correlation matrix has around 1,000,000 non-zero entries. However the next step binfile_parcellate() runs forever - as the eigenvalue decomposition of the Laplacian of the correlation matrix does not converge (after 24+ hours of run time).[/color]&lt;br /&gt;
&lt;br /&gt;
There is a comment in the ncut() function of the toolbox about regularizing the matrix for better stability. So it appears that the author himself may have had problems with the eigenvalue decomposition - which is of course not at all unexpected. Trying to find the eigenvectors of a large sparse matrix can be hell. Hopefully the author reads this and comments.&lt;br /&gt;
&lt;br /&gt;
[color=#000000]My next step is to resample the data and grey-mask to (4 x 4 x 4) and rerun the code.[/color]&lt;br /&gt;
&lt;br /&gt;
[color=#000000]Wondering whether anyone else has had a similar experience.[/color]&lt;br /&gt;
&lt;br /&gt;
[color=#000000]Regards,[/color]&lt;br /&gt;
[color=#000000]Sandeep Mody.&lt;br /&gt;
[/color]</description>
   <author>S Mody</author>
   <pubDate>Sat, 15 Aug 2015 10:32:23 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=5163&amp;forum_id=1818</guid>
  </item>
  <item>
   <title>RE: number of clusters</title>
   <link>http://www.nitrc.org/forum/forum.php?thread_id=5163&amp;forum_id=1818</link>
   <description>Unfortunately not, Adam.&lt;br /&gt;
&lt;br /&gt;
Shengwei</description>
   <author>Shengwei Zhang</author>
   <pubDate>Thu, 13 Aug 2015 21:21:28 GMT</pubDate>
   <guid>http://www.nitrc.org/forum/forum.php?thread_id=5163&amp;forum_id=1818</guid>
  </item>
 </channel>
</rss>
