Skip to contents

Searches through annotated m/z values to return all which contain the metabolite search term provided

Usage

SearchAnnotations(
  data,
  metabolite,
  assay = "Spatial",
  search.exact = FALSE,
  column.name = "all_IsomerNames"
)

Arguments

data

Seurat Spatial Metabolomic Object containing annotated m/z values.

metabolite

Character string of metabolite search term.

assay

Character string defining the Seurat assay that contains the annotated metadata corresponding to the m/z values (default = "Spatial").

search.exact

Boolean value defining if to only return m/z values which contain the exact match to the metabolite search term (default = FALSE).

column.name

Character string defining the column name where the annotations are stored in the slot meta.data (default = "all_IsomerNames").

Value

A Data.Frame containing the peak metadata corresponding to the metabolite search term provided

Examples

utils::str(formals(SearchAnnotations))
#> Dotted pair list of 5
#>  $ data        : symbol 
#>  $ metabolite  : symbol 
#>  $ assay       : chr "Spatial"
#>  $ search.exact: logi FALSE
#>  $ column.name : chr "all_IsomerNames"
# SearchAnnotations(SeuratObj, "Glucose", search.exact = TRUE)