Matches can have trailing AGCT in addition to a number
authorDiane Trout <diane@caltech.edu>
Sat, 8 May 2010 00:33:58 +0000 (00:33 +0000)
committerDiane Trout <diane@caltech.edu>
Sat, 8 May 2010 00:33:58 +0000 (00:33 +0000)
htsworkflow/util/makebed.py

index e82968aeda34997ccd83c209d8c894279362438a..c9383fed050e03dde1f62933ece42afdbab0c20b 100755 (executable)
@@ -98,7 +98,7 @@ def make_bed_from_multi_eland_stream(
       outstream.write(lane)
 
 def make_bed_from_multi_eland_generator(instream, name, description, chr_prefix, max_reads=255):
-  loc_pattern = '(?P<fullloc>(?P<start>[0-9]+)(?P<dir>[FR])(?P<count>[0-9]+))'
+  loc_pattern = '(?P<fullloc>(?P<start>[0-9]+)(?P<dir>[FR])(?P<count>[0-9AGCT]+))'
   other_pattern = '(?P<chr>[^:,]+)'
   split_re = re.compile('(%s|%s)' % (loc_pattern, other_pattern))