Closed KristinaGomoryova closed 2 months ago
This is now resolved in https://github.com/RECETOX/MFAssignR/pull/46
processKnown()
function was introduced: element_mass
step_result[[num_col]] <- round((step_result$Exp_mass - step_result$base_mass) / step_limit)
; step_limit is now replaced by element_massstep_result <- step_result[-remove_indices, ]
here it was corrected for [-remove_indices] as in original codestep_result$form
reverted to original stateNow both recetox and skschum versions provide the same output
This is related to this issue: https://github.com/RECETOX/galaxytools/issues/576 ; apparently the RECETOX version of MFAssignR has a bug in Recal function, which works fine in the original version
The problem is here:
One point:
step_result$form <- paste(step_result[c("C", "H", "O", "N", "S", "P", "E", "S34", "N15", "D", "Cl", "Fl", "Cl37", "M", "NH4", "POE", "NOE")], sep = "_")
needs to be replaced by this:step_result$form <- paste(step_result$C, step_result$H, step_result$O, step_result$N, step_result$S, step_result$P, step_result$E, step_result$S34, step_result$N15, step_result$D, step_result$Cl, step_result$Fl, step_result$Cl37, step_result$M, step_result$NH4, step_result$POE, step_result$NOE, sep = "_")
Additionally, we need to pass H instead of H2 in Step3:
Step3 <- processKnown(Rest, RecalList[c(1:21, 27, 28)], "KMD_H2", "z_H2", "H2_num", "H", step_H2, c(10, 31))
And then, the problem is that the colnames or Step2 and Step3 don't match:
So we need to pass them differently in the function or do colnames() in processKnown()