Skip to content

Commit

Permalink
update rho growth normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
abearab authored Dec 11, 2023
1 parent decc0c0 commit de465e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion screenpro/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ def calculateDrugScreen(self, t0, untreated, treated, db_untreated, db_treated,
n_reps=self.n_reps,
math=self.math, test=self.test, score_level=score_level
)
# TO-DO: warning / error if db_untreated and db_treated are too close, i.e. growth_rate ~= 0.
rho_name, rho = ps.runPhenoScore(
self.adata, cond1=untreated, cond2=treated, growth_rate=np.abs(db_untreated - (1 - db_treated)),
self.adata, cond1=untreated, cond2=treated, growth_rate=np.abs(db_untreated - db_treated),
n_reps=self.n_reps,
math=self.math, test=self.test, score_level=score_level
)
Expand Down

0 comments on commit de465e0

Please sign in to comment.