Weird... I'm trying to fix <https://github.com/nf-...
# modules
e
Weird... I'm trying to fix https://github.com/nf-core/modules/issues/7961 with the below patch, but now tests fail with different md5 (???), any insight on why?
Copy code
diff --git a/modules/nf-core/fastp/main.nf b/modules/nf-core/fastp/main.nf
index 1342741d5..44e7599ea 100644
--- a/modules/nf-core/fastp/main.nf
+++ b/modules/nf-core/fastp/main.nf
@@ -37,11 +37,11 @@ process FASTP {
     // Use single ended for interleaved. Add --interleaved_in in config.
     if ( task.ext.args?.contains('--interleaved_in') ) {
         """
-        [ ! -f  ${prefix}.fastq.gz ] && ln -sf $reads ${prefix}.fastq.gz
+        [ ! -f  ${prefix}.input.fastq.gz ] && ln -sf $reads ${prefix}.input.fastq.gz
 
         fastp \\
             --stdout \\
-            --in1 ${prefix}.fastq.gz \\
+            --in1 ${prefix}.input.fastq.gz \\
             --thread $task.cpus \\
             --json ${prefix}.fastp.json \\
             --html ${prefix}.fastp.html \\
@@ -58,10 +58,10 @@ process FASTP {
         """
     } else if (meta.single_end) {
         """
-        [ ! -f  ${prefix}.fastq.gz ] && ln -sf $reads ${prefix}.fastq.gz
+        [ ! -f  ${prefix}.input.fastq.gz ] && ln -sf $reads ${prefix}.input.fastq.gz
 
         fastp \\
-            --in1 ${prefix}.fastq.gz \\
+            --in1 ${prefix}.input.fastq.gz \\
             $out_fq1 \\
             --thread $task.cpus \\
             --json ${prefix}.fastp.json \\
@@ -79,11 +79,11 @@ process FASTP {
     } else {
         def merge_fastq = save_merged ? "-m --merged_out ${prefix}.merged.fastq.gz" : ''
         """
-        [ ! -f  ${prefix}_1.fastq.gz ] && ln -sf ${reads[0]} ${prefix}_1.fastq.gz
-        [ ! -f  ${prefix}_2.fastq.gz ] && ln -sf ${reads[1]} ${prefix}_2.fastq.gz
+        [ ! -f  ${prefix}.input_1.fastq.gz ] && ln -sf ${reads[0]} ${prefix}.input_1.fastq.gz
+        [ ! -f  ${prefix}.input_2.fastq.gz ] && ln -sf ${reads[1]} ${prefix}.input_2.fastq.gz
         fastp \\
-            --in1 ${prefix}_1.fastq.gz \\
-            --in2 ${prefix}_2.fastq.gz \\
+            --in1 ${prefix}.input_1.fastq.gz \\
+            --in2 ${prefix}.input_2.fastq.gz \\
             $out_fq1 \\
             $out_fq2 \\
             --json ${prefix}.fastp.json \\