patRoon icon indicating copy to clipboard operation
patRoon copied to clipboard

Report generation occasionally fails

Open MK3491 opened this issue 8 months ago • 10 comments

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:

  1. bslib::layout_column_wrap(...)
  2. utils$genFormulasTable()
  3. patRoon:::makeAnnReactable(...)
  4. patRoon:::makeReactable(...)
  5. reactable::reactable(...) ...
  6. patRoon:::makeAnnDetailsReact("Formula properties", ft, if (isFGSet(objects$fGroups)) sets(objects$fGroups) else NULL)
  7. patRoon:::makePropTab(tab, sets, FALSE)
  8. base::lapply(...)
  9. patRoon (local) FUN(X[[i]], ...)
  10. 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

MK3491 avatar Jun 14 '24 06:06 MK3491