diff --git a/tools/minimap2_reference_bam/minimap2_reference_bam.rule.snakefile b/tools/minimap2_reference_bam/minimap2_reference_bam.rule.snakefile
index 3e4a57bd88c25f8962db5377723467b9e195794a..f07c980825db9348279d11210a8704016f7df868 100755
--- a/tools/minimap2_reference_bam/minimap2_reference_bam.rule.snakefile
+++ b/tools/minimap2_reference_bam/minimap2_reference_bam.rule.snakefile
@@ -16,7 +16,7 @@ rule <step_name>__minimap2_reference_bam:
         "-t {threads} "
         "{input.fasta} "
         "{input.read} "
-        "| samtools view -hb 2 > {log} "
+        "| samtools view -hb 2> {log} "
         "| samtools sort -@ {threads} > {output.reads_mapping} 2>> {log} &&"
         " samtools index -@ {threads} {output.reads_mapping} 2>> {log}"