Skip to content

Commit

Permalink
fix incorrect column name
Browse files Browse the repository at this point in the history
  • Loading branch information
picciama committed Dec 4, 2024
1 parent 10eef24 commit f1eb84e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drevalpy/datasets/curvecurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def ic50(front, back, slope, pec50):
front = model_params_df["Front"].values
back = model_params_df["Back"].values
slope = model_params_df["Slope"].values
pec50 = model_params_df["pEC50"].values
pec50 = model_params_df["pEC50_curvecurator"].values

model_params_df["IC50_curvecurator"] = ic50(front, back, slope, pec50)

Expand Down Expand Up @@ -197,7 +197,7 @@ def postprocess(output_folder: str | Path, dataset_name: str):
)
fitted_curve_data[["cell_line_id", "drug_id"]] = fitted_curve_data.Name.str.split("|", expand=True)
fitted_curve_data["EC50_curvecurator"] = np.power(
10, -fitted_curve_data["pEC50"].values
10, -fitted_curve_data["pEC50_curvecurator"].values
) # in CurveCurator 10^-pEC50 = EC50
_calc_ic50(fitted_curve_data)
fitted_curve_data.to_csv(output_folder / f"{dataset_name}.csv", index=None)
Expand Down

0 comments on commit f1eb84e

Please sign in to comment.