diff --git a/modules/nf-core/fast2q/main.nf b/modules/nf-core/fast2q/main.nf index d64ed807355..be47a20ecb0 100644 --- a/modules/nf-core/fast2q/main.nf +++ b/modules/nf-core/fast2q/main.nf @@ -22,7 +22,7 @@ process FAST2Q { script: def args = task.ext.args ?: '' def input_file = "--s ${fastq}" ?: '' - def library_file = library ? "--g ${library}" : '' + def library_file = (library instanceof Path && library.exists()) ? "--g ${library}" : '' """ mkdir -p ./2FAST2Q_output