
Searches observed mz values against the data base list and returns matching annotations
Source:R/MZAnnotation.R
proc_db.Rd
Searches observed mz values against the data base list and returns matching annotations
Examples
# HMDB_db <- load("data/HMDB_1_names.rds")
# mz_df <- SeuratObject[["Spatial"]][["mz"]]
# mz_df$row_id <- seq(1, length(mz_df$mz))
## 1) Filter DB by adduct.
# db_1 <- db_adduct_filter(HMDB_db, c("M+H"), polarity = "pos")
## 2) only select natural elements
# db_2 <- formula_filter(db_1)
## 3) search db against mz df return results
# db_3 <- proc_db(mz_df, db_2, ppm_threshold = 5)