Skip to content

Commit 7039a56

Browse files
committed
figure4
1 parent 0cf1e5c commit 7039a56

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

.DS_Store

0 Bytes
Binary file not shown.

scripts/ue_analysis.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import scanpy as sc
55
import anndata
66

7+
import os
8+
79
import seaborn as sns
810
import matplotlib.pyplot as plt
911
import imc_analysis as imc
@@ -57,10 +59,10 @@
5759

5860
p = 'PANEL_G'
5961
uE = 'uE_broad'
60-
# density = imc.tl.celltype_density(
61-
# adata_dict[p],
62-
# celltype = uE,
63-
# condition_keys = ['pathology', 'radio'])
62+
density = imc.tl.celltype_density(
63+
adata_dict[p],
64+
celltype = uE,
65+
condition_keys = ['pathology', 'radio'])
6466

6567
# for cond in ['pathology', 'radio']:
6668
# imc.tl.grouped_mwu_test(
@@ -76,8 +78,6 @@
7678
# pval_form=pval_form
7779
# )
7880

79-
80-
8181
# Area based comparison
8282
area = adata_dict[p].obs.groupby(['roi',uE])[['area']].sum().pivot_table(index = 'roi', columns = uE)
8383
area = area / 1e6
@@ -110,7 +110,7 @@
110110
#for p in adata_dict:
111111
celltype = 'uE_broad'
112112
p = 'PANEL_G'
113-
p = 'PANEL_H'
113+
# p = 'PANEL_H'
114114
for feat in ['pathology', 'radio']:
115115
for ct in tqdm(adata_dict[p].obs[celltype].unique()):
116116

0 commit comments

Comments
 (0)