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

Merge pull request #405 from HumanBrainProject/hotfix/missingReceptorDatasets

Hotfix/missing receptor datasets
parents 1aacc68e dd62382f
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