# Radiomics cli parameters

**URL:** <https://discourse.slicer.org/t/radiomics-cli-parameters/32175>\
**Category:** Development\
**Tags:** python\
**Created:** [October 12, 2023, 5:23am UTC](https://discourse.slicer.org/t/radiomics-cli-parameters/32175 "2023-10-12T05:23:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saima](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@Saima](https://discourse.slicer.org/u/Saima)\
**Post date:** [October 12, 2023, 5:23am UTC](https://discourse.slicer.org/t/radiomics-cli-parameters/32175/1 "2023-10-12T05:23:55Z")

</div>

Hi,  
I am trying to do batch processing to extract radiomic features using the radiomicscli module. The error are:  
/media/useradmin/Disk2/Nathaniel/Testing\_radiomics/APT034

[VTK] No input data assigned to “input Source Image”

[VTK] No input data assigned to “input Source Image”

[VTK] No input data assigned to “input Source Image”

[VTK] No input data assigned to “input Source Image”

Below is the code to run the cli module. could anyone please help me in this regard. did i define the correct params for the radiomics cli module.

apt\_data = slicer.util.loadVolume(startPatientDirPath+“/T1c.nii.gz”)

```
        #segmentation of the tumour loaded as volume and then converted to segmnetation node
        seg = slicer.util.loadSegmentation(startPatientDirPath+"/outputFinal/transSimple-label.nrrd")
        #seg = slicer.mrmlScene.AddNewNodeByClass("vtkMRMLSegmentationNode")
        #slicer.modules.segmentations.logic().ImportLabelmapToSegmentationNode(labelmapVolumeNode, seg)
        
        params = {}
        params["image"] = slicer.util.getNode(apt_data.GetID())
        params["mask"] = slicer.util.getNode(seg.GetID())
        params["out"] = slicer.mrmlScene.AddNewNodeByClass("vtkMRMLTableNode")
        
        for i in range(1,4):
            if i == 3:
                continue;
            params["label"] = i
            cliModule = slicer.modules.slicerradiomicscli
            cliNode = slicer.cli.runSync(cliModule, None, params)
        slicer.mrmlScene.RemoveNode(cliNode)

```

---

<div class="post-metadata">

**Author:** ![Saima](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@Saima](https://discourse.slicer.org/u/Saima)\
**Post date:** [October 12, 2023, 5:57am UTC](https://discourse.slicer.org/t/radiomics-cli-parameters/32175/2 "2023-10-12T05:57:31Z")

</div>

Hi,  
i found the problem was with the params. It is  
params[“Image”] = slicer.util.getNode(apt\_data.GetID())  
params[“Mask”] = slicer.util.getNode(seg.GetID())

Now i am having problem figuring out the table node. I want only one table and all the features extracted in one table in different rows. Also I wanted to add a column in table which specifies the label from which it is extracting the features and the patient ID.

Any help?

thank you so much.

regards.  
saima
