Tuesday, November 06, 2007

CIR Spreadsheet and Instructions

Our series on integration has been made possible with a spreadsheet by contributer Ali, which we have made available in the archive for download, inspection and use. Here is a description and instructions.

[MORE]



By Ali


Specifying Peaks and Background

The spreadsheet provides facilities for defining three peaks.

For each peak, the o/oo value, the peak response and the peak time can be controlled (rows 6 to 9). The time difference between m45 and m44 can also be defined (cell C9). Published material suggests that a suitable mean value for this would be 0.15 s. That can’t be accommodated as the time resolution is 0.1 s, so either use 0.1 or 0.2. It makes a difference! Our examples have been generated with the smaller value, while the larger one produces more pronounced effects, so we've erred on the conservative side.

The background noise level can be set (rows 29 to 31). The level, slope and o/oo parameters can be entered.

Generating Data

A template peak profile, conforming to a Normal (Gaussian) distribution is stored in the spreadsheet. Depending on the values entered against each peak, the template peak is scaled to produce a m44 peak which matches the defined peak height and time shifted to match the peak time. The entered o/oo values are then used to produce the m45 peaks which are vertically scaled down versions of their m44 counterparts so that the ratio of their area correspond exactly to the o/oo values. They are placed at the same points in time, then shifted by the m45 to m44 time difference (cell C9).

The m45, m44 and m45/m44 plots are generated from this tabular data. At each point in time, the background, peak1, peak2 and peak3 contributions are then summed to produce the net m44 and m45 responses.

The instantaneous m45/m44 plot is simply the ratio of net m45 divided by net m44 at each point in time.

Integration Limits

With the peaks defined, their integration limits can be set. Provision is made for t1 and t2 times for each peak. Integration occurs between these two times (rows 11 to 12).

Our understanding is that both human operators and software typically select integration points by looking at the 44/45 trace. The spreadsheet is completely manual for this operation.

Background Removal

Background removal in the spreadsheet is automatic, unless manualy overridden.

In automatic mode, for each integration interval, a straight line is fitted between the intersection of t1 and the m44 plot and the intersection of t2 and the m44 plot. The same happens for the m45 plot. Everything below this line and outside the integration interval is discarded. The display and methodology is consistent with what we've observed in various documented examples.

Automatic mode can be overidden by entering a value in cell C21. Clearing this cell returns to automatic mode.

Result Calculation

The calculated o/oo values (row 24) are generated by performing numerical integration over the selected t1-t2 interval on both the m44 and m45 plots (after the desired background has been removed). The ratio of m45 area to m44 area defines the C13/C12 ratio which in turn leads to a calculated o/oo value for the peak based on the relationship: o/oo=1000*((C13/C12)-PDB)/PDB (where PDB is an international standard).

Generating Plots

The plots shown in the Series on TBV have been generated by setting up the desired conditions in the spreadsheet, copying the Excel chart and pasting it into the standard Windows accessory MSPaint (any other equivalent application would be suitable). They are then sized, shaded and annotated as required.

That’s it really. No smoke and mirrors involved. Any observations on either the implementation or the assumptions made are welcome.


5 comments:

m said...

Why don't you post this and the rest of the series over at DP, That's where the knowledgeable science types hang, and they could provide a critique of your model.

Otherwise for most folks here, this model is a black box.

Larry said...

M, I personally would not post a series like this over at DPF. I don't think that group would be receptive to this series. Also, this series is addressed to the "idiots", and as one of the "idiots", I would not post questions to this series if it were on DPF. DPR is way, way too hostile an environment for the posting of basic questions. I'm glad that this series is here and not there.

In any event, authors have an absolute perogative to choose where their work will be published.

I don't understand how you can say that this series presents a black box model. TBV and Ali are explaining their methods in the simplest language they can manage, and they take on all questions, no matter how basic. Plus they've posted the spreadsheet! Granted, the science isn't easy, but how much more transparent could this series be?

m said...

Larry,

No one on here is qualified to analyze the numbers on Ali's spreadsheet and the mathematical/scientific model contained therein. That model is a black box to you and me. Whereas there are scientific folks on DP who are possibly qualified.

As to hostility on DP. I haven't found that. I've asked some pretty basic questions, and often gotten answers. Clearly Ali is a known partisan, so might not receive as polite a response as I did, but he and others like duckstrap have been active on DP.

Ali said...

Ouch !

Partisan: a firm adherent to a party, faction, cause, or person; especially : one exhibiting blind, prejudiced, and unreasoning allegiance.

I thought I'd moved away from that but clearly my reputation precedes me. Hey, it's a skill, don't knock it ! :-)

Seriously, the reason we've been totally open about what we've done, even providing the source material and a description of what it does, is precisely so that those interested can inspect it, validate it and highlight errors. I'm sure that the scientific community at DPF are aware of what is posted on TBV. If you're concerned that they may not be, there's nothing preventing you from drawing their attention to it.

Our approach from the start has been that peer review is essential. The last thing we would want is to present invalid conclusions. That would serve no purpose.

Ali

Laura Challoner, DVM said...

We encourage respectful dialogue and enforce our insistance that any and all exchanges be respectful at TBV.

If any of the folks at DPF want to contribute here, we welcome their participation as long as their contributions do not belittle or disrespect others.

There have been many "crossovers" from there to here, to date. I am one.

I am not in favor of moving any discussion from here to there.