# Automatic naming of the segmentation file Corresponding to DICOM file

**URL:** <https://discourse.slicer.org/t/automatic-naming-of-the-segmentation-file-corresponding-to-dicom-file/23557>\
**Category:** Support\
**Tags:** segmentation, dicom\
**Created:** [May 24, 2022, 12:40pm UTC](https://discourse.slicer.org/t/automatic-naming-of-the-segmentation-file-corresponding-to-dicom-file/23557 "2022-05-24T12:40:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![prabhsharn\_Singh](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/prabhsharn_singh/32/15376_2.png) [@prabhsharn\_Singh](https://discourse.slicer.org/u/prabhsharn_Singh)\
**Post date:** [May 24, 2022, 12:40pm UTC](https://discourse.slicer.org/t/automatic-naming-of-the-segmentation-file-corresponding-to-dicom-file/23557/1 "2022-05-24T12:40:22Z")

</div>

Hello, greeting folks  
I am working on a tumor classification model based on machine learning and deep learning that involves marking segmentation and saving it for each slice. DICOM data is labeled but while creating a new segmentation it takes up a name (for eg. segmentation 1) but ideally, I want it to be named as my original DICOM file(for eg. DICOM filename pateintno.\_sliceno.\_label). Is there any way to preset settings so that this can happen automatically.

---

<div class="post-metadata">

**Author:** ![prabhsharn\_Singh](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/prabhsharn_singh/32/15376_2.png) [@prabhsharn\_Singh](https://discourse.slicer.org/u/prabhsharn_Singh)\
**Post date:** [May 24, 2022, 12:40pm UTC](https://discourse.slicer.org/t/automatic-naming-of-the-segmentation-file-corresponding-to-dicom-file/23557/2 "2022-05-24T12:40:33Z")

</div>

While creating a new segmentation it takes up a name( segmentation 1) automatically as I am dealing with lots of data I would like to know if there is a way to set things up so that the new segmentation created can take the name as my DICOM file ( PatientNumber\_SliceNumber\_Label) automatically
