Skip to content

Commit 5908238

Browse files
authored
Merge pull request #444 from JoseEspinosa/fixes
Fix GFFREAD when gff file provided by user (add empty map to channel) @JoseEspinosa
2 parents 73a5304 + 3153907 commit 5908238

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
- [[PR #434](https://github.com/nf-core/chipseq/pull/434)] - Prevent pipeline fails from erroneous param validation when igenomes is used.
1111
- [[#432](https://github.com/nf-core/chipseq/issues/432)] - Fix `GFFREAD` call to have the two expected input channels.
12+
- [[PR #444](https://github.com/nf-core/chipseq/pull/444)] - Add empty map to ch_gff so that when provided by the user `GFFREAD` works.
1213

1314
### Parameters
1415

subworkflows/local/prepare_genome.nf

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ workflow PREPARE_GENOME {
7171
} else if (gff) {
7272
if (gff.endsWith('.gz')) {
7373
ch_gff = GUNZIP_GFF([[:], file(gff, checkIfExists: true)]).gunzip.map { it[1] }
74-
ch_versions = ch_versions.mix(GUNZIP_GFF.out.versions).map { [ [:], it ] }
74+
ch_versions = ch_versions.mix(GUNZIP_GFF.out.versions)
7575
} else {
76-
ch_gff = Channel.value(file(gff, checkIfExists: true))
76+
ch_gff = Channel.value(file(gff, checkIfExists: true)).map { [ [:], it ] }
7777
}
7878

7979
ch_gtf = GFFREAD(ch_gff, []).gtf.map { it[1] }

0 commit comments

Comments
 (0)