Skip to content

Commit 9ff33c7

Browse files
authored
Merge pull request #110 from nf-core/dev
Dev -> Master for 2.1.1 release
2 parents 12e9ba6 + d8e2684 commit 9ff33c7

File tree

6 files changed

+60
-5
lines changed

6 files changed

+60
-5
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
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+
## v2.1.1 - 2023-02-17
7+
8+
### Fixed
9+
10+
- [[#109](https://github.com/nf-core/nascent/pull/109)] - Fixed bug where using AWS igenomes or passing a pre-made index fails because of an update to the module expects them to have a metamap. Generation was still working.
11+
612
## v2.1.0 - 2023-02-15
713

814
### Added

nextflow.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ manifest {
215215
description = """Global Run-On sequencing analysis pipeline"""
216216
mainScript = 'main.nf'
217217
nextflowVersion = '!>=22.10.1'
218-
version = '2.1.0'
218+
version = '2.1.1'
219219
doi = '10.5281/zenodo.7245273'
220220
}
221221

subworkflows/local/prepare_genome.nf

+8-4
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,15 @@ workflow PREPARE_GENOME {
8888
//
8989
ch_bwa_index = Channel.empty()
9090
ch_dragmap = Channel.empty()
91+
// TODO Turn this into a switch
9192
if ('bwa' in prepare_tool_indices) {
9293
if (params.bwa_index) {
9394
if (params.bwa_index.endsWith('.tar.gz')) {
9495
ch_bwa_index = UNTAR_BWA_INDEX ( params.bwa_index ).untar
9596
ch_versions = ch_versions.mix(UNTAR_BWA_INDEX.out.versions)
9697
} else {
97-
ch_bwa_index = file(params.bwa_index)
98+
// TODO Give the meta from basename or genome?
99+
ch_bwa_index = [ [meta: "Genome"], file(params.bwa_index) ]
98100
}
99101
} else {
100102
ch_bwa_index = BWA_INDEX ( [ [:], ch_fasta ] ).index
@@ -106,7 +108,8 @@ workflow PREPARE_GENOME {
106108
ch_bwa_index = UNTAR_BWA_INDEX ( [ [:], params.bwamem2_index ] ).untar
107109
ch_versions = ch_versions.mix(UNTAR_BWA_INDEX.out.versions)
108110
} else {
109-
ch_bwa_index = file(params.bwamem2_index)
111+
// TODO Give the meta from basename or genome?
112+
ch_bwa_index = [ [meta: "Genome"], file(params.bwamem2_index) ]
110113
}
111114
} else {
112115
ch_bwa_index = BWAMEM2_INDEX ( [ [:], ch_fasta ] ).index
@@ -115,10 +118,11 @@ workflow PREPARE_GENOME {
115118
} else if ('dragmap' in prepare_tool_indices) {
116119
if (params.dragmap) {
117120
if (params.dragmap.endsWith('.tar.gz')) {
118-
ch_bwa_index = UNTAR_DRAGMAP_INDEX ( params.dragmap ).untar
121+
ch_dragmap = UNTAR_DRAGMAP_INDEX ( params.dragmap ).untar
119122
ch_versions = ch_versions.mix(UNTAR_DRAGMAP_INDEX.out.versions)
120123
} else {
121-
ch_bwa_index = file(params.dragmap)
124+
// TODO Give the meta from basename or genome?
125+
ch_dragmap = [ [meta: "Genome"], file(params.dragmap) ]
122126
}
123127
} else {
124128
ch_dragmap = DRAGMAP_HASHTABLE( [ [:], ch_fasta ] ).hashmap

tests/pipeline/references.nf.test

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
def igenomes_base = 's3://ngi-igenomes/igenomes'
2+
3+
nextflow_pipeline {
4+
5+
name "Test passing references"
6+
script "main.nf"
7+
8+
// https://github.com/nf-core/nascent/issues/106
9+
test("Should work with BWA Index") {
10+
// FIXME PINTS Fails because it doesn't find anything.
11+
config 'tests/pipeline/skip_pints.config'
12+
when {
13+
params {
14+
outdir = "$outputDir"
15+
aligner = "bwa"
16+
// TODO Update these to human
17+
bwa_index = "${igenomes_base}/Saccharomyces_cerevisiae/Ensembl/R64-1-1/Sequence/BWAIndex/version0.6.0/"
18+
fasta = "${igenomes_base}/Saccharomyces_cerevisiae/Ensembl/R64-1-1/Sequence/WholeGenomeFasta/genome.fa"
19+
gtf = "${igenomes_base}/Saccharomyces_cerevisiae/Ensembl/R64-1-1/Annotation/Genes/genes.gtf"
20+
}
21+
}
22+
23+
then {
24+
assert workflow.success
25+
assert snapshot(
26+
workflow.trace.tasks().size(),
27+
).match()
28+
}
29+
30+
}
31+
32+
}
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"Should work with BWA Index": {
3+
"content": [
4+
128
5+
],
6+
"timestamp": "2023-02-16T23:30:58+0000"
7+
}
8+
}

tests/pipeline/skip_pints.config

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
process {
2+
withName: PINTS_CALLER {
3+
ext.when = false
4+
}
5+
}

0 commit comments

Comments
 (0)