Mouse-Imaging-Centre / RMINC

Statistics for MINC volumes: A library to integrate voxel-based statistics for MINC volumes into the R environment. Supports getting and writing of MINC volumes, running voxel-wise linear models, correlations, etc.; correcting for multiple comparisons using the False Discovery Rate, and more. With contributions from Jason Lerch, Chris Hammill, Jim Nikelski and Matthijs van Eede. Some additional information can be found here:
https://mouse-imaging-centre.github.io/RMINC
Other
23 stars 17 forks source link

makeMICeDefsHierachical() returns incorrect (at best extremely misleading) label attribute #268

Open nzxwang opened 5 years ago

nzxwang commented 5 years ago

each node contains the entire vector of labels from the first label to its own label. It should probably just contain its own label?

nzxwang commented 5 years ago

Current workaround and possibly future implementation:

hdefs <- makeMICeDefsHierachical(defs, abijson)
hdefs$Do(function(node) node$label <- tail(node$label, 1))