Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
abearab authored Dec 15, 2023
1 parent 76ad61a commit 7eb3477
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions screenpro/tests/test_phenoScore.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
from screenpro.phenoScore import runPhenoScore

def test_runPhenoScore():
# create test data
adata = sc.datasets.pbmc68k_reduced()
assert isinstance(adata, sc.AnnData)
adata.obs['condition'] = ['A'] * int(adata.obs.shape[0] / 2) + ['B'] * int(adata.obs.shape[0] / 2)
adata.var['targetType'] = ['gene'] * adata.var.shape[0]
adata.layers['seq_depth_norm'] = np.random.randint(0, 100, size=(adata.n_obs, adata.n_vars))
pass
# # create test data
# adata = sc.datasets.pbmc68k_reduced()
# assert isinstance(adata, sc.AnnData)
# adata.obs['condition'] = ['A'] * int(adata.obs.shape[0] / 2) + ['B'] * int(adata.obs.shape[0] / 2)
# adata.var['targetType'] = ['gene'] * adata.var.shape[0]
# adata.layers['seq_depth_norm'] = np.random.randint(0, 100, size=(adata.n_obs, adata.n_vars))

# run function
# result_name, result = runPhenoScore(
Expand All @@ -30,4 +31,4 @@ def test_runPhenoScore():
# # check result dataframe
# assert isinstance(result, pd.DataFrame)
# assert result.shape == (adata.n_vars, 4)
# assert set(result.columns) == {'target', 'score', 't-test pvalue', 'BH adj_pvalue'}
# assert set(result.columns) == {'target', 'score', 't-test pvalue', 'BH adj_pvalue'}

0 comments on commit 7eb3477

Please sign in to comment.