diff --git a/deploy/datasets/query.js b/deploy/datasets/query.js index 7023dbc2650c3aed04cc1f50d1ab4639b4c0b1fd..2cb5682ed8ebf37ab2c6301976fc52043e01241d 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)