Skip to content
Snippets Groups Projects
Unverified Commit e998c0b4 authored by xgui3783's avatar xgui3783 Committed by GitHub
Browse files

Merge pull request #1298 from FZJ-INM1-BDA/fix_corticalLayer

tmp fix cortical layer
parents 419aa829 6673a49a
No related branches found
No related tags found
No related merge requests found
......@@ -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",
}
}
......@@ -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)) {
......
......@@ -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) {
......
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