Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswzou committed Sep 17, 2024
1 parent 6a47854 commit 5cbd78e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions screenpro/assays/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,9 @@ def _calculateGrowthFactor(self, untreated, treated, db_rate_col):
Returns:
pd.DataFrame: growth factor dataframe
"""
if 'condition' not in adat.obs.columns or 'replicate' not in adat.obs.columns:
raise ValueError("The 'condition' and 'replicate' columns must exist in 'adata.obs'.")

adat = self.adata.copy()
if 'condition' not in adat.obs.columns or 'replicate' not in adat.obs.columns:
raise ValueError("The 'condition' and 'replicate' columns self.adata.")
growth_factors = []
# calculate growth factor for gamma, tau, or rho score per replicates
for replicate in adat.obs.replicate.unique():
Expand Down Expand Up @@ -211,7 +210,7 @@ def calculateDrugScreen(self, score_level: Literal["compare_reps", "compare_guid
unexpected behavior when the user relies on filterLowCounts, we specify both the count_filter_threshold and
count_filter_type arguments of runPhenoScore explicitly here.
If doubling infomation is provided, self.adata.obs must have a 'condition' and a 'replicate' column.
self.adata.obs must have a 'condition' column. If doubling infomation is provided, it also needs a 'replicate' column.
Args:
score_level (str): name of the score level. Must be "compare_reps" or "compare_guides"
Expand Down

0 comments on commit 5cbd78e

Please sign in to comment.