Skip to content

Commit

Permalink
Skip input files which don't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
sminot committed Jan 30, 2024
1 parent 76a3453 commit 4eea9f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions download_genes.nf
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,13 @@ workflow {
// Parse the CSV path(s), if provided
Channel
.fromPath( params.genome_csv.split(',').toList() )
.filter { it.exists() }
.set { gene_manifest_csv }

// Parse the TSV path(s), if provided
Channel
.fromPath( params.genome_tsv.split(',').toList() )
.filter { it.exists() }
.set { gene_manifest_tsv }

// Download the genes for each genome
Expand Down
2 changes: 2 additions & 0 deletions download_genomes.nf
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,13 @@ workflow {
// Parse the CSV path(s), if provided
Channel
.fromPath( params.genome_csv.split(',').toList() )
.filter { it.exists() }
.set { genome_manifest_csv }

// Parse the TSV path(s), if provided
Channel
.fromPath( params.genome_tsv.split(',').toList() )
.filter { it.exists() }
.set { genome_manifest_tsv }

// Download the genomes for each genome
Expand Down

0 comments on commit 4eea9f4

Please sign in to comment.