RECETOX / recetox-xMSannotator

This is a custom adaptation of the original version of xMSannotator. It is a complete rewrite of the original functionality, following the same program structure.
GNU General Public License v3.0
5 stars 6 forks source link

nn2 fails if dimension of data and clusters mismatch #74

Closed hechth closed 3 years ago

hechth commented 3 years ago

The nn2 function fails if the dimensions mismatch, but both are expected to be 1d. There can be discrepancies between 1d vectors, lists, arrays etc.

https://github.com/RECETOX/recetox-xMSannotator/blob/ec916d04ebfa0545a7a32aa7829ef71a7de7b3fb/xmsannotator/R/compute_rt_modules.R#L94