Mercurial > repos > galaxyp > bed_to_protein_map
changeset 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 | |
files | bed_to_protein_map.py bed_to_protein_map.xml |
diffstat | 2 files changed, 6 insertions(+), 5 deletions(-) [+] |
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)
--- a/bed_to_protein_map.xml Thu Jan 04 16:29:38 2018 -0500 +++ b/bed_to_protein_map.xml Tue Apr 07 11:33:11 2020 -0400 @@ -1,6 +1,7 @@ -<tool id="bed_to_protein_map" name="bed to protein map" version="0.1.0"> +<tool id="bed_to_protein_map" name="bed to protein map" version="0.2.0"> <description>genomic location of proteins for MVP</description> <requirements> + <requirement type="package" version="3.7">python</requirement> </requirements> <stdio> <exit_code range="1:" />