comparison hd.py @ 28:1fa7342a140d draft

planemo upload for repository https://github.com/monikaheinzl/duplexanalysis_galaxy/tree/master/tools/hd commit b8a2f7b7615b2bcd3b602027af31f4e677da94f6-dirty
author mheinzl
date Mon, 03 Jun 2019 05:37:01 -0400
parents df1fc5cedc8b
children 6b15b3b6405c
comparison
equal deleted inserted replaced
27:df1fc5cedc8b 28:1fa7342a140d
105 fig = plt.figure(figsize=(6, 8)) 105 fig = plt.figure(figsize=(6, 8))
106 plt.subplots_adjust(bottom=0.1) 106 plt.subplots_adjust(bottom=0.1)
107 con_list1 = numpy.concatenate(list1) 107 con_list1 = numpy.concatenate(list1)
108 p1 = numpy.array([v for k, v in sorted(Counter(con_list1).iteritems())]) 108 p1 = numpy.array([v for k, v in sorted(Counter(con_list1).iteritems())])
109 maximumY = numpy.amax(p1) 109 maximumY = numpy.amax(p1)
110 print("max X", maximumX, ) 110 maximumX = int(maximumX)
111 print("max X", maximumX )
111 112
112 if relative is True: # relative difference 113 if relative is True: # relative difference
113 bin1 = numpy.arange(-1, maximumX + 0.2, 0.1) 114 bin1 = numpy.arange(-1, maximumX + 0.2, 0.1)
114 else: 115 else:
115 bin1 = maximumX + 1 116 bin1 = maximumX + 1