Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SNOMED-CT mapping #324

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

fedorov
Copy link
Contributor

@fedorov fedorov commented Jun 27, 2024

The updated mapping should now include all of the structures listed in totalsegmentator/map_to_binary.py.

To create this map, the content of the original SNOMED mapping CSV was merged with the exhaustive list of the labels from map_to_binary.py, and the mapping for the missing structures was populated.

Here's a google sheet in case anyone wants to review and comment in an easier manner than PR comments: https://docs.google.com/spreadsheets/d/1oEzXCmraoLgbbb5lNxWiHuYDza86aXxKqSUmUetwI7M/edit?usp=sharing.

Script I used to merge various things together, for the sake of historical perspective: https://colab.research.google.com/drive/16sKS1W6Z9LbwHhZMM_I0xwkv0ZBCj8Lg?usp=sharing

cc: @lassoan

@fedorov fedorov force-pushed the update-snomed-mapping branch from ad2ba69 to e2666ee Compare June 27, 2024 19:25
@fedorov fedorov marked this pull request as draft June 27, 2024 19:32
@fedorov fedorov force-pushed the update-snomed-mapping branch 4 times, most recently from eb4d616 to 81af678 Compare June 27, 2024 20:38
@fedorov
Copy link
Contributor Author

fedorov commented Jun 27, 2024

@lassoan I think it is ready for you.

@lassoan
Copy link
Contributor

lassoan commented Jun 28, 2024

@fedorov the column names are still the long ones (it should be Category.CodingSchemeDesignator instead of SegmentedPropertyCategoryCodeSequence.CodingSchemeDesignator etc.) and I don't see the color columns.

@fedorov
Copy link
Contributor Author

fedorov commented Jun 28, 2024

I am sorry, I lost track of the many files and sheets ... let me fix it.

@fedorov fedorov force-pushed the update-snomed-mapping branch 4 times, most recently from b0a25cc to c48536a Compare June 28, 2024 19:00
@fedorov
Copy link
Contributor Author

fedorov commented Jun 28, 2024

@lassoan it should be ready now.

@fedorov
Copy link
Contributor Author

fedorov commented Jul 24, 2024

@lassoan this one is still waiting for you!

@lassoan
Copy link
Contributor

lassoan commented Jul 24, 2024

Thank you for the reminder! I'll finalize this.

I don't remember if we added the total_mr segments as well?

@fedorov
Copy link
Contributor Author

fedorov commented Jul 24, 2024

Yes! You can confirm this from the notebook I used for processing: https://colab.research.google.com/drive/16sKS1W6Z9LbwHhZMM_I0xwkv0ZBCj8Lg?usp=sharing

@fedorov
Copy link
Contributor Author

fedorov commented Jul 24, 2024

Let me resolve the conflicts...

Done

fedorov and others added 3 commits July 24, 2024 11:29
The updated mapping should now include all of the structures listed in
totalsegmentator/map_to_binary.py.

To create this map, the content of the original SNOMED mapping CSV was merged
with the exhaustive list of the labels from map_to_binary.py, and the mapping
for the missing structures was populated.
Colors added were originally contributed in https://github.com/ImagingDataCommons/CloudSegmentator/blob/main/workflows/TotalSegmentator/resources/totalsegmentator_snomed_mapping_with_partial_colors.csv and are optimized
to improve contrast between the neighboring structures for the
purposes of visual review of TotalSegmentator results.

Also, amended the column names to make them more readable.

Specifically, the specific DICOM attributes used in DICOM Segmentation
that were used as column names earlier were replaced by shorter
names as follows:

- SegmentedPropertyCategoryCodeSequence -> Category
- SegmentedPropertyTypeCodeSequence -> Type
- SegmentedPropertyTypeModifierCodeSequence -> TypeModifier
- AnatomicRegionSequence > AnatomicRegion
- AnatomicRegionModifierSequence > AnatomicRegionModifier

Co-authored-by: Vamsi Thiriveedhi <[email protected]>
Co-authored-by: Deepa Krishnaswamy <[email protected]>
Co-authored-by: Andras Lasso <[email protected]>
@fedorov fedorov force-pushed the update-snomed-mapping branch from c48536a to dad35aa Compare July 24, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants