From 999dc98d60dba05fe482ccadd51040e90a5d5020 Mon Sep 17 00:00:00 2001 From: Tyghe Vallard Date: Tue, 29 Mar 2016 00:05:07 -0400 Subject: [PATCH] Closes #221 --- ngs_mapper/tagreads.py | 2 +- ngs_mapper/tests/test_tagreads.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ngs_mapper/tagreads.py b/ngs_mapper/tagreads.py index 3c2950fe..6e36195b 100644 --- a/ngs_mapper/tagreads.py +++ b/ngs_mapper/tagreads.py @@ -22,7 +22,7 @@ class HeaderExists(Exception): pass ID_MAP = ( re.compile( '[0-9A-Z]{14}' ), re.compile( '[A-Z0-9]{5}:\d{1,}:\d{1,}' ), - re.compile( 'M[0-9]{5}:\d+:\d{9}-[A-Z0-9]{5}:\d:\d{4}:\d{4,5}:\d{4,5}' ), + re.compile( 'M[0-9]{5}:\d+:[\w\d-]+:\d:\d{4}:\d{4,5}:\d{4,5}' ), re.compile( '.*' ) ) # Read Group Template diff --git a/ngs_mapper/tests/test_tagreads.py b/ngs_mapper/tests/test_tagreads.py index b019651b..7728a503 100644 --- a/ngs_mapper/tests/test_tagreads.py +++ b/ngs_mapper/tests/test_tagreads.py @@ -86,7 +86,8 @@ def test_miseq( self ): 'M02261:4:000000000-A6FWH:1:2106:7558:24138', 'M02261:4:000000000-A6FWH:1:2106:75581:24138', 'M02261:4:000000000-A6FWH:1:2106:7558:241381', - 'M02261:14:000000000-A6481:1:1101:21903:18036' + 'M02261:14:000000000-A6481:1:1101:21903:18036', + 'M01119:15:AARB3:1:1111:23912:25198', ) for r in rn: read = self.mock_read()