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

hotfix: colin regions do not have alias label

use mni52 labels instead
parent 2cf13407
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
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