Skip to content

Commit

Permalink
Alter figure1
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Ramirez committed Sep 16, 2024
1 parent 9de5e69 commit c71033c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions spatialpf2/figures/commonFuncs/plotFactors.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ def plot_condition_factors(
pd.set_option("display.max_rows", None)
yt = pd.Series(np.unique(data.obs["Condition"]))
X = np.array(data.uns["Pf2_A"])

print(X)
X = np.log10(X)

print(X)
X -= np.median(X, axis=0)
X /= np.std(X, axis=0)

print(X)

ind = reorder_table(X)
X = X[ind]
Expand Down
2 changes: 1 addition & 1 deletion spatialpf2/figures/figure1.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
def makeFigure():
ax, f = getSetup((10, 12), (2, 2))

rank = 20
rank = 2
X = import_HTAN()

X = pf2(X, rank, doEmbedding=False)
Expand Down

0 comments on commit c71033c

Please sign in to comment.