# Radiomics module crashes anytime I use a "Theta parameter map"

**URL:** <https://discourse.slicer.org/t/radiomics-module-crashes-anytime-i-use-a-theta-parameter-map/2152>\
**Category:** Support\
**Tags:** diffusion, radiomics\
**Created:** [February 22, 2018, 6:57pm UTC](https://discourse.slicer.org/t/radiomics-module-crashes-anytime-i-use-a-theta-parameter-map/2152 "2018-02-22T18:57:28Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrea\_Barucci1](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/andrea_barucci1/32/4105_2.png) [@Andrea\_Barucci1](https://discourse.slicer.org/u/Andrea_Barucci1)\
**Post date:** [February 22, 2018, 6:57pm UTC](https://discourse.slicer.org/t/radiomics-module-crashes-anytime-i-use-a-theta-parameter-map/2152/1 "2018-02-22T18:57:28Z")

</div>

Hi,  
good morning to everyone and sorry if my question has a solution in thread I have not found.

My problem is simple:  
Eveytime I’m trying to evaluate radionics features using a diffusion map obtained by the DWModeling, using the model “Gamma distribution”, “Theta parameter map”, 3D Slicer crash.

I have tried many times, closing all other maps, loading just the data necessary for this analysis, but I’m always encountering the same problem.

This sounds very strange because Radiomics module has been able to evaluate features with any diffusion model I’ve used, just with this map it crashes.

My operating system tell me that there is a memory problem.  
It’s very strange because the “Input Label Map” is always the same, and it comprise just a few points.

This is my version: 4.9.0-2018-01-14 r26833  
My computer is Apple Mac Book Pro.

Thank you very much for your support and thank you for developing this amazing software

---

<div class="post-metadata">

**Author:** ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Post date:** [February 22, 2018, 10:03pm UTC](https://discourse.slicer.org/t/radiomics-module-crashes-anytime-i-use-a-theta-parameter-map/2152/2 "2018-02-22T22:03:15Z")

</div>

What is the scalar range that you see in the theta map? You can find it in the Volumes module as shown below. It might be that the output map contains NaN pixels which may not be handled properly.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/1/31f5b98e5b4ec788ef76f588630acb6b1af5488b.png)

---

<div class="post-metadata">

**Author:** ![Andrea\_Barucci1](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/andrea_barucci1/32/4105_2.png) [@Andrea\_Barucci1](https://discourse.slicer.org/u/Andrea_Barucci1)\
**Post date:** [February 22, 2018, 11:01pm UTC](https://discourse.slicer.org/t/radiomics-module-crashes-anytime-i-use-a-theta-parameter-map/2152/3 "2018-02-22T23:01:05Z")

</div>

The range is very large.

Maybe this can be the problem?

There is a way to insert a threshold?

Thanks

![]()

---

<div class="post-metadata">

**Author:** ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Post date:** [February 22, 2018, 11:35pm UTC](https://discourse.slicer.org/t/radiomics-module-crashes-anytime-i-use-a-theta-parameter-map/2152/4 "2018-02-22T23:35:32Z")

</div>

The range in my screenshot is the range for a different image. What is the reported range for your example? Can you share the theta map?

---

<div class="post-metadata">

**Author:** ![Andrea\_Barucci1](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/andrea_barucci1/32/4105_2.png) [@Andrea\_Barucci1](https://discourse.slicer.org/u/Andrea_Barucci1)\
**Post date:** [February 22, 2018, 11:48pm UTC](https://discourse.slicer.org/t/radiomics-module-crashes-anytime-i-use-a-theta-parameter-map/2152/5 "2018-02-22T23:48:11Z")

</div>

This is my map.  
The range in the screenshot I have sent before should be right.

---

<div class="post-metadata">

**Author:** ![Andrea\_Barucci1](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/andrea_barucci1/32/4105_2.png) [@Andrea\_Barucci1](https://discourse.slicer.org/u/Andrea_Barucci1)\
**Post date:** [February 23, 2018, 9:59am UTC](https://discourse.slicer.org/t/radiomics-module-crashes-anytime-i-use-a-theta-parameter-map/2152/6 "2018-02-23T09:59:41Z")

</div>

Hi,  
Did you receive my email with data?

I can send you again my image with the label-map (Diffusion map-label.nrrd) I use to extract features.

Thank you very much

Andrea

---

<div class="post-metadata">

**Author:** ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Post date:** [February 23, 2018, 7:01pm UTC](https://discourse.slicer.org/t/radiomics-module-crashes-anytime-i-use-a-theta-parameter-map/2152/7 "2018-02-23T19:01:45Z")

</div>

@Andrea_Barucci1 no, I did not receive any images or screenshots from you.

---

<div class="post-metadata">

**Author:** ![Andrea\_Barucci1](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/andrea_barucci1/32/4105_2.png) [@Andrea\_Barucci1](https://discourse.slicer.org/u/Andrea_Barucci1)\
**Post date:** [February 24, 2018, 9:10am UTC](https://discourse.slicer.org/t/radiomics-module-crashes-anytime-i-use-a-theta-parameter-map/2152/8 "2018-02-24T09:10:05Z")

</div>

I have sent you two times…  
Can I send using your private email or another method?

However yesterday I did some other data elaboration, and I discovered that the same crash problem I can encounter with other map, e.g. DDC map.

My opinion that the problem can come from the memory of my computer.

What do you think?

On Monday I will try these elaborations with a different computer.

Let me know what you think and how I can send you the data.

Thank you very much for your support

Best

Andrea

Andrea Barucci

---

<div class="post-metadata">

**Author:** ![Andrea\_Barucci1](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/andrea_barucci1/32/4105_2.png) [@Andrea\_Barucci1](https://discourse.slicer.org/u/Andrea_Barucci1)\
**Post date:** [February 25, 2018, 4:55pm UTC](https://discourse.slicer.org/t/radiomics-module-crashes-anytime-i-use-a-theta-parameter-map/2152/9 "2018-02-25T16:55:08Z")

</div>

Dear Andrey,

I have tried to send you .nrrd files but it’s impossible.  
I just insert here two screenshot of maps informations using the Volume Module.

K map in this case doesn’t crash when I use Radiomics module.  
However when I try to analyse DDC map using Radiomics, 3DSlicer crashes.

Do you think that this problem can be due to the range of the map?  
Or is a problem of my hardware (not enough memory)?

Using the Radiomics Module I’m encountering this problem many times, often with DDC map, Theta parameter map, etc.  
All these maps have been evaluated using the DWI module.

Thank you very much for your help

 ![DDC_map_Radiomics_Crash](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/c/acd3c8b086aef78512369a386b6f646b8848cac6.png)

---

<div class="post-metadata">

**Author:** ![JoostJM](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/joostjm/32/1091_2.png) [@JoostJM](https://discourse.slicer.org/u/JoostJM)\
**Post date:** [February 26, 2018, 9:30am UTC](https://discourse.slicer.org/t/radiomics-module-crashes-anytime-i-use-a-theta-parameter-map/2152/10 "2018-02-26T09:30:41Z")

</div>

@Andrea_Barucci1, PyRadiomics (which is the back end of the SlicerRadiomics extension) supports resegmentation. If so specified, it will exclude voxels outside a given range. The extension does not have GUI elements to set this though, so you’ll have to make a parameter file and supply that (if that is not possible on you version of slicer, you’ll need to install the latest stable release and re-install the SlicerRadiomics extension).  
See [here](http://pyradiomics.readthedocs.io/en/latest/customization.html#feature-extractor-level) (look for parameter `resegmentRange`) for the setting of resegmentation and [here](http://pyradiomics.readthedocs.io/en/latest/customization.html#parameter-file) for information on making a parameter file.

Alternatively, what you can also try is to extract features using the stand-alone version of PyRadiomics. If there is an error in PyRadiomics, it will also be displayed. See [here](http://pyradiomics.readthedocs.io/en/latest/installation.html) for instructions on how to install the stand-alone version of PyRadiomics and [here](http://pyradiomics.readthedocs.io/en/latest/usage.html) on how to use it.

---

<div class="post-metadata">

**Author:** ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Post date:** [February 26, 2018, 8:41pm UTC](https://discourse.slicer.org/t/radiomics-module-crashes-anytime-i-use-a-theta-parameter-map/2152/11 "2018-02-26T20:41:52Z")

</div>

> [@Andrea\_Barucci1](#):
>
> I have tried to send you .nrrd files but it’s impossible.

You probably replied to the forum posts by email with attachments, and I don’t know if that works. The most reliable way to share sample datasets is to upload to Dropbox or similar, and include the link in the forum post.

---

<div class="post-metadata">

**Author:** ![Andrea\_Barucci1](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/andrea_barucci1/32/4105_2.png) [@Andrea\_Barucci1](https://discourse.slicer.org/u/Andrea_Barucci1)\
**Post date:** [March 1, 2018, 1:57pm UTC](https://discourse.slicer.org/t/radiomics-module-crashes-anytime-i-use-a-theta-parameter-map/2152/12 "2018-03-01T13:57:39Z")

</div>

Thank you very much for your kindness and help.

I will share here my dataset, just to let you check if you encounter the same problems in data analysis.

Dataset: [https://drive.google.com/file/d/1P-5UKdr2YSlo3k5EX4nJkJRSdPhlxKxK/view?usp=sharing](https://drive.google.com/file/d/1P-5UKdr2YSlo3k5EX4nJkJRSdPhlxKxK/view?usp=sharing)

Thank you very much

---

<div class="post-metadata">

**Author:** ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Post date:** [March 1, 2018, 4:10pm UTC](https://discourse.slicer.org/t/radiomics-module-crashes-anytime-i-use-a-theta-parameter-map/2152/13 "2018-03-01T16:10:16Z")

</div>

When I click the link I get the error below.

Make sure you do not have any patient information in your dataset before sharing.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/b/6b8a7d5040263d38e7937bc15837f7700b68f67a.png)

---

<div class="post-metadata">

**Author:** ![Andrea\_Barucci1](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/andrea_barucci1/32/4105_2.png) [@Andrea\_Barucci1](https://discourse.slicer.org/u/Andrea_Barucci1)\
**Post date:** [March 1, 2018, 4:32pm UTC](https://discourse.slicer.org/t/radiomics-module-crashes-anytime-i-use-a-theta-parameter-map/2152/14 "2018-03-01T16:32:39Z")

</div>

Now the dataset should be available.

There are no patient information in the dataset shared.  
The name of the folders are just “fictitious names” that I use to remember who is who.

Thank you very much

---

<div class="post-metadata">

**Author:** ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Post date:** [March 1, 2018, 5:42pm UTC](https://discourse.slicer.org/t/radiomics-module-crashes-anytime-i-use-a-theta-parameter-map/2152/15 "2018-03-01T17:42:08Z")

</div>

@Andrea_Barucci1 I downloaded your dataset, but I am unable to move forward, since I discovered other related issues, and I cannot install Radiomics extension in either stable or nightly release… I will look into that when I have the setup.

---

<div class="post-metadata">

**Author:** ![Andrea\_Barucci1](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/andrea_barucci1/32/4105_2.png) [@Andrea\_Barucci1](https://discourse.slicer.org/u/Andrea_Barucci1)\
**Post date:** [March 2, 2018, 6:25pm UTC](https://discourse.slicer.org/t/radiomics-module-crashes-anytime-i-use-a-theta-parameter-map/2152/16 "2018-03-02T18:25:21Z")

</div>

Thank you very much.

In the last week I have encountered the same problems.  
Instead I’m using a Nightly version of January.

With the last versions of Slicer I’ve many troubles with all Slicer modules in general.  
I don’t know why.

I was wondering that was a problem of my computer.

---

<div class="post-metadata">

**Author:** ![JoostJM](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/joostjm/32/1091_2.png) [@JoostJM](https://discourse.slicer.org/u/JoostJM)\
**Post date:** [March 7, 2018, 9:44am UTC](https://discourse.slicer.org/t/radiomics-module-crashes-anytime-i-use-a-theta-parameter-map/2152/17 "2018-03-07T09:44:19Z")

</div>

@Andrea_Barucci1, we created an [issue](https://github.com/Radiomics/pyradiomics/issues/354) on the PyRadiomics repository. I posted the cause and solution there.

---

<div class="post-metadata">

**Author:** ![Andrea\_Barucci1](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/andrea_barucci1/32/4105_2.png) [@Andrea\_Barucci1](https://discourse.slicer.org/u/Andrea_Barucci1)\
**Post date:** [March 7, 2018, 4:13pm UTC](https://discourse.slicer.org/t/radiomics-module-crashes-anytime-i-use-a-theta-parameter-map/2152/18 "2018-03-07T16:13:42Z")

</div>

Thank you very much for your help.

I have to download a new version of the Radiomics module?

---

<div class="post-metadata">

**Author:** ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Post date:** [March 7, 2018, 4:25pm UTC](https://discourse.slicer.org/t/radiomics-module-crashes-anytime-i-use-a-theta-parameter-map/2152/19 "2018-03-07T16:25:02Z")

</div>

We also [committed the fix](https://github.com/Radiomics/SlicerRadiomics/pull/44) to hopefully resolve the build issue for the Radiomics extension on mac. We will see tomorrow if that worked!
