Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow num_chains to be set in the config #148

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions modules/msk/phylowgs/multievolve/environment.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/environment-schema.json
name: "phylowgs_multievolve"
channels:
- conda-forge
- bioconda
- defaults
dependencies:
- "PHYLOWGS"
- "PHYLOWGS=NA"
2 changes: 0 additions & 2 deletions modules/msk/phylowgs/multievolve/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@ process PHYLOWGS_MULTIEVOLVE {
script:
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
def threads = task.cpus * 2

"""
python2 \\
/usr/bin/multievolve.py \\
${args} \\
--num-chains ${threads} \\
--ssms ${ssm_data} \\
--cnvs ${cnv_data}

Expand Down
51 changes: 26 additions & 25 deletions modules/msk/phylowgs/multievolve/meta.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/meta-schema.json
name: "phylowgs_multievolve"
description: Create trees from input from phylowgs_createinput
keywords:
Expand All @@ -13,34 +12,36 @@ tools:
tool_dev_url: "https://github.com/mskcc/phylowgs"

input:
- meta:
type: map
description: |
Groovy Map containing sample information
e.g. `[ id:'sample1', single_end:false ]`
- cnv_data:
type: file
description: copy number input data from phylowgs_createinput
pattern: "*.{txt}"
- ssm_data:
type: file
description: mutation input data from phylowgs_createinput
pattern: "*.{txt}"
- - meta:
type: map
description: |
Groovy Map containing sample information
e.g. `[ id:'sample1', single_end:false ]`
- cnv_data:
type: file
description: copy number input data from phylowgs_createinput
pattern: "*.{txt}"
- ssm_data:
type: file
description: mutation input data from phylowgs_createinput
pattern: "*.{txt}"

output:
- meta:
type: map
description: |
Groovy Map containing sample information
e.g. `[ id:'sample1', single_end:false ]`
- trees:
type: file
description: Zip file containing the completed trees
pattern: "trees.zip"
- meta:
type: map
description: |
Groovy Map containing sample information
e.g. `[ id:'sample1', single_end:false ]`
- chains/trees.zip:
type: file
description: Zip file containing the completed trees
pattern: "trees.zip"
- versions:
type: file
description: File containing software versions
pattern: "versions.yml"
- versions.yml:
type: file
description: File containing software versions
pattern: "versions.yml"

authors:
- "@nikhil"
Expand Down
2 changes: 1 addition & 1 deletion modules/msk/phylowgs/multievolve/tests/nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ params {
process {
publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" }
withName: 'PHYLOWGS_MULTIEVOLVE' {
ext.args = '--burnin-samples 2 --mcmc-samples 2'
ext.args = '--num-chains 2 --burnin-samples 2 --mcmc-samples 2'
}
}
Loading