How to run Scripted or loadable Modules from Shell Scrpt (batch mode?)

Operating system: Linux Mint 17
Slicer version: 4.9
Expected behavior:
Actual behavior:

Hi everyone!

I would like to know if it is possible to call a scripted or loadable Slicer module in a shell script giving its specific parameter and so on (is it batch mode?) (E.g. Slicer Radiomics).

I would like to set a “for loop” to execute that module with a list of image, lable and parameters. I gues it is possible, though, I don’t know how to do it!

I appreciate all your comments on that!
Thank you.

Hi @MachadoL -

For scripting radiomics over a large group of subjects, it’s probably better to run PyRadiomics directly. You can use the same config file for either SlicerRadiomics or PyRadiomics. Have you looked into that?

-Steve

Hey @pieper,

thanks for your feed back. Yeah, I found out that yesterday…
Surely I will use it directly through PyRadiomics.

Than you!