File: fix_canu_detection.patch

package info (click to toggle)
circlator 1.5.6-13
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 12,088 kB
  • sloc: python: 4,472; sh: 132; makefile: 9
file content (22 lines) | stat: -rw-r--r-- 923 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
From f0404184d11c67a984fe8e2b450a3854ac88b38b Mon Sep 17 00:00:00 2001
From: Jason Stajich <jasonstajich.phd@gmail.com>
Date: Tue, 13 Apr 2021 12:34:15 -0700
Subject: Canu version is reported with capital
Origin: upstream, https://github.com/sanger-pathogens/circlator/commit/3e223bee8ae581582b3b50c920aa08d94fcdc7bd

canu version in 2.1.1 is 'canu 2.1.1' need to support lowercase
---
 circlator/external_progs.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- circlator.orig/circlator/external_progs.py
+++ circlator/circlator/external_progs.py
@@ -19,7 +19,7 @@
     'prodigal': ('-v', re.compile(r'^Prodigal V([0-9\.]+):')),
     'samtools': ('', re.compile(r'Version: (\d+\.\d+[\.\d]*)')),
     'spades': ('-v', re.compile(r'v.?([0-9][0-9\.]+)')),
-    'canu': ('-version', re.compile(r'^Canu \D*([\d][\d\.]+)')),
+    'canu': ('-version', re.compile(r'^[Cc]anu \D*([\d][\d\.]+)')),
 }
 
 min_versions = {