yufree / xMSannotator

fork from https://sourceforge.net/projects/xmsannotator/
https://sourceforge.net/projects/xmsannotator/
9 stars 13 forks source link

correction to mz calculation #6

Closed M-R-JONES closed 5 years ago

M-R-JONES commented 5 years ago

Line 109 throws an error in it's current form due to 'adductnmol', 'adductmass' and 'adductcharge' being of type 'character.

yufree commented 5 years ago

Thanks, I never used this function before. However, I checked the source code and thought you are right.

The default adduct_table assign character to num_molecules, charge, adductMass variables.

I will merge this PR to avoid the error.

cc @kuppal2