# HG changeset patch # User mheinzl # Date 1526396491 14400 # Node ID e76e404c1719bd45f64db2961b2cc1bcf3c1ea22 # Parent 445442a6aeb06650670677c006d5549c1549d28c planemo upload for repository https://github.com/monikaheinzl/galaxyProject/tree/master/tools/hd commit 66a55754a269d4cfaee98b113f05154ae9dc80fe diff -r 445442a6aeb0 -r e76e404c1719 hd.py --- a/hd.py Tue May 15 10:56:52 2018 -0400 +++ b/hd.py Tue May 15 11:01:31 2018 -0400 @@ -457,7 +457,7 @@ #min_tagsList = [] #diff11_zeros = [] #min_tagsList_zeros = [] - c = 0 # counter, only used to see how many HDs of tags were already calculated + counter = 0 # counter, only used to see how many HDs of tags were already calculated if mate_b is False: # HD calculation for all a's half1_mate1 = array1_half half2_mate1 = array1_half2 @@ -496,21 +496,21 @@ else: # half1, corrects the variable of the HD from both halfs if it is a or b d = d_1 d2 = d_2 - min_valueList[c] = d + d2 - min_tagsList[c] = tag - ham1.append[c] = d - ham2.append[c] = d2 + min_valueList[counter] = d + d2 + min_tagsList[counter] = tag + ham1.append[counter] = d + ham2.append[counter] = d2 difference1 = abs(d - d2) - diff11[c] = difference1 + diff11[counter] = difference1 rel_difference = round(float(difference1) / (d + d2), 1) - relativeDiffList[c] = rel_difference + relativeDiffList[counter] = rel_difference #### tags which have identical parts: if d == 0 or d2 == 0: - min_tagsList_zeros[c] = tag + min_tagsList_zeros[counter] = tag difference1_zeros = abs(d - d2) - diff11_zeros[c] = difference1_zeros - c += 1 + diff11_zeros[counter] = difference1_zeros + counter += 1 #print(i) diff11 = [st for st in diff11 if st != 999] diff -r 445442a6aeb0 -r e76e404c1719 hd.xml --- a/hd.xml Tue May 15 10:56:52 2018 -0400 +++ b/hd.xml Tue May 15 11:01:31 2018 -0400 @@ -1,5 +1,5 @@ - + python matplotlib