Skip to content

Commit 779ded1

Browse files
umap for all mouse
1 parent a075756 commit 779ded1

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

novae_benchmark/pan_tissue_umap.py

+11-3
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,28 @@ def compute_and_save_umap(adata: AnnData, res_path: Path):
4040
adata.write_h5ad(res_path / f"adata_{adata.n_obs}_{run_ID}.h5ad")
4141

4242
colors = []
43-
for key in ["domain", "tissue", "technology", "novae_domains_15", "novae_domains_20", "novae_domains_25"]:
43+
for key in [
44+
"domain",
45+
"tissue",
46+
"technology",
47+
"novae_domains_15",
48+
"novae_domains_20",
49+
"novae_domains_22",
50+
"novae_domains_25",
51+
]:
4452
if key in adata.obs:
4553
colors.append(key)
4654

4755
for color in colors:
4856
sc.pl.umap(adata, color=color, show=False, title=title_dict.get(color, color))
4957
sns.despine(offset=10, trim=True)
50-
plt.savefig(res_path / f"umap_{adata.n_obs}_{color}.png", bbox_inches="tight", dpi=300)
58+
plt.savefig(res_path / f"umap_{adata.n_obs}_{color}_{run_ID}.png", bbox_inches="tight", dpi=300)
5159

5260

5361
def main():
5462
# data_path = Path("/Users/quentinblampey/dev/novae/data/results/dry-wood-40")
5563
# res_path = Path("/Users/quentinblampey/dev/novae_benchmark/figures")
56-
data_path = Path("/gpfs/workdir/blampeyq/novae/data/results/gallant-water-184")
64+
data_path = Path("/gpfs/workdir/blampeyq/novae/data/results/still-surf-209")
5765
res_path = Path("/gpfs/workdir/blampeyq/novae_benchmark/figures")
5866

5967
adata_full = sc.read_h5ad(data_path / "adata_conc.h5ad")

0 commit comments

Comments
 (0)