Skip to content

Commit

Permalink
rt correcton bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yufongpeng committed Dec 28, 2023
1 parent 6e74bfa commit f97ce38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,8 @@ function rt_correction(analytetable::Table, data::AbstractRawData; mz_tol = 0.35
if length(unique(rtx)) > 1
m = hcat(ones(Float64, length(rtx)), rtx)
(sqrtw * m) \ (sqrtw * rty)
elseif isempty(rtx)
[0, 1]
else
[0, mean(rty, weights(wts)) / first(rtx)]
end
Expand Down

0 comments on commit f97ce38

Please sign in to comment.