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

triage: fixing backwards compatibility of waxholm and allen

parent 76392e89
No related branches found
No related tags found
No related merge requests found
......@@ -94,9 +94,25 @@ export class AtlasViewerURLService{
*/
const searchparams = new URLSearchParams(window.location.search)
/**
* TODO
* triage: change of template and parcellation names is breaking old links
* change back when camilla/oli updated the links to new versions
*/
/* first, check if any template and parcellations are to be loaded */
const searchedTemplatename = searchparams.get('templateSelected')
const searchedParcellationName = searchparams.get('parcellationSelected')
const searchedTemplatename = (() => {
const param = searchparams.get('templateSelected')
if (param === 'Allen Mouse') return `Allen adult mouse brain reference atlas V3`
if (param === 'Waxholm Rat V2.0') return 'Waxholm Space rat brain atlas v.2.0'
return param
})()
const searchedParcellationName = (() => {
const param = searchparams.get('parcellationSelected')
if (param === 'Allen Mouse Brain Atlas') return 'Allen adult mouse brain reference atlas V3 Brain Atlas'
if (param === 'Whole Brain (v2.0)') return 'Waxholm Space rat brain atlas v.2.0'
return param
})()
if (!searchedTemplatename) {
const urlString = window.location.href
......
This diff is collapsed.
{"globals":{"hideNullImageValues":true,"useNehubaLayout":true,"useNehubaMeshLayer":true,"useCustomSegmentColors":true},"rotateAtViewCentre":true,"zoomAtViewCentre":true,"zoomWithoutCtrl":true,"hideNeuroglancerUI":true,"rightClickWithCtrl":true,"enableMeshLoadingControl":true,"disableFixedPointObliqueRotation":true,"layout":{"useNehubaPerspective":{"fixedZoomPerspectiveSlices":{"sliceViewportWidth":1000,"sliceViewportHeight":1000,"sliceZoom":51263,"sliceViewportSizeMultiplier":2},"centerToOrigin":true,"mesh":{"removeBasedOnNavigation":true,"flipRemovedOctant":true},"removePerspectiveSlicesBackground":{"mode":"=="},"drawSubstrates":{"color":[0.5,0.5,1,0.2]},"drawZoomLevels":{"cutOff":15000}}},"dataset":{"imageBackground":[0,0,0,1],"initialNgState":{"showDefaultAnnotations":false,"layers":{"template":{"type":"image","source":"precomputed://https://neuroglancer.humanbrainproject.org/precomputed/WHS_SD_rat/templates/v1.01/t2star_masked","transform":[[1,0,0,-9550781],[0,1,0,-24355468],[0,0,1,-9707031],[0,0,0,1]]},"templateUnMasked":{"type":"image","visible":false,"source":"precomputed://https://neuroglancer.humanbrainproject.org/precomputed/WHS_SD_rat/templates/v1.01/t2star","transform":[[1,0,0,-9550781],[0,1,0,-24355468],[0,0,1,-9707031],[0,0,0,1]]},"whole":{"type":"segmentation","source":"precomputed://https://neuroglancer.humanbrainproject.org/precomputed/WHS_SD_rat/parcellations/v2","selectedAlpha":0.35,"transform":[[1,0,0,-9550781],[0,1,0,-24355468],[0,0,1,-9707031],[0,0,0,1]]}},"navigation":{"pose":{"position":{"voxelSize":[39062.5,39062.5,39062.5],"voxelCoordinates":[-1.5317133665084839,-146.45941162109375,20.52083969116211]}},"zoomFactor":59702.66654390316},"perspectiveOrientation":[-0.6278747916221619,-0.43671634793281555,0.4761661887168884,0.4339560568332672],"perspectiveZoom":379767.21993194974}}}
\ No newline at end of file
{
"globals": {
"hideNullImageValues": true,
"useNehubaLayout": true,
"useNehubaMeshLayer": true,
"useCustomSegmentColors": true
},
"rotateAtViewCentre": true,
"zoomAtViewCentre": true,
"zoomWithoutCtrl": true,
"hideNeuroglancerUI": true,
"rightClickWithCtrl": true,
"enableMeshLoadingControl": true,
"disableFixedPointObliqueRotation": true,
"layout": {
"useNehubaPerspective": {
"fixedZoomPerspectiveSlices": {
"sliceViewportWidth": 1000,
"sliceViewportHeight": 1000,
"sliceZoom": 51263,
"sliceViewportSizeMultiplier": 2
},
"centerToOrigin": true,
"mesh": {
"removeBasedOnNavigation": true,
"flipRemovedOctant": true
},
"removePerspectiveSlicesBackground": {
"mode": "=="
},
"drawSubstrates": {
"color": [
0.5,
0.5,
1,
0.2
]
},
"drawZoomLevels": {
"cutOff": 15000
}
}
},
"dataset": {
"imageBackground": [
0,
0,
0,
1
],
"initialNgState": {
"showDefaultAnnotations": false,
"layers": {
"template": {
"type": "image",
"source": "precomputed://https://neuroglancer.humanbrainproject.org/precomputed/WHS_SD_rat/templates/v1.01/t2star_masked",
"transform": [
[
1,
0,
0,
-9550781
],
[
0,
1,
0,
-24355468
],
[
0,
0,
1,
-9707031
],
[
0,
0,
0,
1
]
]
},
"templateUnMasked": {
"type": "image",
"visible": false,
"source": "precomputed://https://neuroglancer.humanbrainproject.org/precomputed/WHS_SD_rat/templates/v1.01/t2star",
"transform": [
[
1,
0,
0,
-9550781
],
[
0,
1,
0,
-24355468
],
[
0,
0,
1,
-9707031
],
[
0,
0,
0,
1
]
]
},
"whole": {
"type": "segmentation",
"source": "precomputed://https://neuroglancer.humanbrainproject.org/precomputed/WHS_SD_rat/parcellations/v2",
"selectedAlpha": 0.35,
"transform": [
[
1,
0,
0,
-9550781
],
[
0,
1,
0,
-24355468
],
[
0,
0,
1,
-9707031
],
[
0,
0,
0,
1
]
]
}
},
"navigation": {
"pose": {
"position": {
"voxelSize": [
39062.5,
39062.5,
39062.5
],
"voxelCoordinates": [
-1.5317133665084839,
-146.45941162109375,
20.52083969116211
]
}
},
"zoomFactor": 59702.66654390316
},
"perspectiveOrientation": [
-0.6278747916221619,
-0.43671634793281555,
0.4761661887168884,
0.4339560568332672
],
"perspectiveZoom": 379767.21993194974
}
}
}
\ No newline at end of file
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