comparison spring_minz.py @ 15:4a4888bf0338 draft

"planemo upload commit 5520427eafa1144d04445e0b87112a7ff615aed1"
author guerler
date Sun, 27 Sep 2020 20:52:58 +0000
parents 21a7dd67b483
children 16eb2acaaa20
comparison
equal deleted inserted replaced
14:b53a98b90354 15:4a4888bf0338
41 interactions.append((name, minz)) 41 interactions.append((name, minz))
42 print("Predicting: %s, min-Z: %s" % (name, minz)) 42 print("Predicting: %s, min-Z: %s" % (name, minz))
43 interactions.sort(key=lambda tup: tup[1], reverse=True) 43 interactions.sort(key=lambda tup: tup[1], reverse=True)
44 with open(args.output, 'a+') as output_file: 44 with open(args.output, 'a+') as output_file:
45 for i in interactions: 45 for i in interactions:
46 output_file.write("%s %s %s\n" % (args.name, i[0], i[1])) 46 output_file.write("%s\t%s\t%s\n" % (args.name, i[0], i[1]))
47 47
48 def get_template_scores(hhr_file, min_score, identifier_length): 48 def get_template_scores(hhr_file, min_score, identifier_length):
49 result = {} 49 result = {}
50 identifier_length = identifier_length + 4 50 identifier_length = identifier_length + 4
51 if os.path.isfile(hhr_file): 51 if os.path.isfile(hhr_file):