Skip to content

Commit

Permalink
add check
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahOuologuem committed Feb 26, 2024
1 parent 9ba83b7 commit 8ec715a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panpipes/python_scripts/run_scanpyQC_spatial.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
percent_top = [x for x in percent_top if x <= spatial.n_vars]
sc.pp.calculate_qc_metrics(spatial, qc_vars=qc_vars, percent_top=percent_top, inplace=True)

if args.spatial_filetype == "vizgen":
if (args.spatial_filetype == "vizgen") and ("blank_genes" in spatial.obsm):
spatial.obsm["blank_genes"].to_numpy().sum() / spatial.var["total_counts"].sum() * 100

# Calculate cc scores
Expand Down

0 comments on commit 8ec715a

Please sign in to comment.