Mercurial > repos > galaxyp > bed_to_protein_map
diff bed_to_protein_map.py @ 1:a7c58b43cbaa draft default tip
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/bed_to_protein_map commit 2a470e2c775a7427aa530e058510e4dc7b6d8e80"
author | galaxyp |
---|---|
date | Tue, 07 Apr 2020 11:33:11 -0400 |
parents | 024ed7b0ad93 |
children |
line wrap: on
line diff
--- a/bed_to_protein_map.py Thu Jan 04 16:29:38 2018 -0500 +++ b/bed_to_protein_map.py Tue Apr 07 11:33:11 2020 -0400 @@ -34,14 +34,14 @@ try: for linenum, line in enumerate(input_rdr): if args.debug: - print >> sys.stderr, "%d: %s\n" % (linenum, line) + sys.stderr.write("%d: %s\n" % (linenum, line)) if line.startswith('#'): continue if line.strip() == '': continue fields = line.rstrip('\r\n').split('\t') if len(fields) < 12: - print >> sys.stderr, "%d: %s\n" % (linenum, line) + sys.stderr.write("%d: %s\n" % (linenum, line)) continue (chrom, _chromStart, _chromEnd, name, score, strand, _thickStart, _thickEnd, itemRgb, @@ -91,8 +91,8 @@ strand, cds_start, cds_end)) cds_start = cds_end pass - except Exception, e: - print >> sys.stderr, "failed: %s" % e + except Exception as e: + sys.stderr.write("failed: %s\n" % e) exit(1)