
Annotate recovered GC/MS compounds and export library matches
Source:R/identifyCompounds.R
identifyCompounds.RdAdd retention indices and ranked library matches to an existing deconvolution, without refitting its profiles or spectra.
Value
The gcmsDeco object with identification (a GCMSmatches object), retention indices and best-match columns in compounds. The first requested method supplies the best-match columns; all requested methods remain in identification$matches.
Details
The original compound names, factorization and fitted ion totals are preserved. Library names are tentative annotations. MSP files include the RI, column class, original fitted ion total and best-match description. Excel includes every returned match and the accepted alkane calibration anchors. Explicit assignments of unlabelled reference RI phases are recorded in the compound table, match table, Run sheet and MSP annotation. Supply output paths to export companion files from a saved fit.
Examples
# Given a saved deconvolution and an imported spectral library:
if (FALSE) { # \dontrun{
cal <- calibrateRI("alkanes.cdf", carbon=7:23)
identified <- identifyCompounds(fit, lib, calibration=cal, phase="DB5",
ri_tolerance=30, n_matches=5, method=c("stein_scott","hellinger"),
msp_file="sample_identified.msp", xlsx_file="sample_identified.xlsx")
identified$identification$matches
} # }