Skip to content

Commit c4102a9

Browse files
committed
corrected errors around novae execution and tangram map training data row indices
1 parent 87f08bc commit c4102a9

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

sopa/utils/annotation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,8 @@ def run_group(self, level: int = 0, indices_sp=None, indices_sc=None, output_dir
343343
# Save as CSV
344344
from pathlib import Path
345345
output_path = Path(output_dir) / f"split_{i}_training_data.csv"
346-
train_df.to_csv(output_path, index=False)
346+
train_df.index.name = 'gene_name'
347+
train_df.to_csv(output_path, index=True)
347348
log.info(f"Saved training data to {output_path}")
348349
else:
349350
log.warning("No training data found in ad_map.uns['train_genes_df']")

workflow/Snakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ rule novae:
288288
model = config["novae"]["model"],
289289
zero_shot = "True" if config["novae"]["zero_shot"] else "False",
290290
num_workers = config["novae"]["num_workers"],
291-
script = "workflow/src/run_novae.py",
291+
script = "src/run_novae.py",
292292
shell:
293293
"""
294294
python {params.script} {params.sdata_path} {params.model} {params.radius} {params.zero_shot} {params.num_workers}

0 commit comments

Comments
 (0)