Commits

Davide Cittaro committed 563d0d5 Merge

merged with cluster

Comments (0)

Files changed (1)

     self.errors = ''
     self.warnings = ''
     self._irank = 4
+    self._erank = 40
     
   def parse_values(self, effect_string):
     i_rank = {'HIGH': 0, 'MODERATE':1, 'LOW':2, 'MODIFIER':3}
     else:  
       between_eff = '|'.join([self.impact, self.eff_class, self.codon, self.aminoacid, str(self.protein_length), self.gene, self.biotype, self.coding, self.transcript, self.exon])  
     return "%s(%s)" % (self.predicted, between_eff)      
+  def __lt__(self, other):
+    return self._erank < other._erank
     
       
 
     return_effs.append(longest_gene_eff)
 
   # return the effect list, sorted by priority
-  return return_effs
-  #return sorted(return_effs, reverse=True)
+  return sorted(return_effs)