git-svn-id: http://svn.tuebingen.mpg.de/ag-raetsch/projects/QPalma@8649 e1793c9e...
authorraetsch <raetsch@e1793c9e-67f9-0310-80fc-b846ff1f7b36>
Thu, 17 Apr 2008 22:01:31 +0000 (22:01 +0000)
committerraetsch <raetsch@e1793c9e-67f9-0310-80fc-b846ff1f7b36>
Thu, 17 Apr 2008 22:01:31 +0000 (22:01 +0000)
scripts/PipelineHeuristic.py

index aa523b1..51b07b1 100644 (file)
@@ -317,7 +317,7 @@ class PipelineHeuristic:
       alt_don,alt_acc = self.findHighestScoringSpliceSites(currentAcc,currentDon)
 
       sort_acc=[ elem for elem in enumerate(currentAcc) ] 
-      sort_acc.sort(lambda x,y: x[1]-y[1])
+      sort_acc.sort(lambda x,y: sign(x[1]-y[1]))
       
       (max_acc_pos,max_acc_score)=sort_acc[-1]