diff --git a/src/atlasComponents/sapi/constants.ts b/src/atlasComponents/sapi/constants.ts index 6ec87c2352f8a3885b2f872a86f11c8db4fae33b..c558e1726cbcb629e302f4122dddcd600607ea5d 100644 --- a/src/atlasComponents/sapi/constants.ts +++ b/src/atlasComponents/sapi/constants.ts @@ -14,5 +14,6 @@ export const IDS = { JBA29: "minds/core/parcellationatlas/v1.0.0/94c1125b-b87e-45e4-901c-00daee7f2579-290", 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", } } diff --git a/src/atlasComponents/sapi/sapi.service.ts b/src/atlasComponents/sapi/sapi.service.ts index 6c79c9b2f79f5d3ed9ce9b671014478e84f41b50..8b9206271330d02c016324e967eea2b2693eeccb 100644 --- a/src/atlasComponents/sapi/sapi.service.ts +++ b/src/atlasComponents/sapi/sapi.service.ts @@ -13,6 +13,7 @@ import { import { FeatureType, PathReturn, RouteParam, SapiRoute } from "./typeV3"; import { BoundingBox, SxplrAtlas, SxplrParcellation, SxplrRegion, SxplrTemplate, VoiFeature, Feature } from "./sxplrTypes"; import { parcBanList, speciesOrder } from "src/util/constants"; +import { IDS } from "./constants"; export const useViewer = { THREESURFER: "THREESURFER", @@ -514,6 +515,11 @@ export class SAPI{ const map = await this.getLabelledMap(parcellation, template) for (const regionname in map.indices) { + if (parcellation.id === IDS.PARCELLATION.CORTICAL_LAYERS) { + if (regionname.includes("left") || regionname.includes("right")) { + continue + } + } for (const { volume: volumeIdx, fragment, label } of map.indices[regionname]) { const { providedVolumes } = map.volumes[volumeIdx] if (!("neuroglancer/precomputed" in providedVolumes)) { diff --git a/src/atlasComponents/sapi/translateV3.ts b/src/atlasComponents/sapi/translateV3.ts index 9c2f9bb317529cd054c5483dbb054978cc09264c..b5dcc4a019f4e9f229d022e626f07e25b7728170 100644 --- a/src/atlasComponents/sapi/translateV3.ts +++ b/src/atlasComponents/sapi/translateV3.ts @@ -287,7 +287,17 @@ class TranslateV3 { segLayerSpec.layer.labelIndicies.push(label) segLayerSpec.region.push(region) } + const { ['@id']: mapId } = map for (const regionname in map.indices) { + /** + * temporary fix + * see https://github.com/FZJ-INM1-BDA/siibra-python/issues/317 + */ + if (mapId === "siibra-map-v0.0.1_bigbrain-cortical-labelled") { + if (regionname.includes("left") || regionname.includes("right")) { + continue + } + } for (const index of map.indices[regionname]) { const { volume:volumeIdx=0, fragment, label } = index if (!label) {