解決策 3

溶液として、サンプルカスタムフィールドによって、注入データのペアを同定することもできます。

たとえば、コントロールパネルのサンプルカスタムパラメータ[Spike_Sample]を作成します。対応するスパイクしなかったサンプル名を入力します。スパイクしなかった注入データの場合、"" を入力します。

  • スコープ:ピーク / グループ

  • データ型:実数型

  • 式:

    IF(CurrentSample.GetCustomField("Spike_Sample")<>””, (CurrentSequence.AllInjectionsBySampleName(CurrentSample.GetCustomField("Spike_Sample")).First().AllPeaksAndGroupsByName(Compound_Name).first().Compound_Amount - Compound_Amount)/ CurrentPeakOrGroup .GetCustomField(“SpikedAmount”)*100, "")

式の説明:

式の部分(ハイライト)

説明

IF(CurrentSample.GetCustomField("Spike_Sample")<>””, (CurrentSequence.AllInjectionsBySampleName(CurrentSample.GetCustomField("Spike_Sample")).First().AllPeaksAndGroupsByName(Compound_Name).first().Compound_Amount - Compound_Amount)/ CurrentPeakOrGroup .GetCustomField(“SpikedAmount”)*100, "")

計算は、スパイクしたサンプルについてのみ実行されます(Spike_Sample があります)。

IF(CurrentSample.GetCustomField("Spike_Sample")<>””, (CurrentSequence.AllInjectionsBySampleName(CurrentSample.GetCustomField("Spike_Sample")).First().AllPeaksAndGroupsByName(Compound_Name).first().Compound_Amount - Compound_Amount)/ CurrentPeakOrGroup .GetCustomField(“SpikedAmount”)*100, "")

sample_name に正しい名前が記載されている注入データを選択します。この名前は一意にしてください。期待通りに最初のものを取得するためです。

IF(CurrentSample.GetCustomField("Spike_Sample")<>””, (CurrentSequence.AllInjectionsBySampleName(CurrentSample.GetCustomField("Spike_Sample")).First().AllPeaksAndGroupsByName(Compound_Name).first().Compound_Amount - Compound_Amount)/ CurrentPeakOrGroup .GetCustomField(“SpikedAmount”)*100, "")

現在のものと同じ名前を持つ化合物を選択し、最初のものを取得します。1 つしかありませんので、正しいピークを返します。