diff gffcompare_to_bed.py @ 2:9a4cfc910674 draft

"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/gffcompare_to_bed commit 2a470e2c775a7427aa530e058510e4dc7b6d8e80"
author galaxyp
date Tue, 07 Apr 2020 11:36:42 -0400
parents 7e572e148175
children ba5368c19dbd
line wrap: on
line diff
--- a/gffcompare_to_bed.py	Fri Apr 26 14:42:31 2019 -0400
+++ b/gffcompare_to_bed.py	Tue Apr 07 11:36:42 2020 -0400
@@ -31,13 +31,13 @@
         self.thickEnd = int(thickEnd) if thickEnd else self.chromEnd
         self.itemRgb = str(itemRgb) if itemRgb is not None else r'100,100,100'
         self.blockCount = int(blockCount)
-        if isinstance(blockSizes, str) or isinstance(blockSizes, unicode):
+        if isinstance(blockSizes, str):
             self.blockSizes = [int(x) for x in blockSizes.split(',')]
         elif isinstance(blockSizes, list):
             self.blockSizes = [int(x) for x in blockSizes]
         else:
             self.blockSizes = blockSizes
-        if isinstance(blockStarts, str) or isinstance(blockSizes, unicode):
+        if isinstance(blockStarts, str):
             self.blockStarts = [int(x) for x in blockStarts.split(',')]
         elif isinstance(blockStarts, list):
             self.blockStarts = [int(x) for x in blockStarts]
@@ -93,10 +93,9 @@
                      for j in attributes.rstrip(';').split(';')]}
         if feature == 'transcript':
             if args.debug:
-                print >> sys.stderr, "%s\t%s"\
-                    % ('\t'.join([seqname, source, feature,
-                                  start, end, score, strand, frame]),
-                        attribute)
+                sys.stderr.write("%s\t%s\n" % ('\t'.join([seqname, source,
+                                 feature, start, end, score, strand, frame]),
+                                 attribute))
             if bed is not None:
                 write_bed_entry(bed)
                 bed = None