Skip to content

Commit

Permalink
Merge pull request #136 from Proteobench/abs_of_epsilon
Browse files Browse the repository at this point in the history
fix: take absolute value of epsilon before computing mean, ammend #133
  • Loading branch information
RobbinBouwmeester authored Nov 24, 2023
2 parents eb834ec + 98d4b12 commit 0a2dff3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion proteobench/modules/dda_quant/datapoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ def calculate_missing_quan_prec(self, df, nr_missing_0):

def calculate_plot_data(self, df):
# compute mean of epsilon column in df
self.weighted_sum = round(df["epsilon"].mean(), ndigits=3)
# take abs value of df["epsilon"]
self.weighted_sum = round(df["epsilon"].abs().mean(), ndigits=3)
self.nr_prec = len(df)

def generate_id(self):
Expand Down

0 comments on commit 0a2dff3

Please sign in to comment.