From: Diane Trout Date: Tue, 16 Jun 2009 21:55:27 +0000 (+0000) Subject: Fixed a couple of problems. X-Git-Tag: 0.2.2~5 X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=81b57aeb5c95280aad63794215a430a5fe1b19e9 Fixed a couple of problems. The name/description wasn't being updated. there was a typo in the name of the outstream. --- diff --git a/htsworkflow/util/makebed.py b/htsworkflow/util/makebed.py index cb93163..e82968a 100755 --- a/htsworkflow/util/makebed.py +++ b/htsworkflow/util/makebed.py @@ -17,7 +17,7 @@ def create_bed_header(name, description): # provide default track names if name is None: name = "track" if description is None: description = "eland result file" - bed_header = 'track name="%s" description="%s" visibility=4 itemRgb="ON"' + bed_header = 'track name="%s" description="%s" visibility=4 itemRgb="ON"' % (name, description) bed_header += os.linesep return bed_header @@ -95,7 +95,7 @@ def make_bed_from_multi_eland_stream( - `max_reads`: maximum number of reads to write to bed stream """ for lane in make_bed_from_multi_eland_generator(instream, name, description, chr_prefix, max_reads): - oustream.write(lane) + 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]+))'