Skip to content

Commit

Permalink
Adding .collect() to Channel.fromPath(params.fasta) and Channel.fromP…
Browse files Browse the repository at this point in the history
…ath(params.fasta_fai)
  • Loading branch information
asp8200 committed Mar 12, 2024
1 parent 1bf5222 commit 62b4ea4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ bcftools_annotations = params.bcftools_annotations ? Channel.fromPath(para
bcftools_header_lines = params.bcftools_header_lines ? Channel.fromPath(params.bcftools_header_lines).collect() : Channel.empty()
cf_chrom_len = params.cf_chrom_len ? Channel.fromPath(params.cf_chrom_len) : []
dbsnp = params.dbsnp ? Channel.fromPath(params.dbsnp).collect() : Channel.value([])
fasta = params.fasta ? Channel.fromPath(params.fasta) : Channel.empty()
fasta_fai = params.fasta_fai ? Channel.fromPath(params.fasta_fai) : Channel.empty()
fasta = params.fasta ? Channel.fromPath(params.fasta).collect() : Channel.empty()
fasta_fai = params.fasta_fai ? Channel.fromPath(params.fasta_fai).collect() : Channel.empty()
germline_resource = params.germline_resource ? Channel.fromPath(params.germline_resource) : Channel.value([]) // Mutect2 does not require a germline resource, so set to optional input
known_indels = params.known_indels ? Channel.fromPath(params.known_indels).collect() : Channel.value([])
known_snps = params.known_snps ? Channel.fromPath(params.known_snps).collect() : Channel.value([])
Expand Down

0 comments on commit 62b4ea4

Please sign in to comment.