Skip to content

Commit 3f1f59d

Browse files
authored
Merge pull request #128 from nf-core/dev
Release 1.0.1
2 parents 2430a35 + cabd2f1 commit 3f1f59d

15 files changed

Lines changed: 83 additions & 42 deletions

File tree

.nf-core.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ template:
2020
skip_features:
2121
- multiqc
2222
- igenomes
23-
version: 1.0.0
23+
version: 1.0.1

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@
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+
## v1.0.1 'Aluminium Pigeon' - [2025-03.18]
7+
8+
Bugfix release
9+
10+
### `Added`
11+
12+
### `Fixed`
13+
14+
[#125](https://github.com/nf-core/genomeassembler/pull/125) - use correct genome-size for flye and longstitch.
15+
16+
[#126](https://github.com/nf-core/genomeassembler/pull/126) - fixed wrong url for jellyfish singularity image.
17+
18+
### `Dependencies`
19+
20+
### `Deprecated`
21+
622
## v1.0.0 'Lead Pigeon' - [2025-03-07]
723

824
Initial release of nf-core/genomeassembler, created with the [nf-core](https://nf-co.re/) template.

conf/modules.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ process {
141141
withName: FLYE {
142142
ext.args = {
143143
[
144-
params.genome_size ? "--genome-size ${params.genome_size}" : '',
144+
meta.genome_size ? "--genome-size ${meta.genome_size}" : '',
145145
params.flye_args
146146
].join(" ").trim()
147147
}

modules/local/jellyfish/dump/main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ process DUMP {
22
tag "${meta.id}"
33
label 'process_medium'
44
container "${workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container
5-
? 'https://depot.galaxyproject.org/singularity/mer-jellyfish:2.3.1--h4ac6f70_0'
5+
? 'https://depot.galaxyproject.org/singularity/kmer-jellyfish:2.3.1--h4ac6f70_0'
66
: 'biocontainers/kmer-jellyfish:2.3.1--h4ac6f70_0'}"
77

88
input:

modules/local/jellyfish/histo/main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ process HISTO {
22
tag "${meta.id}"
33
label 'process_medium'
44
container "${workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container
5-
? 'https://depot.galaxyproject.org/singularity/mer-jellyfish:2.3.1--h4ac6f70_0'
5+
? 'https://depot.galaxyproject.org/singularity/kmer-jellyfish:2.3.1--h4ac6f70_0'
66
: 'biocontainers/kmer-jellyfish:2.3.1--h4ac6f70_0'}"
77

88
input:

modules/local/jellyfish/stats/main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ process STATS {
22
tag "${meta.id}"
33
label 'process_medium'
44
container "${workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container
5-
? 'https://depot.galaxyproject.org/singularity/mer-jellyfish:2.3.1--h4ac6f70_0'
5+
? 'https://depot.galaxyproject.org/singularity/kmer-jellyfish:2.3.1--h4ac6f70_0'
66
: 'biocontainers/kmer-jellyfish:2.3.1--h4ac6f70_0'}"
77

88
input:

modules/local/longstitch/main.nf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ process LONGSTITCH {
77
: 'biocontainers/longstitch:1.0.5--hdfd78af_0'}"
88

99
input:
10-
tuple val(meta), path(assembly), path(reads)
10+
tuple val(meta), path(assembly), path(reads), val(genome_size)
1111

1212
output:
1313
tuple val(meta), path("*.tigmint-ntLink-arks.fa"), emit: ntlLinks_arks_scaffolds
@@ -35,7 +35,7 @@ process LONGSTITCH {
3535
cp ${reads} reads.fq.gz
3636
fi
3737
38-
longstitch tigmint-ntLink-arks draft=assembly reads=reads t=${task.cpus} G=135e6 out_prefix=${prefix}
38+
longstitch tigmint-ntLink-arks draft=assembly reads=reads t=${task.cpus} G=${genome_size} out_prefix=${prefix}
3939
4040
mv *.tigmint-ntLink-arks.longstitch-scaffolds.fa ${prefix}.tigmint-ntLink-arks.fa
4141
sed -i 's/\\(scaffold[0-9]*\\),.*/\\1/' ${prefix}.tigmint-ntLink-arks.fa

nextflow.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ manifest {
290290
description = """Assemble genomes from long ONT or pacbio HiFi reads"""
291291
mainScript = 'main.nf'
292292
nextflowVersion = '!>=24.04.2'
293-
version = '1.0.0'
293+
version = '1.0.1'
294294
doi = '10.5281/zenodo.14986998'
295295
}
296296

ro-crate-metadata.json

Lines changed: 29 additions & 15 deletions
Large diffs are not rendered by default.

subworkflows/local/assemble/main.nf

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ workflow ASSEMBLE {
1616
ont_reads // meta, reads
1717
hifi_reads // meta, reads
1818
ch_input
19-
genomescope_out
19+
genome_size
2020
meryl_kmers
2121

2222
main:
@@ -57,13 +57,14 @@ workflow ASSEMBLE {
5757
}
5858
if (params.ont) {
5959
ont_reads.set { flye_inputs }
60-
if (params.genome_size == null && params.jellyfish) {
61-
params.genome_size = genomescope_out
62-
}
6360
}
6461
// Run flye
62+
flye_inputs
63+
.join(genome_size)
64+
.map { meta, reads, genomesize -> [meta +[ genome_size: genomesize ], reads] }
65+
.set { flye_inputs }
6566
FLYE(flye_inputs, params.flye_mode)
66-
FLYE.out.fasta.set { ch_assembly }
67+
FLYE.out.fasta.map { meta, assembly -> [meta - meta.subMap('genome_size'), assembly] }.set { ch_assembly }
6768
ch_versions = ch_versions.mix(FLYE.out.versions)
6869
}
6970
if (params.assembler == "hifiasm") {
@@ -114,12 +115,14 @@ workflow ASSEMBLE {
114115
ch_versions = ch_versions.mix(HIFIASM.out.versions).mix(GFA_2_FA.out.versions)
115116

116117
// Run flye
117-
ont_reads.set { flye_inputs }
118-
if (params.genome_size == null && params.jellyfish) {
119-
params.genome_size = genomescope_out
120-
}
118+
ont_reads
119+
.join(genome_size)
120+
.map { meta, reads, genomesize -> [[id: meta.id, genome_size: genomesize], reads]}
121+
.set { flye_inputs }
122+
121123
FLYE(flye_inputs, params.flye_mode)
122124
FLYE.out.fasta
125+
.map { meta, assembly -> [[id: meta.id], assembly] }
123126
.join(
124127
GFA_2_FA.out.contigs_fasta
125128
)
@@ -148,7 +151,7 @@ workflow ASSEMBLE {
148151
Channel.empty().set { ch_ref_bam }
149152
if (params.assembler == "flye") {
150153
flye_inputs
151-
.map { it -> [it[0], it[1]] }
154+
.map { meta, reads -> [[id: meta.id], reads] }
152155
.set { longreads }
153156
}
154157
if (params.assembler == "hifiasm" || params.assembler == "flye_on_hifiasm") {

0 commit comments

Comments
 (0)