R/minc_hierarchical_anatomy.R
makeMICeDefsHierachical.Rd
Makes a hierarchical tree using ontogeny from Allen Brain Institute
makeMICeDefsHierachical(defs, abijson)
defs | CSV file describing anatomical labels. See details about format |
---|---|
abijson | The JSON file from the Allen Brain Institute |
a data.tree object containing the full anatomical hierarchy
Takes the label definitions from a CSV file (same as the rest of the anat family of functions) and places it into a tree (using data.tree). The CSV file must thus have an extra column giving the corresponding name of each structure in the Allen Institute's nomenclature.
Currently the left and right structures are leaves at the end of the tree, and so are the first to be combined into the bilateral volumes. It is possible that in the future keeping hemispheres separate will be an option.
# NOT RUN { abijson <- "allen.json" defs <- "Dorr_2008_Steadman_2013_Ullmann_2013_mapping_of_labels.csv" hdefs <- makeMICeDefsHierachical(defs, abijson) # }