Author |
Topic |
|
thitchen
44 Posts |
Posted - 04/24/2012 : 12:17:11 PM
|
Origin Ver. 8 and Service Release 0 (Select Help-->About Origin): Operating System: win7 prof.
Hi,
I have plenty of graphs with each having ~10 curves stacked with offset. How can I do the Gaussian peaks fitting for each curve and save the resulting parameters, i.e. peak position, width, and height etc. for each curve in a new workbook? Thanks in advanced.
|
|
Hideo Fujii
USA
1582 Posts |
|
thitchen
44 Posts |
Posted - 04/25/2012 : 10:34:13 PM
|
Thanks a lot Hideo, I did that, but it keeps saying "at least one theme is needed to do peak analysis", I did save a theme, I'm confused, please help. |
|
|
Hideo Fujii
USA
1582 Posts |
Posted - 04/26/2012 : 11:33:29 AM
|
Hi thitchen,
So, you are now running Origin 8.6 Evaluation version, right? If, so "theme" I meant is the "dialog theme". First, run the Peak Analyzer for one of the curve in your Stack graph, and at the last step of the Peak Analyzer's wizard steps, press the triangle button at the top right corner, choose "Save As", and gave the name to the theme. Now, you can choose "Analysis: Peaks&Baseline: Barth Peak Analysis using Theme" menu. In the PA Batch tool, you should be able to see and select your dialog theme at the "Theme" dropdown. Do you see this? If you click OK, the batch process will start, and you will get the summary table.
If something in above steps didn't go thru, please tell me what you operated, and what you got...
--Hideo Fujii OriginLab
|
|
|
thitchen
44 Posts |
Posted - 04/26/2012 : 7:59:07 PM
|
Thanks again Hideo,
I went through the Peak analyzer wizard, but I couldn't find where to specify Gaussian fit. first of all I chose "auto" for recalculation mode. Then the "goal" is "find peaks", and then the "input" is one of 10 curves; I clicked "next", for the "baseline" I chose "constant" which is the minimum of the curve; then "next", I skipped this one since I don't need to subtract now nor rescale now; then "next", I checked off "auto find" and "add" 2 peaks myself. and I don't know where to use Gaussian fit. please help.
quote: Originally posted by Hideo Fujii
Hi thitchen,
So, you are now running Origin 8.6 Evaluation version, right? If, so "theme" I meant is the "dialog theme". First, run the Peak Analyzer for one of the curve in your Stack graph, and at the last step of the Peak Analyzer's wizard steps, press the triangle button at the top right corner, choose "Save As", and gave the name to the theme. Now, you can choose "Analysis: Peaks&Baseline: Barth Peak Analysis using Theme" menu. In the PA Batch tool, you should be able to see and select your dialog theme at the "Theme" dropdown. Do you see this? If you click OK, the batch process will start, and you will get the summary table.
If something in above steps didn't go thru, please tell me what you operated, and what you got...
--Hideo Fujii OriginLab
|
|
|
Hideo Fujii
USA
1582 Posts |
Posted - 04/27/2012 : 10:25:04 AM
|
Hi thitchen,
"Find peaks" is ONLY to find the peaks, and their function shapes don't involved. You need to choose "Fit Peaks" (Pro only). Here, Gaussian is the default.
If you want to change the function type, in the last "Fit Peaks" page, you press "Fit Control" button at bottom, and double-click the function name in the appeared parameter table to change to the other function such as Lorentz.
--Hideo Fujii OriginLab |
Edited by - Hideo Fujii on 04/27/2012 10:25:26 AM |
|
|
thitchen
44 Posts |
Posted - 04/27/2012 : 6:25:30 PM
|
Hi Hideo,
I am using the originPRO 8.6 64bits evaluation. So it is a PRO. For that "Fit Peaks" I found that "analysis"->"peaks and baseline"->"fit multiple peaks" has the thing which I need. But it can do only one curve fitting. I don't need Lorentz fitting, I only need Gaussian.
Do you know how to realize my goal with a "for" loop coding? My thinking is that, since the positions of the two peaks are pretty much the same for those 10 curves, maybe I can use some X-function of Gaussian fitting to fit all the 10 curves with the same parameters. But I'm new to x-Functions, please help. Many thanks!
quote: Originally posted by Hideo Fujii
Hi thitchen,
"Find peaks" is ONLY to find the peaks, and their function shapes don't involved. You need to choose "Fit Peaks" (Pro only). Here, Gaussian is the default.
If you want to change the function type, in the last "Fit Peaks" page, you press "Fit Control" button at bottom, and double-click the function name in the appeared parameter table to change to the other function such as Lorentz.
--Hideo Fujii OriginLab
|
Edited by - thitchen on 04/27/2012 9:10:10 PM |
|
|
Hideo Fujii
USA
1582 Posts |
Posted - 04/30/2012 : 4:03:04 PM
|
Hi thitchenA
As you wrote, the "fit multiple peaks" accepts only one curve at at time. Unless you choose a venue to do the programming for the LabTalk script, this is not what you want to explore.
As I wrote before, the settings of one session of Peak Analyzer ("Analysis: Peaks and Baseline: Peak Analyzer" menu) for "Fit Peaks" goal can be saved as a Dialog Theme, then using the theme, you can run a "batch processing" ("for loop" in your term) for multiple curves at once (by ""Analysis: Peaks and Baseline: Batch Peak Analysis Using Theme" menu in OriginPro).
--Hideo Fujii OriginLab
P.S., Either in the Peak Analyzer, or in the "Fit Multiple Peaks", the default peak function is Gaussian. So, you don't have to mind it.
|
Edited by - Hideo Fujii on 04/30/2012 4:06:32 PM |
|
|
thitchen
44 Posts |
Posted - 05/10/2012 : 6:26:15 PM
|
Thank you Hideo,
It's pretty good to fit single curve using the "Peak Analyzer". And I saved that as a theme. However, when I use the template to do "Batch Peak Analysis Using Theme" it gives 15 peaks per curve, and an error "Fit did not converge - mutual dependency exists between parameters. You may have overparameterized the fitting function. Fixing one of them may eliminate this problem." showed up. What does that mean by "it's overparameterized", please? I just simply specify the baseline and peak positions for a single curve.
Many thanks.
quote: Originally posted by Hideo Fujii
Hi thitchenA
As you wrote, the "fit multiple peaks" accepts only one curve at at time. Unless you choose a venue to do the programming for the LabTalk script, this is not what you want to explore.
As I wrote before, the settings of one session of Peak Analyzer ("Analysis: Peaks and Baseline: Peak Analyzer" menu) for "Fit Peaks" goal can be saved as a Dialog Theme, then using the theme, you can run a "batch processing" ("for loop" in your term) for multiple curves at once (by ""Analysis: Peaks and Baseline: Batch Peak Analysis Using Theme" menu in OriginPro).
--Hideo Fujii OriginLab
P.S., Either in the Peak Analyzer, or in the "Fit Multiple Peaks", the default peak function is Gaussian. So, you don't have to mind it.
|
|
|
Sheila Wan
United Kingdom
1 Posts |
|
Hideo Fujii
USA
1582 Posts |
|
|
Topic |
|
|
|