From: Diane Trout Date: Sat, 8 May 2010 00:33:58 +0000 (+0000) Subject: Matches can have trailing AGCT in addition to a number X-Git-Tag: 0.4.0~1 X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=6dec5144314928dd702c76543bd762235d0ad2ad Matches can have trailing AGCT in addition to a number --- diff --git a/htsworkflow/util/makebed.py b/htsworkflow/util/makebed.py index e82968a..c9383fe 100755 --- a/htsworkflow/util/makebed.py +++ b/htsworkflow/util/makebed.py @@ -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(?P[0-9]+)(?P[FR])(?P[0-9]+))' + loc_pattern = '(?P(?P[0-9]+)(?P[FR])(?P[0-9AGCT]+))' other_pattern = '(?P[^:,]+)' split_re = re.compile('(%s|%s)' % (loc_pattern, other_pattern))