Skip to content

Commit

Permalink
test update
Browse files Browse the repository at this point in the history
  • Loading branch information
Gibbsdavidl committed Nov 29, 2023
1 parent d98d865 commit 9605ed3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions gssnng/test/example_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@
print("scoring cells")
score_cells.with_gene_sets(
adata=q,
gene_set_file="data/cibersort_lm22.gmt",
gene_set_file="gssnng/gssnng/test/data/cibersort_lm22.gmt",
groupby='louvain',
smooth_mode='connectivity',
recompute_neighbors=0,
score_method="singscore",
method_params={'normalization':'theoretical'},
score_method="geneset_overlap",
method_params= {'threshold': 0, 'fraction': False},
ranked=True,
cores=8
)

t1 = time.time()

print("MEAN SCORES for the T.cells.CD8.up signature")
print("MEAN GENESET OVERLAP for the T.cells.CD8.up signature")
print(q.obs.groupby(['louvain'])['T.cells.CD8.up'].mean().reset_index())

print('end time: ' + str(t1))
Expand All @@ -38,19 +38,19 @@
print("scoring cells ... again!")
score_cells.with_gene_sets(
adata=q,
gene_set_file="data/cibersort_lm22.gmt",
gene_set_file="gssnng/gssnng/test/data/cibersort_lm22.gmt",
groupby='louvain',
smooth_mode='connectivity',
recompute_neighbors=0,
score_method="singscore",
method_params={'normalization':'theoretical'},
score_method="summed_up",
method_params={},
ranked=True,
cores=8
)

t2 = time.time()

print("MEAN SCORES for the T.cells.CD8.up signature")
print("MEAN SUMMED_UP SCORES for the T.cells.CD8.up signature")
print(q.obs.groupby(['louvain'])['T.cells.CD8.up'].mean().reset_index())

print('end time: ' + str(t1))
Expand Down

0 comments on commit 9605ed3

Please sign in to comment.