Skip to content

Commit

Permalink
fill na
Browse files Browse the repository at this point in the history
related to #12
  • Loading branch information
abearab committed Dec 22, 2023
1 parent 4ebbd24 commit 24eba66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion screenpro/phenoScore.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def runPhenoScore(adata, cond1, cond2, math, test, score_level,
# Calculate the adjusted p-values using the Benjamini-Hochberg method
if p_values is None:
raise ValueError('p_values is None')
_, adj_pvalues, _, _ = multipletests(p_values, alpha=0.05, method='fdr_bh')
_, adj_pvalues, _, _ = multipletests(p_values.fillna(1), alpha=0.05, method='fdr_bh')
# get targets
targets = adata.var.index.str.split('_[-,+]_').str[0].to_list()
# combine results into a dataframe
Expand Down

0 comments on commit 24eba66

Please sign in to comment.