lifs-tools / rmzTab-m

The R-language bindings for mzTab-M
https://lifs-tools.github.io/rmzTab-m/
MIT License
4 stars 1 forks source link

convertMzTab2MAF() only handles mzTab with nrow(smlTable) == nrow(smfTable) #29

Closed sneumann closed 1 year ago

sneumann commented 1 year ago

The function convertMzTab2MAF() is exporting the Abundances which are extracted from the smlTable, while m/z and retention time come from the feature table. The first version was assuming sml and smf had the same nrow() and ordering to avoid using any logic to put things together. => Tables should be linked via their IDs, and if multiple features are combined into one molecule, the average (or median ?) retention time should be calculated. PR coming. Yours, Steffen.