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

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