Skip to content

Commit e3ea7c9

Browse files
authored
Adjust for the fact that zipped empty files have file size > 0 (#72)
* Adjust for the fact that zipped empty files have file size > 0 * Add comment about empty gzip file size
1 parent 6183e68 commit e3ea7c9

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed

main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def get_project_and_reads(run_folder) {
8989
Channel
9090
.fromPath("${run_folder}/${params.demultiplexer_outdir}/**.fastq.gz")
9191
.filter { file -> file.name =~ /.*_[^I]\d_001\.fastq\.gz$/ }
92-
.filter { file -> file.size() > 0 }
92+
.filter { file -> file.size() > 100 } // An empty gzip file is ~ 50 bytes in size
9393
.ifEmpty { error "Error: No fastq files found under ${run_folder}/!" }
9494
.map { file ->
9595
file.toString().indexOf('Undetermined') > 0 ?
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)