Closed liquidcarbon closed 6 months ago
Thanks for posting. The parameters you're adjusting (approximate_peak_width
and prominence
) are important for inferring and fitting the background. As the peaks in the raw chromatogram appear to have significantly overlapping tails, your entire chromatogram is probably being clipped into a single window, and fitting that many peaks with broad parameters can be tough.
You can try directly adjusting the peak fitting parameters to more tightly constrain the fitting of the first peak.
You may also want to toy around with different approximate peak widths (as I think you have already) to get a good measure of the background. Given your first example, the raw chromatogram looks like it has a pretty stable baseline and there are many peaks close together. I think it's probably not the case that the background is substantial.
You can try enforcing peak positions at time points ≈ 10.5, 10.75, 11.5, 12.5, 13.25, and 14.25.
Let me know how it goes. If none of this seems to help, pass long a CSV
with the raw chromatogram and I can poke around at it too.
Hey @liquidcarbon , I'm going to close this issue for now. Feel free to open it back up if you need more advice.
Hello, I'm having some difficulty understanding the hplc-py peak fitting parameters and tuning them appropriately. It could be helpful to offer more examples of how changing them affects the results.
What parameters would you suggest to integrate this chromatogram? Default:![image](https://github.com/cremerlab/hplc-py/assets/47034358/d543fbe1-14c2-4106-8803-fefa352d04ab)
Using![image](https://github.com/cremerlab/hplc-py/assets/47034358/011e5657-5559-4f0a-aab3-4debfa00bc55)
approx_peak_width=0.25
(uncommented the line in the above codeblock):Neither of the two examples seems to be visually valid, and I'm not finding a combination of parameters that would make sense.
For reference, this is what Chemstation returns:![image](https://github.com/cremerlab/hplc-py/assets/47034358/1fefc88e-0030-453d-a8ff-33e8459e0c0e)