Skip to content

Commit

Permalink
Change: Limit mldm runtime and remove iteration increment code
Browse files Browse the repository at this point in the history
  • Loading branch information
dileep-kishore committed Nov 17, 2021
1 parent 0a17ca2 commit 789f030
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
1 change: 1 addition & 0 deletions micone/pipelines/configs/process.config
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ process {
}
withLabel: 'mldm' {
conda = "${params.conda_dir}/micone-mldm"
time = '4hours'
}
withLabel: 'cozine' {
conda = "${params.conda_dir}/micone-cozine"
Expand Down
9 changes: 1 addition & 8 deletions micone/pipelines/templates/network_inference/direct/mldm.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,7 @@ sample.md <- read_sample_data(sample_metadata) # Must be purely numeric or categ

mldmNetwork <- mLDM(X=otu_t, M=sample.md, Z_mean=Z_mean, max_iteration=max_iteration, verbose=TRUE)

optimal <- mldmNetwork\$optimal
if (length(optimal) > 0) {
otuNetwork <- mldmNetwork\$optimal[[9]]
} else {
new_max_iteration <- max_iteration * 10
mldmNetwork <- mLDM(X=otu_t, M=sample.md, Z_mean=Z_mean, max_iteration=new_max_iteration, verbose=TRUE)
otuNetwork <- mldmNetwork\$optimal[[9]]
}
otuNetwork <- mldmNetwork\$optimal[[9]]

rownames(otuNetwork) <- rownames(otu)
colnames(otuNetwork) <- rownames(otu)
Expand Down

0 comments on commit 789f030

Please sign in to comment.