patRoon
patRoon copied to clipboard
Report generation occasionally fails
Hi, The new report looks very nice and works correctly 99.99% of the time. However, recently, after using sirius to generate formulas and structure candidates, followed by MS2Quant estimation, I am getting this error:
report(fGroups,
-
MSPeakLists = mslists,
-
formulas = formulas,
-
compounds = compounds,
-
components = NULL,
-
settingsFile = "report.yml",
-
openReport = TRUE)
Loading all EICs... Verifying if your data is centroided... Done! Done! [...] Generating report parts: Feature groups... Features... MS peak lists... Formulas... Quitting from lines 38-370 [unnamed-chunk-12] (./details.Rmd)
Quitting from lines 38-370 [unnamed-chunk-3] (./details.Rmd)
Error in transpose()
:
! Item 2 of list input is not an atomic vector
Backtrace:
- bslib::layout_column_wrap(...)
- utils$genFormulasTable()
- patRoon:::makeAnnReactable(...)
- patRoon:::makeReactable(...)
- reactable::reactable(...) ...
- patRoon:::makeAnnDetailsReact("Formula properties", ft, if (isFGSet(objects$fGroups)) sets(objects$fGroups) else NULL)
- patRoon:::makePropTab(tab, sets, FALSE)
- base::lapply(...)
- patRoon (local) FUN(X[[i]], ...)
- data.table::transpose(trow, keep.names = "property")
Legacy CSV table generation also fails:
reportCSV(fGroups,
-
path = "report",
-
formulas = formulas,
-
compounds = compounds,
-
components = NULL)
Exporting feature group tables...Done! Exporting formula table... Error in utils::write.table(ft, out, col.names = NA, sep = ",", dec = ".", : unimplemented type 'list' in 'EncodeElement'
Is there anything I can do to help fix this? Best regards, MK