Institute for Advanced Biosciences Keio University
MathDAMP Mathematica package for differential analysis of metabolite profiles
Home Overview Examples Downloads TriDAMP References Contact
MathDAMP > Examples > MathDAMP source > Data Import/Export > Scan binning

Scan binning

The functions DAMPBinScanSequential and DAMPBinScanSelective facilitate the binning along the m/z dimension as described above. The functions are used internally by functions importing datasets in different data formats.

DAMPBinScanSequential = Compile[{{rec, _Real, 2}, {dims, _Real, 1}}, Module[{tbl, cnts, tmp2 ... 315;]]) &/@rec ; cnts = If[# == 0., 1., #] &/@cnts ; tbl/cnts]] 

DAMPBinScanSelective = Compile[{{data, _Real, 2}, {allmzs, _Real, 1}}, Module[{tbl, cnttbl,  ... ;/@data ; cnttbl = If[#0., 1., #] &/@cnttbl ; tbl/cnttbl]] ;