# HG changeset patch # User galaxyp # Date 1586273802 14400 # Node ID 9a4cfc9106742d9905e91fcf40869e2b5c08b683 # Parent 0f62097d7c1a6c523b6a58483cea2c8d1cdc16b6 "planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/gffcompare_to_bed commit 2a470e2c775a7427aa530e058510e4dc7b6d8e80" diff -r 0f62097d7c1a -r 9a4cfc910674 gffcompare_to_bed.py --- 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 diff -r 0f62097d7c1a -r 9a4cfc910674 gffcompare_to_bed.xml --- a/gffcompare_to_bed.xml Fri Apr 26 14:42:31 2019 -0400 +++ b/gffcompare_to_bed.xml Tue Apr 07 11:36:42 2020 -0400 @@ -1,5 +1,8 @@ - + for StringTie results + + python +