Skip to content

Commit

Permalink
Save changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Ramirez committed Nov 5, 2024
1 parent 73801ef commit 865bf00
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
4 changes: 2 additions & 2 deletions pf2/figures/figureA11.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def makeFigure():
add_obs(X, "patient_category")
combine_cell_types(X)

cmp1 = 2; cmp2 = 25
pos1 = True; pos2 = False
cmp1 = 8; cmp2 = 31
pos1 = False; pos2 = True
threshold = 0.5
X = add_obs_cmp_both_label(X, cmp1, cmp2, pos1, pos2, top_perc=threshold)
X = add_obs_label(X, cmp1, cmp2)
Expand Down
8 changes: 4 additions & 4 deletions pf2/figures/figureA14.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ def makeFigure():
add_obs(X, "patient_category")
combine_cell_types(X)

cmp1 = 2; cmp2 = 25
pos1 = True; pos2 = False
cmp1 = 8; cmp2 = 31
pos1 = False; pos2 = True
threshold = 0.5
X = add_obs_cmp_both_label(X, cmp1, cmp2, pos1, pos2, top_perc=threshold)
print(np.count_nonzero(X.obs["Cmp2"]))
print(np.count_nonzero(X.obs["Cmp25"]))
print(np.count_nonzero(X.obs["Cmp8"]))
print(np.count_nonzero(X.obs["Cmp31"]))
print(np.count_nonzero(X.obs["Both"]))

X = add_obs_label(X, cmp1, cmp2)
Expand Down
15 changes: 12 additions & 3 deletions pf2/figures/figureA15.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,22 @@ def makeFigure():
add_obs(X, "patient_category")
combine_cell_types(X)

cmp1 = 7; cmp2 = 10; cmp3 = 47
pos1 = True; pos2 = True; pos3 = True
cmp1 = 19; cmp2 = 26; cmp3 = 34
pos1 = False; pos2 = True; pos3 = True
threshold = 0.5
X = add_obs_cmp_both_label_three(X, cmp1, cmp2, cmp3, pos1, pos2, pos3, top_perc=threshold)

print(np.count_nonzero(X.obs["Cmp19"]))
print(np.count_nonzero(X.obs["Cmp26"]))
print(np.count_nonzero(X.obs["Cmp34"]))
print(np.count_nonzero(X.obs["Both"]))

X = add_obs_label_three(X, cmp1, cmp2, cmp3)

colors = ["black", "fuchsia", "turquoise", "slateblue", "gainsboro"]
print(np.unique(X.obs["Label"], return_counts=True))

# colors = ["black", "fuchsia", "turquoise", "slateblue", "gainsboro"]
colors = ["fuchsia", "turquoise", "slateblue", "gainsboro"]
pal = []
for i in colors:
pal.append(mcolors.CSS4_COLORS[i])
Expand Down

0 comments on commit 865bf00

Please sign in to comment.