# Groups tutorial - sample data / guidance?

**URL:** <https://discourse.slicer.org/t/groups-tutorial-sample-data-guidance/6375>\
**Category:** SlicerSALT\
**Created:** [April 3, 2019, 1:03am UTC](https://discourse.slicer.org/t/groups-tutorial-sample-data-guidance/6375 "2019-04-03T01:03:11Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![Shane\_TANG](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/shane_tang/32/5039_2.png) [@Shane\_TANG](https://discourse.slicer.org/u/Shane_TANG)\
**Post date:** [November 15, 2019, 1:17am UTC](https://discourse.slicer.org/t/groups-tutorial-sample-data-guidance/6375/21 "2019-11-15T01:17:41Z")

</div>

Dear Bea and Martin, @bpaniagua @styner

Thanks for your answer! Following on Bea’s suggestion, I have quality controlled all the files and made sure that they are all aligned using phi color map. So, input the files, select one \*\_pp\_surf\_para.vtk as the spherical template, select mean model of all healthy subjects as the shape for visualizing the p-values. But I still got p-values in the range of 0.889 to 0.999, nothing significant.

I noticed some abnormalities in the **pvalues.json** file. I have 2 groups, same as the [example](https://data.kitware.com/#collection/586fbb7b8d777f05f44a5c7b/folder/5d5c1f1f85f25b11ff3e276a), but I am afraid that the _ **Covariate Significance Testing** _ module assumes I only have 1 group instead of 2. To be more specific, in the [example](https://data.kitware.com/#collection/586fbb7b8d777f05f44a5c7b/folder/5d5c1f1f85f25b11ff3e276a), the **pvalues.json** looks like this  
“Gpvals”: [[0.279, 0.256]],  
“clu\_pvals”: [[0.026, 0.022]],  
“Lpvals\_fdr”: [[1.0, 1.0], [1.0, 1.0], [1.0, 1.0], [0.805, 0.8053], … ]

Like, they are paired which, I think, mean there are 2 groups. Whreas in my **pvalues.json** file,

“Gpvals”: [[0.412]],  
“clu\_pvals”: [[1.0]],  
“Lpvals\_fdr”: [[0.996], [0.999], [0.889], [0.899],…]

Is it that I’ve constructed the csv file in a wrong way? My csv file looks like this (2 columns):  
VTKfiles class  
path-to-vtk 0  
path-to-vtk 0  
path-to-vtk 0  
path-to-vtk 1  
path-to-vtk 1  
path-to-vtk 1

Many thanks!

Shane

---

<div class="post-metadata">

**Author:** ![bpaniagua](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/bpaniagua/32/20_2.png) [@bpaniagua](https://discourse.slicer.org/u/bpaniagua)\
**Post date:** [November 18, 2019, 2:28pm UTC](https://discourse.slicer.org/t/groups-tutorial-sample-data-guidance/6375/22 "2019-11-18T14:28:49Z")

</div>

Hi Shane,

Have you tried to include the full paths to your vtk files in the csv you are constructing?  
Are you able to run the examples data without trouble and see the two areas of significant p-values in the ellipsoid example?

Thanks,

Bea

---

<div class="post-metadata">

**Author:** ![Shane\_TANG](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/shane_tang/32/5039_2.png) [@Shane\_TANG](https://discourse.slicer.org/u/Shane_TANG)\
**Post date:** [November 18, 2019, 11:42pm UTC](https://discourse.slicer.org/t/groups-tutorial-sample-data-guidance/6375/23 "2019-11-18T23:42:04Z")

</div>

Hi Bea, @bpaniagua @styner

Yes, the path used was the full path.

Yes, I am able to run the [example](https://data.kitware.com/#collection/586fbb7b8d777f05f44a5c7b/folder/5d5c1f1f85f25b11ff3e276a)and have seen the two significant different areas (see pic below):

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/b/6b8616ef303af913cd7e56c5446ad4a2aae68e74.jpeg)  
I found the pvalus.json file for this [example](https://data.kitware.com/#collection/586fbb7b8d777f05f44a5c7b/folder/5d5c1f1f85f25b11ff3e276a) after running on my computer looks like:  
“Gpvals”: [[0.0]],  
“clu\_pvals”: [[0.0]],  
“Lpvals\_fdr”: [[0.999], [0.999], [0.999], [0.0], [3.1578e-10], … ]  
In _ **ShapePopulationViewer** _, I can see the attributes have **distance** ,  
**pvalue\_0** , **betavalues\_0\_0** , **betavalues\_0\_1** , **betavalues\_1\_0** , **betavalues\_1\_1** , **betavalues\_2\_0** , **betavalues\_2\_1**

However, for my data, I just got  
**pvalue\_class** , **betavalues\_0\_class** , **betavalues\_0\_1** , **betavalues\_1\_class** , **betavalues\_1\_1** , **betavalues\_2\_class** , **betavalues\_2\_1**

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/7/078fc8daa31f43dd885250a7e53a0bd54005a203.jpeg)

It seems that **“class”** substitutes **“0”** in my case. But the p-values in my case are still 0.95 to 0.99, nothing significant. I am so confused by this …😭

Many thanks!

Best regards,

Yutao

---

<div class="post-metadata">

**Author:** ![JON](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jon/32/4851_2.png) [@JON](https://discourse.slicer.org/u/JON)\
**Post date:** [November 19, 2019, 8:12am UTC](https://discourse.slicer.org/t/groups-tutorial-sample-data-guidance/6375/24 "2019-11-19T08:12:06Z")

</div>

Hi all, and especially @bpaniagua,

I’m still struggling a bit with the shape analysis. It seems that I have the same problem as @Shane_TANG. So I’m eagerly following this thread.

Furthermore, I’ve noticed the following two things:

1. When I inspect the output dir of Step 3, I noticed that the \*SPHARM\_procalign.vtk’s are half the size of the \*SPARHM.vtk’s. What is the reason for this? Seems a bit strange that the SPHARM’s that are procrustes aligned, contain less information. But I might be missing something here.

2. When I load the bump\*\*.vtk of the example data for shape statistics I noticed that the attributes contain “distance”. However, when I load a \*SPHARM.vtk in SlicerSalt from my own dataset, it does not contain the attribute “distance”. What might be happening here?

Looking forward again to your reply!

Many thanks 🙏

Best,  
Jasper

---

<div class="post-metadata">

**Author:** ![Shane\_TANG](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/shane_tang/32/5039_2.png) [@Shane\_TANG](https://discourse.slicer.org/u/Shane_TANG)\
**Post date:** [November 19, 2019, 8:58pm UTC](https://discourse.slicer.org/t/groups-tutorial-sample-data-guidance/6375/25 "2019-11-19T20:58:06Z")

</div>

Hi Jasper, @JON

For 2, I actually cannot run that example on my Mac. My results above was run on a Windows 10 PC. You might want to try on windows system as I feel Slicer behaves differently on MacOS and Windows.

But I am still confused where I went wrong. It also seemed the module didn’t recognize that I have 2 groups…😿

Many thanks!

Shane

---

<div class="post-metadata">

**Author:** ![JON](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jon/32/4851_2.png) [@JON](https://discourse.slicer.org/u/JON)\
**Post date:** [December 12, 2019, 11:26am UTC](https://discourse.slicer.org/t/groups-tutorial-sample-data-guidance/6375/26 "2019-12-12T11:26:52Z")

</div>

Hi all, @bpaniagua @thomshaw92 @styner

I have another question regarding the output of the covariance significance testing module.  
I have a CSV file with 4 columns:

File (column 1), Group (column 2), Age (column 3), Gender (column 4)  
path/to/volume.vtk 1 49 1  
path/to/volume.vtk 0 51 1  
path/to/volume.vtk 1 37 1  
…

And the outputs contain three p-value attributes: pvalue\_1, pvalue\_2, pvalue\_Group Age Gender

What do these three attributes mean? Is pvalue\_1 the attribute for the p-values of the variable “Group” and pvalue\_2 the attribute for the p-values of the variable “Age”, and pvalue\_Group Age Gender the attribute for the pvalues of the interaction between group_age_gender? Or is it just for the third variable (i.e. gender)?

Looking forward to hearing from you.  
Many thanks in advance!

Best,  
Jasper

---

<div class="post-metadata">

**Author:** ![Jared\_Vicory](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jared_vicory/32/1167_2.png) [@Jared\_Vicory](https://discourse.slicer.org/u/Jared_Vicory)\
**Post date:** [December 12, 2019, 9:01pm UTC](https://discourse.slicer.org/t/groups-tutorial-sample-data-guidance/6375/27 "2019-12-12T21:01:01Z")

</div>

Hi @JON,

Sorry about that, you’ve run into a bug in how the module uses the covariate names to name the data arrays. I’ve submitted a fix for this problem that should start showing up in the SlicerSALT nightly builds in the next few days (you can check out the [pull request](https://github.com/Kitware/SlicerSALT/pull/208) to monitor progress).

What’s happening currently is that all of the labels are getting incorrectly applied to the first covariate. So in your case, ‘pvalue\_Group Age Gender’ should be the pvalue for Group, pvalue\_1 is for Age, and pvalue\_2 is for Gender.

Jared

---

<div class="post-metadata">

**Author:** ![JON](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jon/32/4851_2.png) [@JON](https://discourse.slicer.org/u/JON)\
**Post date:** [December 13, 2019, 12:00pm UTC](https://discourse.slicer.org/t/groups-tutorial-sample-data-guidance/6375/28 "2019-12-13T12:00:35Z")

</div>

Hi @Jared_Vicory,

Thanks for your quick response. I will monitor the progress and get the latest build whenever it’s ready.

Best,  
Jasper

[Previous page](https://discourse.slicer.org/t/groups-tutorial-sample-data-guidance/6375.md?page=1)
