-
Notifications
You must be signed in to change notification settings - Fork 35
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
Add bladder markers #209
base: main
Are you sure you want to change the base?
Add bladder markers #209
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to discuss the comment and how to fix things.
markerTermNameBrainstemCoordinatesMap = { | ||
# "pudendal nerve": [0.0, 1.0, 0.0], | ||
# "pelvic splanchnic nerve": [0.0, 1.0, 0.0], | ||
# "hypogastric nerve": [0.0, 1.0, 0.0], | ||
# "lumbar splanchnic nerve": [0.0, 1.0, 0.0], | ||
"fundus of urinary bladder": [14.6, 0.01, 23.1], | ||
"external urethral sphincter": [-1.5, 6.7, 110.5], | ||
} | ||
bladder_coordinates = findOrCreateFieldCoordinates(fm) | ||
nodeIdentifier = max(1, getMaximumNodeIdentifier(nodes) + 1) | ||
for termName, brainstemCoordinatesValues in markerTermNameBrainstemCoordinatesMap.items(): | ||
annotationGroup = findOrCreateAnnotationGroupForTerm(annotationGroups, region, get_bladder_term(termName)) | ||
annotationGroup.createMarkerNode(nodeIdentifier, bladder_coordinates, brainstemCoordinatesValues) | ||
nodeIdentifier += 1 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Firstly, this would be OK if bladder_coordinates exist, but they do not.
(And it would need to use "bladder" rather than "brainstem" so the latter word should not appear anyway.)
Currently this will only work for human and when no-one changes any central path or size parameters, since coordinates are being used as material coordinates.
We need to discuss what's best here; I think it's better to use only element & xi until actual material coordinates exist. The above code won't work for other species - the locations will be different/wrong for other species.
Markers for Keast nerves