The MFAssignR package was designed for multi-element molecular formula (MF) assignment of ultrahigh resolution mass spectrometry measurements. A number of tools for internal mass recalibration, MF assignment, signal-to-noise evaluation, and unambiguous formula selections are provided.
This PR fixes an error thrown when isopeaks == "None", by:
isopeaks = NA
instead ofisopeaks = "none"
ifelse
statement on line 191 was changed toisopeaks <- if(any(is.na(isopeaks))) {data.frame(mass = 1, Abundance = 1, Tag = "X")} else {isopeaks}
Test and a test data accompanying the bug were added and original Recal test data rewritten as now we correctly get more rows.
Closes https://github.com/RECETOX/MFAssignR/issues/45