# Parenchyma Analysis in CIP

**URL:** <https://discourse.slicer.org/t/parenchyma-analysis-in-cip/29717>\
**Category:** Support\
**Created:** [May 30, 2023, 2:18am UTC](https://discourse.slicer.org/t/parenchyma-analysis-in-cip/29717 "2023-05-30T02:18:23Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![csnily](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/csnily/32/66164_2.png) [@csnily](https://discourse.slicer.org/u/csnily)\
**Post date:** [May 30, 2023, 2:18am UTC](https://discourse.slicer.org/t/parenchyma-analysis-in-cip/29717/1 "2023-05-30T02:18:23Z")

</div>

Please help me to see how I can batch import dicom files from the dicom database in the python console of 3d slicer, and use CIP\_ParenchymaAnalysis under the CIP\_ParenchymaAnalysis library for processing and analysis, and export data. I need to process and export in batches, because I have hundreds of Patient’s dicom files

---

<div class="post-metadata">

**Author:** ![csnily](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/csnily/32/66164_2.png) [@csnily](https://discourse.slicer.org/u/csnily)\
**Post date:** [May 30, 2023, 2:48am UTC](https://discourse.slicer.org/t/parenchyma-analysis-in-cip/29717/2 "2023-05-30T02:48:37Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/7/e746e53f95935f34116b30c9508c716af9a57c1e.jpeg)  
I want to load my CT files(.dcm)，a large number to deal with,and using Parenchyma Analysis and finally to export this table

---

<div class="post-metadata">

**Author:** ![csnily](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/csnily/32/66164_2.png) [@csnily](https://discourse.slicer.org/u/csnily)\
**Post date:** [May 30, 2023, 2:49am UTC](https://discourse.slicer.org/t/parenchyma-analysis-in-cip/29717/3 "2023-05-30T02:49:58Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/f/efbd1436979b2c28396ec4249de5973fb4f800d2.jpeg)  
this is the table I want .I want to use python console to deal with a large number of CT files and use Parenchyma Analysis in Python console and export this table

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [May 30, 2023, 1:38pm UTC](https://discourse.slicer.org/t/parenchyma-analysis-in-cip/29717/4 "2023-05-30T13:38:31Z")

</div>

You should probably start looking at the [Script Repository](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html) and learn some Python. Alternatively, you could hire a programmer or consult ChatGPT for program snippets.

All your requests can be realized relatively simply.

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [May 30, 2023, 6:01pm UTC](https://discourse.slicer.org/t/parenchyma-analysis-in-cip/29717/5 "2023-05-30T18:01:48Z")

</div>

This type of batch workflow stuff would probably be a job for [SlicerPipelines](https://github.com/KitwareMedical/SlicerPipelines).

@rbumm Do you know if Parenchyma Analysis works with SlicerPipelines or could easily be made to work with it?

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [May 30, 2023, 8:18pm UTC](https://discourse.slicer.org/t/parenchyma-analysis-in-cip/29717/6 "2023-05-30T20:18:33Z")

</div>

I have not worked with SlicerPiplines before, just tested it a bit but do not see how I could integrate DICOM import or Parenchyma analsis in this extension … do you ?

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [May 30, 2023, 8:21pm UTC](https://discourse.slicer.org/t/parenchyma-analysis-in-cip/29717/7 "2023-05-30T20:21:10Z")

</div>

[Load DICOM files from a folder](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#load-dicom-files-into-the-scene-from-a-folder)

[Call a module (here Segmentstatistcs)](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#get-volume-of-each-segment)

---

<div class="post-metadata">

**Author:** ![csnily](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/csnily/32/66164_2.png) [@csnily](https://discourse.slicer.org/u/csnily)\
**Post date:** [May 31, 2023, 1:19am UTC](https://discourse.slicer.org/t/parenchyma-analysis-in-cip/29717/9 "2023-05-31T01:19:28Z")

</div>

Thanks a lot.I will try this tutorial.

---

<div class="post-metadata">

**Author:** ![csnily](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/csnily/32/66164_2.png) [@csnily](https://discourse.slicer.org/u/csnily)\
**Post date:** [May 31, 2023, 1:21am UTC](https://discourse.slicer.org/t/parenchyma-analysis-in-cip/29717/10 "2023-05-31T01:21:21Z")

</div>

I don’t konw it.But I think maybe I can look throught the source code and try to run it in my scene.Thanks a lot.
