Skip to content

Commit 4717d3d

Browse files
authored
Merge pull request #782 from nf-core/dev
Release PR for 3.4.0
2 parents b2377f1 + a589eff commit 4717d3d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+4225
-2455
lines changed

.nf-core.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ template:
1616
name: mag
1717
org: nf-core
1818
outdir: .
19-
version: 3.3.1
19+
version: 3.4.0

CHANGELOG.md

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

6-
## v3.3.1 - [2025-03-13]
6+
## 3.4.0 [2025-04-04]
7+
8+
### `Added`
9+
10+
- [#745](https://github.com/nf-core/mag/pull/745) - Added pipeline parameter `spades_downstreaminput` to use contigs instead of scaffolds (by @Pranjal-Bioinfo, @jfy133, @GallVp & @sateeshperi).
11+
- [#745](https://github.com/nf-core/mag/pull/745) - Added `trimmomatic` as an additional pre-processing tool (by @Pranjal-Bioinfo, @jfy133, @GallVp & @sateeshperi).
12+
- [#745](https://github.com/nf-core/mag/pull/745) - Added parameters for `concoct/cut_up_fasta.py` including `bin_concoct_chunksize`, `bin_concoct_overlap` and `bin_concoct_donotconcatlast` (by @Pranjal-Bioinfo, @jfy133, @GallVp & @sateeshperi).
13+
- [#777](https://github.com/nf-core/mag/pull/777) - Improved input validation through additional JSON keywords and error messages (by @agusinac)
14+
15+
### `Changed`
16+
17+
- [#774](https://github.com/nf-core/mag/pull/774) - Update CheckM2 to v1.1.0 and default database (by @dialvarezs).
18+
19+
### `Fixed`
20+
21+
- [#726](https://github.com/nf-core/mag/pull/726) - Fix formatting errors to follow Nextflow best practice (by @dialvarezs).
22+
- [#769](https://github.com/nf-core/mag/pull/769) - Fix megahit not emitting correct filenames due to suboptimal arguments ordering (reported and fix by @IceGreb)
23+
- [#771](https://github.com/nf-core/mag/pull/771) - Fix misspecified checkm2 database parameter check (reported by @dpelegri and fix by @jfy133)
24+
25+
### `Dependencies`
26+
27+
| Tool | Previous version | New version |
28+
| ------- | ---------------- | ----------- |
29+
| CheckM2 | 1.0.2 | 1.1.0 |
30+
| SPAdes | 4.0.0 | 4.1.0 |
31+
32+
### `Deprecated`
33+
34+
## v3.3.1 - [2025-02-13]
735

836
### `Added`
937

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
> [!NOTE]
3434
> If you are new to Nextflow and nf-core, please refer to [this page](https://nf-co.re/docs/usage/installation) on how to set-up Nextflow. Make sure to [test your setup](https://nf-co.re/docs/usage/introduction#how-to-run-a-pipeline) with `-profile test` before running the workflow on actual data.
3535
36-
By default, the pipeline currently performs the following: it supports both short and long reads, quality trims the reads and adapters with [fastp](https://github.com/OpenGene/fastp) and [Porechop](https://github.com/rrwick/Porechop), and performs basic QC with [FastQC](https://www.bioinformatics.babraham.ac.uk/projects/fastqc/), and merge multiple sequencing runs.
36+
By default, the pipeline currently performs the following: it supports both short and long reads, quality trims the reads and adapters with [fastp](https://github.com/OpenGene/fastp), [AdapterRemoval](https://github.com/MikkelSchubert/adapterremoval), or [trimmomatic](https://github.com/usadellab/Trimmomatic) and [Porechop](https://github.com/rrwick/Porechop), and performs basic QC with [FastQC](https://www.bioinformatics.babraham.ac.uk/projects/fastqc/), and merges multiple sequencing runs.
3737

3838
The pipeline then:
3939

@@ -97,6 +97,7 @@ Other code contributors include:
9797
- [@willros](https://github.com/willros)
9898
- [Adam Rosenbaum](https://github.com/muabnezor)
9999
- [Diego Alvarez](https://github.com/dialvarezs)
100+
- [Nikolaos Vergoulidis](https://github.com/IceGreb)
100101

101102
Long read processing was inspired by [caspargross/HybridAssembly](https://github.com/caspargross/HybridAssembly) written by Caspar Gross [@caspargross](https://github.com/caspargross)
102103

assets/multiqc_config.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
report_comment: >
2-
This report has been generated by the <a href="https://github.com/nf-core/mag/releases/tag/3.3.1"
2+
This report has been generated by the <a href="https://github.com/nf-core/mag/releases/tag/3.4.0"
33
target="_blank">nf-core/mag</a> analysis pipeline. For information about how to
4-
interpret these results, please see the <a href="https://nf-co.re/mag/3.3.1/docs/output"
4+
interpret these results, please see the <a href="https://nf-co.re/mag/3.4.0/docs/output"
55
target="_blank">documentation</a>.
66
report_section_order:
77
"nf-core-mag-methods-description":
@@ -28,6 +28,7 @@ run_modules:
2828
- prokka
2929
- porechop
3030
- filtlong
31+
- trimmomatic
3132

3233
## Module order
3334
top_modules:
@@ -37,6 +38,7 @@ top_modules:
3738
- "*trimmed*"
3839
- "fastp"
3940
- "adapterremoval"
41+
- "trimmomatic"
4042
- "porechop"
4143
- "filtlong"
4244
- "fastqc":
@@ -137,6 +139,8 @@ extra_fn_clean_exts:
137139
- "phix_removed"
138140
- "centrifuge_kreport"
139141
- "_fastp"
142+
- "_trimmomatic_trim.log"
143+
- "_trimmomatic_trim"
140144

141145
## Prettification
142146
custom_logo: "mag_logo_mascot_light.png"

assets/schema_input.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,42 @@
1010
"sample": {
1111
"type": "string",
1212
"pattern": "^\\S+$",
13-
"meta": ["id"]
13+
"meta": ["id"],
14+
"errorMessage": "Sample needs to be string or integer with no spaces!"
1415
},
1516
"run": {
1617
"type": ["string", "integer"],
1718
"pattern": "^\\S+$",
1819
"meta": ["run"],
19-
"unique": ["sample"]
20+
"unique": ["sample"],
21+
"errorMessage": "Run needs to be string or integer with no spaces!"
2022
},
2123
"group": {
2224
"type": ["string", "integer"],
2325
"pattern": "^\\S+$",
24-
"meta": ["group"]
26+
"meta": ["group"],
27+
"errorMessage": "Group needs to be string or integer with no spaces!"
2528
},
2629
"short_reads_1": {
2730
"type": "string",
2831
"format": "file-path",
2932
"exists": true,
30-
"pattern": "^\\S+\\.f(ast)?q\\.gz$"
33+
"pattern": "^\\S+\\.f(ast)?q\\.gz$",
34+
"errorMessage": "short_reads_1 needs to be a file path with no spaces.\n\nFile needs to exist!"
3135
},
3236
"short_reads_2": {
3337
"type": "string",
3438
"format": "file-path",
3539
"exists": true,
36-
"pattern": "^\\S+\\.f(ast)?q\\.gz$"
40+
"pattern": "^\\S+\\.f(ast)?q\\.gz$",
41+
"errorMessage": "short_reads_2 needs to be a file path with no spaces.\n\nFile needs to exist!"
3742
},
3843
"long_reads": {
3944
"type": "string",
4045
"format": "file-path",
4146
"exists": true,
42-
"pattern": "^\\S+\\.f(ast)?q\\.gz$"
47+
"pattern": "^\\S+\\.f(ast)?q\\.gz$",
48+
"errorMessage": "long_reads needs to be a file path with no spaces.\n\nFile needs to exist!"
4349
}
4450
},
4551
"required": ["sample", "group", "short_reads_1"]

conf/modules.config

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,25 @@ process {
4747
tag = { "${meta.id}_run${meta.run}" }
4848
}
4949

50+
withName: TRIMMOMATIC {
51+
ext.args = "LEADING:30 TRAILING:30 SLIDINGWINDOW:4:20 MINLEN:35"
52+
publishDir = [
53+
[
54+
path: { "${params.outdir}/QC_shortreads/trimmomatic/${meta.id}" },
55+
mode: params.publish_dir_mode,
56+
pattern: "*_trim.log",
57+
],
58+
[
59+
path: { "${params.outdir}/QC_shortreads/trimmomatic/${meta.id}" },
60+
mode: params.publish_dir_mode,
61+
pattern: "*.fastq.gz",
62+
enabled: params.save_clipped_reads,
63+
],
64+
]
65+
ext.prefix = { "${meta.id}_run${meta.run}_trimmomatic" }
66+
tag = { "${meta.id}_run${meta.run}" }
67+
}
68+
5069
withName: ADAPTERREMOVAL_PE {
5170
ext.args = [
5271
"--minlength ${params.reads_minlength}",
@@ -620,6 +639,14 @@ process {
620639
]
621640
}
622641

642+
withName: CONCOCT_CUTUPFASTA {
643+
ext.args = [
644+
"-c ${params.bin_concoct_chunksize}",
645+
"-o ${params.bin_concoct_overlap}",
646+
params.bin_concoct_donotconcatlast ? "" : "--merge_last",
647+
].join(' ').trim()
648+
}
649+
623650
withName: 'CONCOCT_.*' {
624651
publishDir = [
625652
[

conf/test_ancient_dna.config

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ process {
1515
resourceLimits = [
1616
cpus: 4,
1717
memory: '15.GB',
18-
time: '1.h'
18+
time: '1.h',
1919
]
2020
}
2121

@@ -28,6 +28,8 @@ params {
2828
input = params.pipelines_testdata_base_path + 'mag/samplesheets/samplesheet.csv'
2929
centrifuge_db = params.pipelines_testdata_base_path + 'mag/test_data/minigut_cf.tar.gz'
3030
kraken2_db = params.pipelines_testdata_base_path + 'mag/test_data/minigut_kraken.tgz'
31+
clip_tool = 'trimmomatic'
32+
spades_downstreaminput = 'contigs'
3133
skip_krona = true
3234
min_length_unbinned_contigs = 1
3335
max_unbinned_contigs = 2

docs/images/mag_metromap_dark.png

6.44 KB
Loading

docs/images/mag_metromap_dark.svg

Lines changed: 14 additions & 9 deletions
Loading

docs/images/mag_metromap_light.png

5.9 KB
Loading

docs/images/mag_metromap_light.svg

Lines changed: 11 additions & 6 deletions
Loading

docs/images/mag_workflow.png

12.8 KB
Loading

0 commit comments

Comments
 (0)