Mercurial > repos > mheinzl > fsd
comparison fsd.py @ 30:2cbc0e34b7a7 draft
planemo upload for repository https://github.com/monikaheinzl/duplexanalysis_galaxy/tree/master/tools/fsd commit b8a2f7b7615b2bcd3b602027af31f4e677da94f6-dirty
| author | mheinzl |
|---|---|
| date | Mon, 03 Jun 2019 06:24:01 -0400 |
| parents | f77566cfa5e1 |
| children | b01ecc2e9686 |
comparison
equal
deleted
inserted
replaced
| 29:f77566cfa5e1 | 30:2cbc0e34b7a7 |
|---|---|
| 342 #print(colors[i]) | 342 #print(colors[i]) |
| 343 #print(w) | 343 #print(w) |
| 344 # linewidth=1, | 344 # linewidth=1, |
| 345 | 345 |
| 346 print(numpy.sum(y)) | 346 print(numpy.sum(y)) |
| 347 print(float(numpy.sum(y))) | |
| 347 print(x) | 348 print(x) |
| 348 new_y = numpy.concatenate(numpy.array([yi / float(numpy.sum(y)) for yi in y])) | 349 new_y = list(numpy.concatenate(numpy.array([yi / float(numpy.sum(y)) for yi in y]))) |
| 349 print(new_y) | 350 print(new_y) |
| 350 | 351 |
| 351 if to_plot[l] == "Relative frequencies": | 352 if to_plot[l] == "Relative frequencies": |
| 352 counts2_rel = ax.bar(x, new_y, align="edge", width=w, | 353 counts2_rel = ax.bar(x, new_y, align="edge", width=w, |
| 353 edgecolor="black", label=label[i], alpha=0.8, color=colors[i]) | 354 edgecolor="black", label=label[i], alpha=0.8, color=colors[i]) |
