Skip to content

Commit

Permalink
Merge pull request #100 from chriswzou/bug-fix-for-filter-threshold
Browse files Browse the repository at this point in the history
Filter threshold bug fix
  • Loading branch information
abearab authored Jan 4, 2025
2 parents 418ebc4 + e8e5d97 commit 77c79f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion screenpro/assays/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,18 +248,21 @@ def calculateDrugScreen(self, score_level: Literal["compare_reps", "compare_guid
self.adata, cond_ref=t0, cond_test=untreated, growth_rate=db_untreated,
n_reps=self.n_reps,
test=self.test, score_level=score_level,
count_filter_threshold=count_filter_threshold,
count_filter_type=count_filter_type
**kwargs
)
self._add_phenotype_results(run_name, f'gamma:{gamma_name}', gamma)

for tr in treated:
_, db_tr, db_diff = self._getTreatmentDoublingRate(untreated, tr, db_rate_col)

if t0 != None and type(t0) == str:
tau_name, tau = runPhenoScore(
self.adata, cond_ref=t0, cond_test=tr, growth_rate=db_tr,
n_reps=self.n_reps,
test=self.test, score_level=score_level,
count_filter_threshold=count_filter_threshold,
count_filter_type=count_filter_type
**kwargs
)
self._add_phenotype_results(run_name, f'tau:{tau_name}', tau)
Expand Down

0 comments on commit 77c79f0

Please sign in to comment.