cbroeckl / RAMClustR

Assigning precursor-product ion relationships in indiscriminant MS/MS data
MIT License
12 stars 16 forks source link

Fix failing tests on Mac M1 chips #23

Closed maximskorik closed 2 years ago

maximskorik commented 2 years ago

Problem: "RAMClustR with csv works" test fails on M1 Mac due to different (from Intel chips) floating numbers handling when computing mz_rt features. The difference lies in rounding error; however, no difference is tolerated because the features are stored as strings in the form mz_rt.

Workaround: mz_rt labels are now checked separately from the whole dataset. Each feature label is disassembled into individual mz and rt, these are then converted to numeric datatypes and checked against their expected values.