
Sums the intensity values of multiple m/z values into one
Source:R/PlottingSpaMTP.R
BinMetabolites.Rd
This function inputs any vector of m/z values and combines their intensity values per pixel.
This 'binned' data is stored in the SpaMTP Object's @meta.data
slot.
Usage
BinMetabolites(
data,
mzs,
assay = "Spatial",
slot = "data",
bin_name = "Binned_Metabolites"
)
Arguments
- data
SpaMTP Seurat class object containing m/z intensities.
- mzs
Vector of m/z names to be binned together
- assay
Character string indicating which Seurat object assay to pull data form (default = "Spatial").
- slot
Character string indicating the assay slot to use to pull expression values form (default = "counts").
- bin_name
Character string defining the name of the meta.data column that stores the data (default = "Binned_Metabolites").