Skip to content

Commit

Permalink
Update eval.nf
Browse files Browse the repository at this point in the history
add file checks
  • Loading branch information
Krannich479 authored May 6, 2024
1 parent 91f6bd5 commit caebc78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eval.nf
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ workflow{

if (params.callsets_dir != "" && params.sample_sheet == "") {

ch_callsets = Channel.fromPath(params.callsets_dir + "/" + "*.{vcf,vcf.gz}")
ch_callsets = Channel.fromPath(params.callsets_dir + "/" + "*.{vcf,vcf.gz}", checkIfExists: true)
ch_callsets
.map { it -> tuple(it.toString().split('/')[-1].tokenize('_')[1].replaceFirst('.vcf', '').replaceFirst('.gz', '').toInteger(), file(it)) }
.set {ch_callsets}
// ch_callsets.view()

ch_truthsets = Channel.fromPath(params.outdir + "/" + "simulated_hap*.vcf")
ch_truthsets = Channel.fromPath(params.outdir + "/" + "simulated_hap*.vcf", checkIfExists: true)
ch_truthsets
.map { it -> tuple(it.toString().split('/')[-1].tokenize('_')[1].replaceFirst('hap', '').replaceFirst('.vcf', '').toInteger(), file(it)) }
.set {ch_truthsets}
Expand Down

0 comments on commit caebc78

Please sign in to comment.