File: bwa-output.patch

package info (click to toggle)
python-biopython 1.85%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 126,380 kB
  • sloc: xml: 1,047,995; python: 332,722; ansic: 16,944; sql: 1,208; makefile: 142; sh: 81
file content (55 lines) | stat: -rw-r--r-- 2,517 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Description: test_BWA_tool.py: update to bwa 0.7.19 header.
 This change fixes/worksaround the following test failure, which has
 begun to appear with the introduction of bwa 0.7.19:
 .
        Traceback (most recent call last):
          File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/Tests/test_BWA_tool.py", line 203, in test_mem
            self.assertTrue(
            ~~~~~~~~~~~~~~~^
                headline.startswith("@SQ"),
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                f"Error generating sam files:\n{cmdline}\nOutput starts:{headline}",
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            )
            ^
        AssertionError: False is not true : Error generating sam files:
        bwa mem BWA/human_g1k_v37_truncated.fasta BWA/HNSCC1_1_truncated.fastq BWA/HNSCC1_2_truncated.fastq
        Output starts:@HD       VN:1.5  SO:unsorted     GO:query
 .
 This test failure occurs in a portion that has been obsoleted upstream,
 therefore no forwarding was possible in that regard.
Author: Étienne Mollier <emollier@debian.org>
Bug: https://github.com/biopython/biopython/pull/5063
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1114298
Last-Update: 2025-09-13
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- python-biopython.orig/Tests/test_BWA_tool.py
+++ python-biopython/Tests/test_BWA_tool.py
@@ -161,7 +161,7 @@
             with open(self.samfile1) as handle:
                 headline = handle.readline()
             self.assertTrue(
-                headline.startswith("@SQ"),
+                headline.startswith("@SQ") or headline.startswith("@HD"),
                 f"Error generating sam files:\n{cmdline}\nOutput starts:{headline}",
             )
 
@@ -184,7 +184,7 @@
             with open(self.samfile) as handle:
                 headline = handle.readline()
             self.assertTrue(
-                headline.startswith("@SQ"),
+                headline.startswith("@SQ") or headline.startswith("@HD"),
                 f"Error generating sam files:\n{cmdline}\nOutput starts:{headline}",
             )
 
@@ -201,7 +201,7 @@
             with open(self.samfile) as handle:
                 headline = handle.readline()
             self.assertTrue(
-                headline.startswith("@SQ"),
+                headline.startswith("@SQ") or headline.startswith("@HD"),
                 f"Error generating sam files:\n{cmdline}\nOutput starts:{headline}",
             )