From e65569529ecd78b63eabf6926d50c959c5d6484b Mon Sep 17 00:00:00 2001 From: Armaan Abraham Date: Tue, 6 Feb 2024 09:48:33 -0800 Subject: [PATCH] update random states --- ddmc/figures/figureMS2.py | 2 +- ddmc/figures/figureMS7.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ddmc/figures/figureMS2.py b/ddmc/figures/figureMS2.py index 8a58f130..40654f1f 100644 --- a/ddmc/figures/figureMS2.py +++ b/ddmc/figures/figureMS2.py @@ -12,7 +12,7 @@ def makeFigure(): # Increase number of peptides and components for actual figure p_signal = CPTAC().get_p_signal() - model = DDMC(n_components=16, seq_weight=100).fit(p_signal) + model = DDMC(n_components=16, seq_weight=100, random_state=5).fit(p_signal) ax, f = getSetup((9, 9), (4, 4)) clusters, pssms = model.get_pssms(PsP_background=False) diff --git a/ddmc/figures/figureMS7.py b/ddmc/figures/figureMS7.py index 9b869b2b..29d5e2ba 100644 --- a/ddmc/figures/figureMS7.py +++ b/ddmc/figures/figureMS7.py @@ -23,7 +23,7 @@ def makeFigure(): p_signal = cptac.get_p_signal() stk11m = cptac.get_mutations(["STK11.mutation.status"])["STK11.mutation.status"] - model = DDMC(n_components=30, seq_weight=100).fit(p_signal) + model = DDMC(n_components=30, seq_weight=100, random_state=5).fit(p_signal) centers = model.transform(as_df=True) centers = centers.loc[stk11m.index] plot_p_signal_across_clusters_and_binary_feature(