From dd62382ff5040b5db0ca26f36222df246bb71d20 Mon Sep 17 00:00:00 2001 From: Xiao Gui <xgui3783@gmail.com> Date: Wed, 30 Oct 2019 11:50:12 +0100 Subject: [PATCH] hotfix: colin regions do not have alias label use mni52 labels instead --- deploy/datasets/query.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/deploy/datasets/query.js b/deploy/datasets/query.js index 7023dbc26..2cb5682ed 100644 --- a/deploy/datasets/query.js +++ b/deploy/datasets/query.js @@ -130,23 +130,15 @@ let juBrainSet = new Set(), allen2015Set = new Set(), allen2017Set = new Set() -readConfigFile('colin.json') - .then(data => JSON.parse(data)) - .then(json => { - const juBrain = flattenArray(json.parcellations[0].regions) - juBrainSet = populateSet(juBrain) - - }) - .catch(console.error) - readConfigFile('MNI152.json') .then(data => JSON.parse(data)) .then(json => { const longBundle = flattenArray(json.parcellations.find(({ name }) => name === 'Fibre Bundle Atlas - Long Bundle').regions) const shortBundle = flattenArray(json.parcellations.find(({ name }) => name === 'Fibre Bundle Atlas - Short Bundle').regions) - + const jubrain = flattenArray(json.parcellations.find(({ name }) => 'JuBrain Cytoarchitectonic Atlas' === name).regions) longBundleSet = populateSet(longBundle) shortBundleSet = populateSet(shortBundle) + juBrainSet = populateSet(jubrain) }) .catch(console.error) -- GitLab