Skip to content

Commit 37e860d

Browse files
authored
Merge pull request #826 from nf-core/dev
Release PR for 2.4.2 patch
2 parents 20b0be4 + fa6f061 commit 37e860d

9 files changed

Lines changed: 34 additions & 16 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ jobs:
3737
3838
- name: Build new docker image
3939
if: env.MATCHED_FILES
40-
run: docker build --no-cache . -t nfcore/eager:2.4.1
40+
run: docker build --no-cache . -t nfcore/eager:2.4.2
4141

4242
- name: Pull docker image
4343
if: ${{ !env.MATCHED_FILES }}
4444
run: |
4545
docker pull nfcore/eager:dev
46-
docker tag nfcore/eager:dev nfcore/eager:2.4.1
46+
docker tag nfcore/eager:dev nfcore/eager:2.4.2
4747
4848
- name: Install Nextflow
4949
env:

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@
33
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
44
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
55

6+
## [2.4.2] - 2022-01-24
7+
8+
### `Added`
9+
10+
### `Fixed`
11+
12+
- [#824](https://github.com/nf-core/eager/issues/824) Fixes large memory footprint of bedtools coverage calculation.
13+
- [#822](https://github.com/nf-core/eager/issues/822) Fixed post-adapterremoval trimmed files not being lane-merged and included in downstream analyses
14+
- Fixed a couple of software version reporting commands
15+
16+
### `Dependencies`
17+
18+
### `Deprecated`
19+
620
## [2.4.1] - 2021-11-30
721

822
### `Added`

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ COPY environment.yml /
77
RUN conda env create --quiet -f /environment.yml && conda clean -a
88

99
# Add conda installation dir to PATH (instead of doing 'conda activate')
10-
ENV PATH /opt/conda/envs/nf-core-eager-2.4.1/bin:$PATH
10+
ENV PATH /opt/conda/envs/nf-core-eager-2.4.2/bin:$PATH
1111

1212
# Dump the details of the installed packages to a file for posterity
13-
RUN conda env export --name nf-core-eager-2.4.1 > nf-core-eager-2.4.1.yml
13+
RUN conda env export --name nf-core-eager-2.4.2 > nf-core-eager-2.4.2.yml

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,10 @@ Those who have provided conceptual guidance, suggestions, bug reports etc.
171171
* [Işın Altınkaya](https://github.com/isinaltinkaya)
172172
* [Johan Nylander](https://github.com/nylander)
173173
* [Katerine Eaton](https://github.com/ktmeaton)
174-
* [Katrin Nägele](https://github.com/KathrinNaegele)
174+
* [Kathrin Nägele](https://github.com/KathrinNaegele)
175175
* [Luc Venturini](https://github.com/lucventurini)
176176
* [Marcel Keller](https://github.com/marcel-keller)
177+
* [Megan Michel](https://github.com/meganemichel)
177178
* [Pierre Lindenbaum](https://github.com/lindenb)
178179
* [Pontus Skoglund](https://github.com/pontussk)
179180
* [Raphael Eisenhofer](https://github.com/EisenRa)

bin/scrape_software_versions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
"FastQC": ["v_fastqc.txt", r"FastQC v(\S+)"],
1010
"MultiQC": ["v_multiqc.txt", r"multiqc, version (\S+)"],
1111
'AdapterRemoval':['v_adapterremoval.txt', r"AdapterRemoval ver. (\S+)"],
12-
'Picard MarkDuplicates': ['v_markduplicates.txt', r"(\S+)"],
12+
'Picard MarkDuplicates': ['v_markduplicates.txt', r"Version:(\S+)"],
1313
'Samtools': ['v_samtools.txt', r"samtools (\S+)"],
1414
'Preseq': ['v_preseq.txt', r"Version: (\S+)"],
1515
'BWA': ['v_bwa.txt', r"Version: (\S+)"],
1616
'Bowtie2': ['v_bowtie2.txt', r"bowtie2-([0-9]+\.[0-9]+\.[0-9]+) -fdebug"],
1717
'Qualimap': ['v_qualimap.txt', r"QualiMap v.(\S+)"],
18-
'GATK HaplotypeCaller': ['v_gatk.txt', r" v(\S+)"],
18+
'GATK HaplotypeCaller': ['v_gatk.txt', r"The Genome Analysis Toolkit \(GATK\) v(\S+)"],
1919
'GATK UnifiedGenotyper': ['v_gatk3.txt', r"(\S+)"],
2020
'bamUtil' : ['v_bamutil.txt', r"Version: (\S+);"],
2121
'fastP': ['v_fastp.txt', r"([\d\.]+)"],

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# You can use this file to create a conda environment for this pipeline:
22
# conda env create -f environment.yml
3-
name: nf-core-eager-2.4.1
3+
name: nf-core-eager-2.4.2
44
channels:
55
- conda-forge
66
- bioconda

lib/NfcoreSchema.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ class NfcoreSchema {
259259
return new_params
260260
}
261261

262-
/*
262+
/*
263263
* This method tries to read a JSON params file
264264
*/
265265
private static LinkedHashMap params_load(String json_schema) {

main.nf

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,8 +1039,7 @@ if ( params.skip_collapse ){
10391039

10401040
// Inline barcode removal bypass when not running it
10411041
if (params.run_post_ar_trimming) {
1042-
ch_adapterremoval_for_skip_post_ar_trimming
1043-
.dump(tag: "inline_removal_bypass")
1042+
ch_post_ar_trimming_for_lanemerge
10441043
.into { ch_inlinebarcoderemoval_for_fastqc_after_clipping; ch_inlinebarcoderemoval_for_lanemerge; }
10451044
} else {
10461045
ch_adapterremoval_for_skip_post_ar_trimming
@@ -2055,8 +2054,12 @@ process bedtools {
20552054

20562055
script:
20572056
"""
2058-
bedtools coverage -nonamecheck -a ${anno_file} -b $bam | pigz -p ${task.cpus - 1} > "${bam.baseName}".breadth.gz
2059-
bedtools coverage -nonamecheck -a ${anno_file} -b $bam -mean | pigz -p ${task.cpus - 1} > "${bam.baseName}".depth.gz
2057+
## Create genome file from bam header
2058+
samtools view -H ${bam} | grep '@SQ' | sed 's#@SQ\tSN:\\|LN:##g' > genome.txt
2059+
2060+
## Run bedtools
2061+
bedtools coverage -nonamecheck -g genome.txt -sorted -a ${anno_file} -b ${bam} | pigz -p ${task.cpus - 1} > "${bam.baseName}".breadth.gz
2062+
bedtools coverage -nonamecheck -g genome.txt -sorted -a ${anno_file} -b ${bam} -mean | pigz -p ${task.cpus - 1} > "${bam.baseName}".depth.gz
20602063
"""
20612064
}
20622065

@@ -3085,7 +3088,7 @@ process get_software_versions {
30853088
( exec 7>&1; picard MarkDuplicates --version 2>&1 >&7 | grep -v '/' >&2 ) 2> v_markduplicates.txt || true
30863089
qualimap --version &> v_qualimap.txt 2>&1 || true
30873090
preseq &> v_preseq.txt 2>&1 || true
3088-
gatk --version 2>&1 | head -n 1 > v_gatk.txt 2>&1 || true
3091+
gatk --version 2>&1 | grep '(GATK)' > v_gatk.txt 2>&1 || true
30893092
gatk3 --version 2>&1 | head -n 1 > v_gatk3.txt 2>&1 || true
30903093
freebayes --version &> v_freebayes.txt 2>&1 || true
30913094
bedtools --version &> v_bedtools.txt 2>&1 || true

nextflow.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ params {
284284

285285
// Container slug. Stable releases should specify release tag!
286286
// Developmental code should specify :dev
287-
process.container = 'nfcore/eager:2.4.1'
287+
process.container = 'nfcore/eager:2.4.2'
288288

289289
// Load base.config by default for all pipelines
290290
includeConfig 'conf/base.config'
@@ -414,7 +414,7 @@ manifest {
414414
description = 'A fully reproducible and state-of-the-art ancient DNA analysis pipeline'
415415
mainScript = 'main.nf'
416416
nextflowVersion = '>=20.07.1'
417-
version = '2.4.1'
417+
version = '2.4.2'
418418
}
419419

420420
// Function to ensure that resource requirements don't go beyond

0 commit comments

Comments
 (0)