comparison hd.py @ 7:6f124cc95838 draft

planemo upload for repository https://github.com/monikaheinzl/galaxyProject/tree/master/tools/hd commit f744398d26afb0e4f97c52f2f99941164ef5cfa5
author mheinzl
date Tue, 15 May 2018 11:08:42 -0400
parents e76e404c1719
children e2596a4e1c56
comparison
equal deleted inserted replaced
6:e76e404c1719 7:6f124cc95838
496 else: # half1, corrects the variable of the HD from both halfs if it is a or b 496 else: # half1, corrects the variable of the HD from both halfs if it is a or b
497 d = d_1 497 d = d_1
498 d2 = d_2 498 d2 = d_2
499 min_valueList[counter] = d + d2 499 min_valueList[counter] = d + d2
500 min_tagsList[counter] = tag 500 min_tagsList[counter] = tag
501 ham1.append[counter] = d 501 ham1[counter] = d
502 ham2.append[counter] = d2 502 ham2[counter] = d2
503 difference1 = abs(d - d2) 503 difference1 = abs(d - d2)
504 diff11[counter] = difference1 504 diff11[counter] = difference1
505 rel_difference = round(float(difference1) / (d + d2), 1) 505 rel_difference = round(float(difference1) / (d + d2), 1)
506 relativeDiffList[counter] = rel_difference 506 relativeDiffList[counter] = rel_difference
507 507
508 #### tags which have identical parts: 508 #### tags which have identical parts:
509 if d == 0 or d2 == 0: 509 if d == 0 or d2 == 0:
510 min_tagsList_zeros[counter] = tag 510 min_tagsList_zeros[counter] = tag
511 difference1_zeros = abs(d - d2) 511 difference1_zeros = abs(d - d2)
512 diff11_zeros[counter] = difference1_zeros 512 diff11_zeros[counter] = difference1_zeros
513
513 counter += 1 514 counter += 1
514 515
515 #print(i) 516 #print(i)
516 diff11 = [st for st in diff11 if st != 999] 517 diff11 = [st for st in diff11 if st != 999]
517 ham1 = [st for st in ham1 if st != 999] 518 ham1 = [st for st in ham1 if st != 999]