Skip to content

Commit

Permalink
Updated comments for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
yujie-jiang committed Jan 15, 2022
1 parent 684fd36 commit 6873f6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/penalty_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@

#------------------------------------------------------------#
# The automated lambda selection pipeline is as follows:
# 1) Run CliP with 11 different lambda: [0.01, 0.03, 0.05, 0.075, 0.1, 0.125, 0.15, 0.175, 0.2, 0.225, 0.25].
# 1) Run CliP with 11 different lambdas: [0.01, 0.03, 0.05, 0.075, 0.1, 0.125, 0.15, 0.175, 0.2, 0.225, 0.25].
# 2) For each sample, compute a score: A = |(max(CP)−purity)/purity|.
# If there are one or more results that satisfy A < 0.01, we select the largest lambda associated with those results.
# (We observed A<0.01 in more than 70% of the PCAWG samples)
# If all scores A are greater than 0.01, we choose the lambda associated with the smallest A.
#------------------------------------------------------------#

Expand Down
1 change: 1 addition & 0 deletions src/postprocess.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ least.ratio <- 0.05
SAFETY <- 0.05
N.REP <- 30
RATIO.TH <- 0.90
# The 11 lambda values in the default lambda list
Lambda_list = c(0.01, 0.03, 0.05, 0.075, 0.1, 0.125, 0.15, 0.175, 0.2, 0.225, 0.25)

if(!dir.exists(output.prefix)){
Expand Down

0 comments on commit 6873f6b

Please sign in to comment.