Skip to content

Commit

Permalink
Better find input files
Browse files Browse the repository at this point in the history
  • Loading branch information
sminot committed Nov 14, 2023
1 parent c27aa13 commit feb5d0d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion deduplicate.nf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ workflow {

// Get all of the files in the specified folder
Channel
.fromPath("${gene_folder}/*")
.fromPath("${gene_folder}/**")
.ifEmpty { error "Cannot find any files at ${gene_folder}/*" }
.set { gene_ch }

Expand Down
4 changes: 2 additions & 2 deletions download_genes.nf
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ workflow {

// Parse the CSV and raise an error if the path is not valid
Channel
.fromPath( params.genome_csv )
.ifEmpty { error "Cannot find any file at '${params.genome_csv}'" }
.fromPath( params.genome_csv.split(',').toList() )
.ifEmpty { error "Cannot find any file(s) at '${params.genome_csv}'" }
.set { gene_manifest }

// Download the genes for each genome
Expand Down
4 changes: 2 additions & 2 deletions download_genomes.nf
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ workflow {

// Parse the CSV and raise an error if the path is not valid
Channel
.fromPath( params.genome_csv )
.ifEmpty { error "Cannot find any file at '${params.genome_csv}'" }
.fromPath( params.genome_csv.split(',').toList() )
.ifEmpty { error "Cannot find any file(s) at '${params.genome_csv}'" }
.set { genome_manifest }

// Download the genomes for each genome
Expand Down

0 comments on commit feb5d0d

Please sign in to comment.