diff --git a/chipseq_main.nf b/chipseq_main.nf index c3aacd4..7b27f06 100644 --- a/chipseq_main.nf +++ b/chipseq_main.nf @@ -99,7 +99,7 @@ process BWA_MEM_FILTER { tuple val(meta), path("${meta.id}.filtered.bam"), path("${meta.id}.filtered.bam.bai"), path("${meta.id}.flagstat.tsv"), emit: bam script: - def ref = params.bwa_index_prefix ?: params.reference_fasta + def ref = params.bwa_resolved_reference ?: resolveBwaReference() """ bwa mem -t ${task.cpus} ${ref} ${r1} ${r2} \ | samtools collate -@ ${task.cpus} -O -u - \ diff --git a/chipseq_nextflow.config b/chipseq_nextflow.config index b105748..7248775 100644 --- a/chipseq_nextflow.config +++ b/chipseq_nextflow.config @@ -49,6 +49,9 @@ process { withName: BAM_COMPARE { cpus = 8 } + withName: BAM_COMPARE { + cpus = 8 + } } profiles {