Skip to content
Snippets Groups Projects
Commit 0befd304 authored by Xiao Gui's avatar Xiao Gui
Browse files

feat: prepare for mebrains update

parent 7eafbcc5
No related branches found
No related tags found
No related merge requests found
......@@ -3,3 +3,4 @@
## Bugfix
- minor fix of ng-layer-tune incorrectly applying color map
- prepare for MEBRAINS update
......@@ -16,5 +16,6 @@ export const IDS = {
JBA30: "minds/core/parcellationatlas/v1.0.0/94c1125b-b87e-45e4-901c-00daee7f2579-300",
WAXHOLMV4: "minds/core/parcellationatlas/v1.0.0/ebb923ba-b4d5-4b82-8088-fa9215c2e1fe-v4",
CORTICAL_LAYERS: "juelich/iav/atlas/v1.0.0/3",
MEBRAINS: "minds/core/parcellationatlas/v1.0.0/e3235c039c6f54c3ba151568c829f117",
}
}
......@@ -156,11 +156,19 @@ const BACKCOMAP_KEY_DICT = {
}
}
const parcIdIgnoreLateral = [
IDS.PARCELLATION.MEBRAINS
]
export function getParcNgId(atlas: SxplrAtlas, tmpl: SxplrTemplate, parc: SxplrParcellation, region: SxplrRegion): string {
if (!region) {
return null
}
if (parcIdIgnoreLateral.includes(parc.id)) {
return `_${MultiDimMap.GetKey(atlas.id, tmpl.id, parc.id, "whole brain")}`
}
let laterality: string = "whole brain"
if (region.name.indexOf("left") >= 0) laterality = "left hemisphere"
if (region.name.indexOf("right") >= 0) laterality = "right hemisphere"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment