Mercurial > repos > mheinzl > fsd
comparison fsd.py @ 19:b7bccbbee4a7 draft
planemo upload for repository https://github.com/monikaheinzl/duplexanalysis_galaxy/tree/master/tools/fsd commit b8a2f7b7615b2bcd3b602027af31f4e677da94f6-dirty
author | mheinzl |
---|---|
date | Wed, 08 May 2019 07:08:41 -0400 |
parents | c825a29a7d9f |
children | 64f0362c974e |
comparison
equal
deleted
inserted
replaced
18:c825a29a7d9f | 19:b7bccbbee4a7 |
---|---|
339 new_unique.append(t) | 339 new_unique.append(t) |
340 else: | 340 else: |
341 c_idx = numpy.where(t == unique)[0] | 341 c_idx = numpy.where(t == unique)[0] |
342 new_c.append(c[c_idx]) | 342 new_c.append(c[c_idx]) |
343 new_unique.append(unique[c_idx]) | 343 new_unique.append(unique[c_idx]) |
344 print(new_unique) | |
345 print(new_c) | |
344 y = numpy.array(new_unique) * numpy.array(new_c) | 346 y = numpy.array(new_unique) * numpy.array(new_c) |
345 if len([list_to_plot_original > 20]) > 0: | 347 if len([list_to_plot_original > 20]) > 0: |
346 y[len(y) - 1] = sum(list_to_plot_original[i][list_to_plot_original[i] > 20]) | 348 y[len(y) - 1] = sum(list_to_plot_original[i][list_to_plot_original[i] > 20]) |
347 reads.append(y) | 349 reads.append(y) |
348 reads_rel.append(list(numpy.float_(y)) / sum(y)) | 350 reads_rel.append(list(numpy.float_(y)) / sum(y)) |