Mercurial > repos > charles_s_test > seqsero2
comparison libs/H_combination_output_analysis.py @ 7:3d6680af0bec draft
planemo upload commit a4fb57231f274270afbfebd47f67df05babffa4a-dirty
author | charles_s_test |
---|---|
date | Mon, 27 Nov 2017 16:30:27 -0500 |
parents | 38ad1130d077 |
children | 53efef402c51 |
comparison
equal
deleted
inserted
replaced
6:b6281a377a18 | 7:3d6680af0bec |
---|---|
223 score=fliC_sero[seroname]+fljB_sero[fljB_seroname] | 223 score=fliC_sero[seroname]+fljB_sero[fljB_seroname] |
224 combination.append(name) | 224 combination.append(name) |
225 combination_score.append(score) | 225 combination_score.append(score) |
226 combinationlist=dict(zip(combination,combination_score)) #we can do the filteration here | 226 combinationlist=dict(zip(combination,combination_score)) #we can do the filteration here |
227 final_dict=sorted(combinationlist.iteritems(), key=lambda d:d[1], reverse = True) | 227 final_dict=sorted(combinationlist.iteritems(), key=lambda d:d[1], reverse = True) |
228 print "$$_H:Order:",final_dict | 228 print("$$_H:Order:",final_dict) |
229 elif score>100 and fljB_score<100: | 229 elif score>100 and fljB_score<100: |
230 print "$$_H:No fljB, only fliC, and its order:",First_Choice,Sec_Choice,Third_Choice | 230 print("$$_H:No fljB, only fliC, and its order:",First_Choice,Sec_Choice,Third_Choice) |
231 elif score<100 and fljB_score>100: | 231 elif score<100 and fljB_score>100: |
232 print "$$_H:No fliC, only fljB, and its order:",fljB_First_Choice,fljB_Sec_Choice,fljB_Third_Choice | 232 print("$$_H:No fliC, only fljB, and its order:",fljB_First_Choice,fljB_Sec_Choice,fljB_Third_Choice) |
233 elif score==1 and fljB_score>100: | 233 elif score==1 and fljB_score>100: |
234 print "$$_H:No fliC (file) existed, only fljB, and its order:",fljB_First_Choice,fljB_Sec_Choice,fljB_Third_Choice | 234 print("$$_H:No fliC (file) existed, only fljB, and its order:",fljB_First_Choice,fljB_Sec_Choice,fljB_Third_Choice) |
235 elif score==1 and fljB_score<100: | 235 elif score==1 and fljB_score<100: |
236 print "$$_H:No fliC (file) existed, and no fljB" | 236 print("$$_H:No fliC (file) existed, and no fljB") |
237 elif score>100 and fljB_score==1: | 237 elif score>100 and fljB_score==1: |
238 print "$$_H:No fljB (file) existed, only fliC, and its order:",First_Choice,Sec_Choice,Third_Choice | 238 print("$$_H:No fljB (file) existed, only fliC, and its order:",First_Choice,Sec_Choice,Third_Choice) |
239 elif score<100 and fljB_score==1: | 239 elif score<100 and fljB_score==1: |
240 print "$$_H:No fljB (file) existed, and no fliC" | 240 print("$$_H:No fljB (file) existed, and no fliC") |
241 else: | 241 else: |
242 print "$$_H:No fliC and fljB" | 242 print("$$_H:No fliC and fljB") |
243 | 243 |
244 | 244 |
245 ''' | 245 ''' |
246 E_thresh=1e-10 | 246 E_thresh=1e-10 |
247 hspbit=[] | 247 hspbit=[] |