Skip to content

Commit

Permalink
code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahOuologuem committed Apr 22, 2024
1 parent 98822f5 commit f5771cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions panpipes/python_scripts/run_scanpyQC_spatial.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
customgenes = pd.read_csv(args.customgenesfile)
if not {'group', 'feature'}.issubset(customgenes.columns):
L.error("The custom genes file needs to have both columns, 'group' and 'feature'.")
sys.exit.error("The custom genes file needs to have both columns, 'group' and 'feature'.")
sys.exit("The custom genes file needs to have both columns, 'group' and 'feature'.")
custom_cat = list(set(customgenes['group'].tolist()))
for cc in custom_cat:
cat_dic[cc] = customgenes.loc[customgenes["group"] == cc,"feature"].tolist()
Expand Down Expand Up @@ -140,7 +140,7 @@
ccgenes = pd.read_csv(args.ccgenes, sep='\t')
if not {'cc_phase', 'gene_name'}.issubset(ccgenes.columns):
L.error("The cell cycle genes file needs to have both columns, 'cc_phase' and 'gene_name'.")
sys.exit.error("The cell cycle genes file needs to have both columns, 'cc_phase' and 'gene_name'.")
sys.exit("The cell cycle genes file needs to have both columns, 'cc_phase' and 'gene_name'.")
sgenes = ccgenes[ccgenes["cc_phase"] == "s"]["gene_name"].tolist()
g2mgenes = ccgenes[ccgenes["cc_phase"] == "g2m"]["gene_name"].tolist()
L.info("Calculating cell cycle scores")
Expand Down

0 comments on commit f5771cf

Please sign in to comment.