comparison hd.py @ 27:df1fc5cedc8b 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:15:27 -0400
parents 9e384b0741f1
children 1fa7342a140d
comparison
equal deleted inserted replaced
26:15d5da04ef70 27:df1fc5cedc8b
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 111
111 if relative is True: # relative difference 112 if relative is True: # relative difference
112 bin1 = numpy.arange(-1, maximumX + 0.2, 0.1) 113 bin1 = numpy.arange(-1, maximumX + 0.2, 0.1)
113 else: 114 else:
114 bin1 = maximumX + 1 115 bin1 = maximumX + 1