Closed derb12 closed 10 months ago
Thanks @derb12, good catch! This is now fixed in #11 (along with another tweak to a test). Eventually (#12) , I will deprecate the SNIP algorithm implemented here and will instead integrate with pybaselines so the user will have more options to navigate correction.
Hi, cool library! I noticed a small issue in the
correct_baseline
method in quant.py.https://github.com/cremerlab/hplc-py/blob/8ce5223f2c1a4accbcafb3f883b8a692fac94337/hplc/quant.py#L884-L885
Within the inner loop, the values of
tform
need to be used for the minimum comparison rather thantform_new
. Sincetform_new
is being written to within the loop, using its values for the comparison will cause some unforseen issues. To help compare with Morhác's original SNIP implementation, the working vector (w
in the paper) istform_new
and the current vector (v
in the paper) istform
.The suggested change is show below: