Can you run PyRadiomics on multiple scans with labels within Slicer?

I have used Slicer to extract radiomics features from CT scans with segmentation masks (for liver and spleen); one scan and mask at a time.
I want to know if I could do the same for a whole folder of multiple scans with their masks.
I don’t have good coding skills. I want to know if this is possible before I try to learn how to do this using a code outside Slicer.
Let me know if the question doesn’t make sense.

Here’s what our chatbot says based on searching this forum. Looks like a reasonable answer:

claude_3_opus_botForum Helper



Based on the search results, it looks like it is possible to extract radiomics features from multiple scans and segmentations in a batch mode in Slicer. A few key points:

  1. You can use the PyRadiomics extension in Slicer to do batch processing and extract features from multiple images and segmentations. See this post for an example of using the PyRadiomics CLI module for batch processing:

Radiomics cli parameters

  1. Your input images and segmentations should be in a format like NRRD. You may need to convert from DICOM first. There are CLI modules in Slicer to convert DICOM to NRRD in a batch.

DICOM to NRRD conversion in command line (for PyRadiomics)

  1. There are various settings you can use to control the PyRadiomics feature extraction, like limiting to certain features, resampling, handling 2D/3D, etc. See posts like these for details:

Issue with 2D extraction and resampling

PET normalisation before Radiomics

So in summary, while it requires using the command line interface instead of the GUI, it is very possible to extract radiomics features from a batch of images and segmentations using Slicer and the PyRadiomics extension. Let me know if you have any other questions!

It is possible to run pyradiomics to do batch processing. I have written a code for it not yet published but i can upload on github coming monday.