Skip to content

Commit a2c9f87

Browse files
authored
Merge pull request #1032 from nf-core/patch
DSL1: Release 2.5.0 - Bopfingen
2 parents 631f18e + f3cde49 commit a2c9f87

File tree

10 files changed

+1906
-1715
lines changed

10 files changed

+1906
-1715
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
strategy:
2424
matrix:
2525
# Nextflow versions: check pipeline minimum and current latest
26-
nxf_ver: ['20.07.1', '22.10.6']
26+
nxf_ver: ["20.07.1", "22.10.6"]
2727
steps:
2828
- name: Check out pipeline code
2929
uses: actions/checkout@v2
@@ -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.7
40+
run: docker build --no-cache . -t nfcore/eager:2.5.0
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.7
46+
docker tag nfcore/eager:dev nfcore/eager:2.5.0
4747
4848
- name: Install Nextflow
4949
env:
@@ -58,7 +58,7 @@ jobs:
5858
run: |
5959
git clone --single-branch --branch eager https://github.com/nf-core/test-datasets.git data
6060
- name: DELAY to try address some odd behaviour with what appears to be a conflict between parallel htslib jobs leading to CI hangs
61-
run: |
61+
run: |
6262
if [[ $NXF_VER = '' ]]; then sleep 1200; fi
6363
- name: BASIC Run the basic pipeline with directly supplied single-end FASTQ
6464
run: |
@@ -74,7 +74,7 @@ jobs:
7474
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --save_reference
7575
- name: REFERENCE Basic workflow, with supplied indices
7676
run: |
77-
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --bwa_index 'results/reference_genome/bwa_index/BWAIndex/' --fasta_index 'https://github.com/nf-core/test-datasets/blob/eager/reference/Mammoth/Mammoth_MT_Krause.fasta.fai'
77+
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --bwa_index 'results/reference_genome/bwa_index/BWAIndex/' --fasta_index 'https://github.com/nf-core/test-datasets/blob/eager/reference/Mammoth/Mammoth_MT_Krause.fasta.fai'
7878
- name: REFERENCE Run the basic pipeline with FastA reference with `fna` extension
7979
run: |
8080
nextflow run ${GITHUB_WORKSPACE} -profile test_tsv_fna,docker
@@ -107,7 +107,7 @@ jobs:
107107
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --clip_adapters_list 'https://github.com/nf-core/test-datasets/raw/eager/databases/adapters/adapter-list.txt'
108108
- name: ADAPTER LIST Run the basic pipeline using an adapter list, skipping adapter removal
109109
run: |
110-
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --clip_adapters_list 'https://github.com/nf-core/test-datasets/raw/eager/databases/adapters/adapter-list.txt' --skip_adapterremoval
110+
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --clip_adapters_list 'https://github.com/nf-core/test-datasets/raw/eager/databases/adapters/adapter-list.txt' --skip_adapterremoval
111111
- name: POST_AR_FASTQ_TRIMMING Run the basic pipeline post-adapterremoval FASTQ trimming
112112
run: |
113113
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --run_post_ar_trimming
@@ -141,6 +141,9 @@ jobs:
141141
- name: BEDTOOLS Test bedtools feature annotation
142142
run: |
143143
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --run_bedtools_coverage --anno_file 'https://github.com/nf-core/test-datasets/raw/eager/reference/Mammoth/Mammoth_MT_Krause.gff3'
144+
- name: MAPDAMAGE2 damage calculation
145+
run: |
146+
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --damage_calculation_tool 'mapdamage'
144147
- name: GENOTYPING_HC Test running GATK HaplotypeCaller
145148
run: |
146149
nextflow run ${GITHUB_WORKSPACE} -profile test_tsv_fna,docker --run_genotyping --genotyping_tool 'hc' --gatk_hc_out_mode 'EMIT_ALL_ACTIVE_SITES' --gatk_hc_emitrefconf 'BP_RESOLUTION'
@@ -193,11 +196,11 @@ jobs:
193196
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --run_bam_filtering --bam_unmapped_type 'fastq' --run_metagenomic_screening --metagenomic_tool 'malt' --database "/home/runner/work/eager/eager/databases/malt/" --metagenomic_complexity_filter
194197
- name: MALTEXTRACT Download resource files
195198
run: |
196-
mkdir -p databases/maltextract
197-
for i in ncbi.tre ncbi.map; do wget https://github.com/rhuebler/HOPS/raw/0.33/Resources/"$i" -P databases/maltextract/; done
199+
mkdir -p databases/maltextract
200+
for i in ncbi.tre ncbi.map; do wget https://github.com/rhuebler/HOPS/raw/0.33/Resources/"$i" -P databases/maltextract/; done
198201
- name: MALTEXTRACT Basic with MALT plus MaltExtract
199202
run: |
200-
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --run_bam_filtering --bam_unmapped_type 'fastq' --run_metagenomic_screening --metagenomic_tool 'malt' --database "/home/runner/work/eager/eager/databases/malt" --run_maltextract --maltextract_ncbifiles "/home/runner/work/eager/eager/databases/maltextract/" --maltextract_taxon_list 'https://raw.githubusercontent.com/nf-core/test-datasets/eager/testdata/Mammoth/maltextract/MaltExtract_list.txt'
203+
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --run_bam_filtering --bam_unmapped_type 'fastq' --run_metagenomic_screening --metagenomic_tool 'malt' --database "/home/runner/work/eager/eager/databases/malt" --run_maltextract --maltextract_ncbifiles "/home/runner/work/eager/eager/databases/maltextract/" --maltextract_taxon_list 'https://raw.githubusercontent.com/nf-core/test-datasets/eager/testdata/Mammoth/maltextract/MaltExtract_list.txt'
201204
- name: METAGENOMIC Run the basic pipeline but with unmapped reads going into Kraken
202205
run: |
203206
nextflow run ${GITHUB_WORKSPACE} -profile test_tsv_kraken,docker --run_bam_filtering --bam_unmapped_type 'fastq'
@@ -216,4 +219,4 @@ jobs:
216219
nextflow run ${GITHUB_WORKSPACE} -profile test_tsv_humanbam,docker --skip_fastqc --skip_adapterremoval --skip_deduplication --skip_qualimap --skip_preseq --skip_damage_calculation --run_mtnucratio
217220
- name: RESCALING Run basic pipeline with basic pipeline but with mapDamage rescaling of BAM files. Note this will be slow
218221
run: |
219-
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --run_mapdamage_rescaling --run_genotyping --genotyping_tool hc --genotyping_source 'rescaled'
222+
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --run_mapdamage_rescaling --run_genotyping --genotyping_tool hc --genotyping_source 'rescaled'

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,25 @@
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.5.0] - Bopfingen - 2023-11-03
7+
8+
### `Added`
9+
10+
- [#1020](https://github.com/nf-core/eager/issues/1020) Added mapDamage2 as an alternative for damage calculation.
11+
12+
### `Fixed`
13+
14+
- [#1017](https://github.com/nf-core/eager/issues/1017) Fixed file name collision in niche cases with multiple libraries of multiple UDG treatments.
15+
- [#1024](https://github.com/nf-core/eager/issues/1024) `multiqc_general_stats.txt` is now generated even if the table is a beeswarm plot in the report.
16+
- [#655](https://github.com/nf-core/eager/issues/655) Updated RG tags for all mappers. RG-id now includes Sample as well as Library ID. Added `LB:` tag with the library ID.
17+
- [#1031](https://github.com/nf-core/eager/issues/1031) Always index fasta regardless of mapper. This ensures that DamageProfiler and genotyping processes get submitted when using bowtie2 and not providing a fasta index.
18+
19+
### `Dependencies`
20+
21+
- `multiqc`: 1.14 -> 1.16
22+
23+
### `Deprecated`
24+
625
## [2.4.7] - 2023-05-16
726

827
### `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.7/bin:$PATH
10+
ENV PATH /opt/conda/envs/nf-core-eager-2.5.0/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.7 > nf-core-eager-2.4.7.yml
13+
RUN conda env export --name nf-core-eager-2.5.0 > nf-core-eager-2.5.0.yml

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515

1616
[![Get help on Slack](http://img.shields.io/badge/slack-nf--core%20%23eager-4A154B?logo=slack)](https://nfcore.slack.com/channels/eager)
1717

18+
>[!IMPORTANT]
19+
> nf-core/eager versions 2.* are only compatible with Nextflow versions up to 22.10.6!
20+
1821
## Introduction
1922

2023
<!-- nf-core: Write a 1-2 sentence summary of what data the pipeline is for and what it does -->
@@ -28,7 +31,7 @@ The pipeline is built using [Nextflow](https://www.nextflow.io), a workflow tool
2831

2932
## Quick Start
3033

31-
1. Install [`nextflow`](https://nf-co.re/usage/installation) (`>=20.07.1`)
34+
1. Install [`nextflow`](https://nf-co.re/usage/installation) (`>=20.07.1` && `<=22.10.6`)
3235

3336
2. Install any of [`Docker`](https://docs.docker.com/engine/installation/), [`Singularity`](https://www.sylabs.io/guides/3.0/user-guide/), [`Podman`](https://podman.io/), [`Shifter`](https://nersc.gitlab.io/development/shifter/how-to-use/) or [`Charliecloud`](https://hpc.github.io/charliecloud/) for full pipeline reproducibility _(please only use [`Conda`](https://conda.io/miniconda.html) as a last resort; see [docs](https://nf-co.re/usage/configuration#basic-configuration-profiles))_
3437

@@ -52,7 +55,7 @@ The pipeline is built using [Nextflow](https://www.nextflow.io), a workflow tool
5255
nextflow clean -f -k
5356
```
5457

55-
See [usage docs](https://nf-co.re/eager/docs/usage.md) for all of the available options when running the pipeline.
58+
See [usage docs](https://nf-co.re/eager/usage) for all of the available options when running the pipeline.
5659

5760
**N.B.** You can see an overview of the run in the MultiQC report located at `./results/MultiQC/multiqc_report.html`
5861

@@ -69,7 +72,7 @@ By default the pipeline currently performs the following:
6972
* Sequencing adapter removal, paired-end data merging (`AdapterRemoval`)
7073
* Read mapping to reference using (`bwa aln`, `bwa mem`, `CircularMapper`, or `bowtie2`)
7174
* Post-mapping processing, statistics and conversion to bam (`samtools`)
72-
* Ancient DNA C-to-T damage pattern visualisation (`DamageProfiler`)
75+
* Ancient DNA C-to-T damage pattern visualisation (`DamageProfiler` or `mapDamage`)
7376
* PCR duplicate removal (`DeDup` or `MarkDuplicates`)
7477
* Post-mapping statistics and BAM quality control (`Qualimap`)
7578
* Library Complexity Estimation (`preseq`)
@@ -133,9 +136,9 @@ The nf-core/eager pipeline comes with documentation about the pipeline: [usage](
133136
* [Pipeline installation](https://nf-co.re/usage/local_installation)
134137
* [Adding your own system config](https://nf-co.re/usage/adding_own_config)
135138
* [Reference genomes](https://nf-co.re/usage/reference_genomes)
136-
3. [Running the pipeline](https://nf-co.re/eager/docs/usage.md)
139+
3. [Running the pipeline](https://nf-co.re/eager/usage)
137140
* This includes tutorials, FAQs, and troubleshooting instructions
138-
4. [Output and how to interpret the results](https://nf-co.re/eager/docs/output.md)
141+
4. [Output and how to interpret the results](https://nf-co.re/eager/output)
139142

140143
## Credits
141144

@@ -246,7 +249,7 @@ In addition, references of tools and data used in this pipeline are as follows:
246249
* **Bowtie2** Langmead, B. and Salzberg, S. L. 2012 Fast gapped-read alignment with Bowtie 2. Nature methods, 9(4), p. 357–359. doi: [10.1038/nmeth.1923](https:/dx.doi.org/10.1038/nmeth.1923).
247250
* **sequenceTools** Stephan Schiffels (Unpublished). Download: [https://github.com/stschiff/sequenceTools](https://github.com/stschiff/sequenceTools)
248251
* **EigenstratDatabaseTools** Thiseas C. Lamnidis (Unpublished). Download: [https://github.com/TCLamnidis/EigenStratDatabaseTools.git](https://github.com/TCLamnidis/EigenStratDatabaseTools.git)
249-
* **mapDamage2** Jónsson, H., et al 2013. mapDamage2.0: fast approximate Bayesian estimates of ancient DNA damage parameters. Bioinformatics , 29(13), 1682–1684. [https://doi.org/10.1093/bioinformatics/btt193](https://doi.org/10.1093/bioinformatics/btt193)
252+
* **mapDamage** Jónsson, H., et al 2013. mapDamage2.0: fast approximate Bayesian estimates of ancient DNA damage parameters. Bioinformatics , 29(13), 1682–1684. [https://doi.org/10.1093/bioinformatics/btt193](https://doi.org/10.1093/bioinformatics/btt193)
250253
* **BBduk** Brian Bushnell (Unpublished). Download: [https://sourceforge.net/projects/bbmap/](sourceforge.net/projects/bbmap/)
251254
252255
## Data References

assets/multiqc_config.yaml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ run_modules:
1717
- gatk
1818
- kraken
1919
- malt
20+
- mapdamage
2021
- mtnucratio
2122
- multivcfanalyzer
2223
- picard
@@ -91,6 +92,7 @@ top_modules:
9192
path_filters:
9293
- "*.preseq"
9394
- "damageprofiler"
95+
- "mapdamage"
9496
- "mtnucratio"
9597
- "qualimap"
9698
- "sexdeterrmine"
@@ -155,6 +157,11 @@ table_columns_visible:
155157
3 Prime2: False
156158
mean_readlength: True
157159
median: True
160+
mapDamage:
161+
5 Prime1: True
162+
5 Prime2: True
163+
3 Prime1: False
164+
3 Prime2: False
158165
mtnucratio:
159166
mt_nuc_ratio: True
160167
QualiMap:
@@ -240,10 +247,15 @@ table_columns_placement:
240247
3 Prime2: 730
241248
mean_readlength: 740
242249
median: 750
250+
mapDamage:
251+
5 Prime1: 760
252+
5 Prime2: 765
253+
3 Prime1: 770
254+
3 Prime2: 775
243255
mtnucratio:
244-
mtreads: 760
245-
mt_cov_avg: 770
246-
mt_nuc_ratio: 780
256+
mtreads: 780
257+
mt_cov_avg: 785
258+
mt_nuc_ratio: 790
247259
QualiMap:
248260
mapped_reads: 800
249261
mean_coverage: 805

0 commit comments

Comments
 (0)