Skip to content

Commit

Permalink
make conda dependencies more granular
Browse files Browse the repository at this point in the history
  • Loading branch information
priesgo committed Nov 20, 2021
1 parent 4532efa commit a44185b
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 11 deletions.
10 changes: 0 additions & 10 deletions environment.yml

This file was deleted.

4 changes: 4 additions & 0 deletions modules/01_prepare_bam.nf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ process PREPARE_BAM {
memory "${params.prepare_bam_memory}"
tag "${name}"

conda (params.enable_conda ? "bioconda::gatk4=4.2.0.0" : null)

input:
tuple val(name), val(type), file(bam)

Expand Down Expand Up @@ -57,6 +59,8 @@ process INDEX_BAM {
memory "${params.index_memory}"
tag "${name}"

conda (params.enable_conda ? "bioconda::gatk4=4.2.0.0" : null)

input:
tuple val(name), val(bam_name), val(type), file(bam)

Expand Down
2 changes: 2 additions & 0 deletions modules/02_mark_duplicates.nf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ process MARK_DUPLICATES {
tag "${name}"
publishDir "${params.output}/${name}/metrics", mode: "copy", pattern: "*.dedup_metrics.txt"

conda (params.enable_conda ? "bioconda::gatk4=4.2.0.0" : null)

input:
tuple val(name), val(bam_name), val(type), file(bam)

Expand Down
4 changes: 4 additions & 0 deletions modules/03_metrics.nf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ process HS_METRICS {
tag "${name}"
publishDir "${params.output}/${name}/metrics", mode: "copy"

conda (params.enable_conda ? "bioconda::gatk4=4.2.0.0" : null)

input:
tuple val(name), val(bam_name), val(type), file(bam), file(bai)

Expand Down Expand Up @@ -44,6 +46,8 @@ process METRICS {
tag "${name}"
publishDir "${params.output}/${name}/metrics", mode: "copy"

conda (params.enable_conda ? "bioconda::gatk4=4.2.0.0" : null)

input:
tuple val(name), val(bam_name), val(type), file(bam), file(bai)

Expand Down
4 changes: 4 additions & 0 deletions modules/04_realignment_around_indels.nf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ process REALIGNMENT_AROUND_INDELS {
tag "${name}"
publishDir "${params.output}/${name}", mode: "copy", pattern: "*.RA.intervals"

// NOTE: this dependency is fixed to GATK 3 as the realignment around indels is not anymore maintained in GATK 4
// but still for some reason for GATK 3 to work the dependency to GATK 4 is needed
conda (params.enable_conda ? "bioconda::gatk4=4.2.0.0 bioconda::gatk=3.8" : null)

input:
tuple val(name), val(bam_name), val(type), file(bam), file(bai)

Expand Down
2 changes: 2 additions & 0 deletions modules/05_bqsr.nf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ process BQSR {
publishDir "${params.output}/${name}", mode: "copy"
tag "${name}"

conda (params.enable_conda ? "bioconda::gatk4=4.2.0.0" : null)

input:
tuple val(name), val(bam_name), val(type), file(bam), file(bai)

Expand Down
2 changes: 1 addition & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

profiles {
conda { process.conda = "$baseDir/environment.yml" }
conda { params.enable_conda = true }
debug { process.beforeScript = 'echo $HOSTNAME' }
test {
params.input_files = "test_data/test_input.txt"
Expand Down

0 comments on commit a44185b

Please sign in to comment.