MSIlayer {MsImaging} R Documentation

get MSI pixels layer via given ``m/z`` value.

Description

Usage

MSIlayer(viewer, mz,
    tolerance = "da:0.1",
    split = FALSE);

Arguments

viewer

[as Drawer]

mz

[as double]

split

returns a single layer object for multiple input m/z vector if not split by default, otherwise returns multiple layer objects in a list for each corresponding ion m/z if split parameter value is set to TRUE. [as boolean]

tolerance

-

env

[as Environment]

Details

Authors

BioNovoGene

Value

this function returns data object of type SingleIonLayer.

clr value class

Examples

 let viewer = MsImaging::viewer(open.mzpack("/data.mzpack"));
 let ion_mz = 100.001;
 let single_ion_layer = viewer |> MsImaging::MSIlayer(mz = ion_mz, tolerance = "ppm:20");
 let data = as.data.frame(single_ion_layer);
 
 print(data);

[Package MsImaging version 1.0.0.0 Index]