Skip to content

Commit

Permalink
Merge pull request #325 from Proteobench/Add-proteobench-version
Browse files Browse the repository at this point in the history
Add proteobench version for parsing and calc metric
  • Loading branch information
RobbinBouwmeester authored Jul 15, 2024
2 parents 963dc25 + 0138bb1 commit fa2e446
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions proteobench/utils/quant_datapoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

import pandas as pd

import proteobench


def filter_df_numquant_median_abs_epsilon(row, min_quant=3):
if isinstance(list(row.keys())[0], str):
Expand Down Expand Up @@ -53,6 +55,7 @@ class Datapoint:
median_abs_epsilon: int = 0
nr_prec: int = 0
comments: str = ""
proteobench_version: str = ""

# TODO do we want to save these values in the json?
# fixed_mods: [],
Expand Down Expand Up @@ -97,6 +100,7 @@ def generate_datapoint(
max_peptide_length=user_input["max_peptide_length"],
intermediate_hash=str(hashlib.sha1(intermediate.to_string().encode("utf-8")).hexdigest()),
comments=user_input["comments_for_submission"],
proteobench_version=proteobench.__version__,
)

result_datapoint.generate_id()
Expand Down

0 comments on commit fa2e446

Please sign in to comment.