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 > Core Functionality > Modifying the SampleName in msdata

Modifying the SampleName in msdata

When msdata is processed by some functions (baseline subtraction, smoothing, etc) it may be desirable to keep track of modifications performed on the dataset by appending a short string to the SampleName of the original dataset. The functions use the private function DAMPAppendToSampleName for this purpose. The function adds vertical bars to separate multiple modification identifiers. The vertical bars are shared between multiple modifiers unless the ShareBars option is set to False.

DAMPAppendToSampleName[msdata4_, str_, opts___] := Module[{sname}, sname = Global`Sa ... obal`ShareBars/.{opts}/.{Global`ShareBarsTrue}, "", " |"]] ]