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

hanatToVolume doesn't catch non-existant column names with a useful error message #242

Closed gdevenyi closed 5 years ago

gdevenyi commented 5 years ago

Naive usage of hanatToVolume expecting same naming as anatLmer volumes resulted in a not-helpful error:

stats <- hanatToVolume(magmodel, labelVol, "tvalue-genotype2:age")
Error in replaceValues(labelVolume, out, labels, values) :
 Not compatible with requested type: [type=NULL; target=double].
cfhammill commented 5 years ago

Added a column name check for this