Skip to content

Commit

Permalink
Sorting on predicted retention time for calibration
Browse files Browse the repository at this point in the history
Big thank you to @courcelm for figuring this one out!
  • Loading branch information
RobbinBouwmeester committed May 18, 2020
1 parent 0002872 commit 3fe2d27
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions deeplc/deeplc.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ def calibrate_preds_func(self,

# sort two lists, predicted and observed based on measured tr
tr_sort = [(mtr, ptr) for mtr, ptr in sorted(
zip(measured_tr, predicted_tr), key=lambda pair: pair[0])]
zip(measured_tr, predicted_tr), key=lambda pair: pair[1])]
measured_tr = np.array([mtr for mtr, ptr in tr_sort])
predicted_tr = np.array([ptr for mtr, ptr in tr_sort])

Expand Down Expand Up @@ -732,7 +732,6 @@ def calibrate_preds_func(self,
if v > calibrate_max:
calibrate_max = v
calibrate_dict[str(round(v, self.bin_dist))] = [slope, intercept]
print(v)

return calibrate_min, calibrate_max, calibrate_dict

Expand Down

0 comments on commit 3fe2d27

Please sign in to comment.