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
22 stars 17 forks source link

`mincEffectSize` returns an object of class `matrix` #303

Open bcdarwin opened 2 years ago

bcdarwin commented 2 years ago

This is an instance of the usual issue of RMINC not preserving attributes, and results in, e.g., mincWriteVolume not working as expected due to class-based dispatch. For a workaround, try something like class(es) <- class(vs) (where es is the output of mincEffectSizes and vs is the output of the preceding mincLm).

gdevenyi commented 2 years ago

Since this is my code, is this a bug I can fix?