diff --git a/spatialpf2/figures/commonFuncs/plotFactors.py b/spatialpf2/figures/commonFuncs/plotFactors.py index bf217de..98d3735 100644 --- a/spatialpf2/figures/commonFuncs/plotFactors.py +++ b/spatialpf2/figures/commonFuncs/plotFactors.py @@ -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] diff --git a/spatialpf2/figures/figure1.py b/spatialpf2/figures/figure1.py index 72ee1c7..121178b 100644 --- a/spatialpf2/figures/figure1.py +++ b/spatialpf2/figures/figure1.py @@ -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)