Skip to content

Commit

Permalink
fix id map generator (openproblems-bio#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcannood authored May 31, 2024
1 parent 1dcfdba commit 3addfba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/task/process_dataset/generate_id_map/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
## VIASH END

print(">> Load dataset", flush=True)
input_test = ad.read_h5ad(par["input_test"])
de_test_h5ad = ad.read_h5ad(par["de_test_h5ad"])

print(">> Generate id_map file", flush=True)
id_map = input_test.obs[["sm_name", "cell_type"]]
id_map = de_test_h5ad.obs[["sm_name", "cell_type"]]
id_map.reset_index(drop=True, inplace=True)
id_map.reset_index(names="id", inplace=True)

print(">> Save data", flush=True)
id_map.to_csv(par["output_id_map"], index=False)
id_map.to_csv(par["id_map"], index=False)

0 comments on commit 3addfba

Please sign in to comment.