Skip to content

Commit

Permalink
Merge pull request #444 from JoseEspinosa/fixes
Browse files Browse the repository at this point in the history
 Fix GFFREAD when gff file provided by user (add empty map to channel) @JoseEspinosa
  • Loading branch information
JoseEspinosa authored Dec 24, 2024
2 parents 73a5304 + 3153907 commit 5908238
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- [[PR #434](https://github.com/nf-core/chipseq/pull/434)] - Prevent pipeline fails from erroneous param validation when igenomes is used.
- [[#432](https://github.com/nf-core/chipseq/issues/432)] - Fix `GFFREAD` call to have the two expected input channels.
- [[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.

### Parameters

Expand Down
4 changes: 2 additions & 2 deletions subworkflows/local/prepare_genome.nf
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ workflow PREPARE_GENOME {
} else if (gff) {
if (gff.endsWith('.gz')) {
ch_gff = GUNZIP_GFF([[:], file(gff, checkIfExists: true)]).gunzip.map { it[1] }
ch_versions = ch_versions.mix(GUNZIP_GFF.out.versions).map { [ [:], it ] }
ch_versions = ch_versions.mix(GUNZIP_GFF.out.versions)
} else {
ch_gff = Channel.value(file(gff, checkIfExists: true))
ch_gff = Channel.value(file(gff, checkIfExists: true)).map { [ [:], it ] }
}

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

0 comments on commit 5908238

Please sign in to comment.