Repository 'gffcompare_to_bed'
hg clone https://toolshed.g2.bx.psu.edu/repos/galaxyp/gffcompare_to_bed

Changeset 3:ba5368c19dbd (2021-01-13)
Previous changeset 2:9a4cfc910674 (2020-04-07)
Commit message:
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/gffcompare_to_bed commit 98ac160e172e3a404163c1af8e2d5ae42a2b425d"
modified:
gffcompare_to_bed.py
b
diff -r 9a4cfc910674 -r ba5368c19dbd gffcompare_to_bed.py
--- a/gffcompare_to_bed.py Tue Apr 07 11:36:42 2020 -0400
+++ b/gffcompare_to_bed.py Wed Jan 13 20:59:52 2021 +0000
[
@@ -44,7 +44,13 @@
         else:
             self.blockStarts = blockStarts
 
+    def sort_exons(self):
+        sorted_list = [i for i in sorted(zip(self.blockStarts,self.blockSizes))]
+        self.blockStarts = [i[0] for i in sorted_list]
+        self.blockSizes = [i[1] for i in sorted_list]
+
     def __str__(self):
+        self.sort_exons()
         return '%s\t%d\t%d\t%s\t%d\t%s\t%d\t%d\t%s\t%d\t%s\t%s' % (
             self.chrom, self.chromStart, self.chromEnd,
             self.name, self.score, self.strand,