Skip to content

Commit

Permalink
update random states
Browse files Browse the repository at this point in the history
  • Loading branch information
armaan-abraham committed Feb 6, 2024
1 parent 9b8e988 commit e655695
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ddmc/figures/figureMS2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion ddmc/figures/figureMS7.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e655695

Please sign in to comment.