我需要幫助編輯最初開髮用於從 Logistic 4P 模型(擬合曲線平台)中提取微生物生長參數的腳本。 我想編輯腳本以從每個處理“應變、媒體、複製”中提取參數,查看我想要的所需輸出。 我顯然在腳本中遺漏了一些重要的語言,但我不清楚如何做到這一點。 腳本答案會很棒! 請幫忙!
這是我得到的錯誤:
“'r[Outline Box(Parameter Estimates”),Number Col Box("Estimate",1)]', r]/*###*/Outline Box("Parameter Estimates") 的訪問或評估中的下標問題, Number Col Box(“估計”,1)]
我想編輯的腳本 - “提取關鍵值”
所需輸出表的腳本 - “所需輸出”
提取臨界值
Names Default To Here(1);
// Determine coefficients of Logistic 4P model, for estimation of growth parameters.
// This assumes that the current data table contains the data of interest, and that:
// the column containing the time values is labeled "Time (h)"
// the column containing the data values is labeled "Ln OD600"
// the column containing “strain” and “media” and “replicate” are grouping columns
//
// The names can be changed in the lines below,
// or the code can be changed to add a file dialog and a column selection,
// or the code can be changed to loop through multiple Y columns.
// First step: Fit Logistic 4P curve to data, store results in object Test.
Test = Fit Curve(
Y( :Ln OD600 ),
X( :Name( "Time (h)" ) ),
By( :Strain, :Media, :Replicate ),
Fit Logistic 4P
);
// 2nd step: Send report to variable r.
r = Test<<REPORT></REPORT>
</CODE></PRE></LINGO-BODY><LINGO-SUB id="lingo-sub-241526" slang="en-US" mode="NONE">回复:幫助編寫腳本以從曲線擬合編譯參數</LINGO-SUB><LINGO-BODY id="lingo-body-241526" slang="en-US" mode="NONE"><P>這是我如何做的一個例子。</P>
<P> </P>
<PRE><CODE class=" language-jsl">Names Default to Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
fc = dt << Fit Curve(
Y( :weight ),
X( :height ),
Fit Exponential 2P
);
fcr = fc << Report;
{ a, b } = fcr["Parameter Estimates"][NumberColBox("Estimate")] << Get;你好@馬克貝利
感謝您的幫助,但我仍然遇到同樣的錯誤。 我在“估計”之後刪除了最後一個級別或“1”。 歡迎任何其他建議!
我認為導致錯誤的顯示樹中存在不必要的下標級別。 這是我的意思的一個例子:
a = GrowthRate = r[outlinebox("Parameter Estimates"),NumberColBox("Estimate",1)] << get(1);
我認為刪除最後一層將避免錯誤:
a = GrowthRate = r[outlinebox("Parameter Estimates"),NumberColBox("Estimate")] << get(1);