diff bigwig_outlier_bed.py @ 8:032e930ef6a1 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bigwig_outlier_bed commit 7eac2f224d3126002edd2c02d1133b23ac1a4881
author fubar
date Wed, 24 Jul 2024 09:19:08 +0000
parents c8e22efcaeda
children
line wrap: on
line diff
--- a/bigwig_outlier_bed.py	Wed Jul 24 08:49:37 2024 +0000
+++ b/bigwig_outlier_bed.py	Wed Jul 24 09:19:08 2024 +0000
@@ -214,9 +214,9 @@
                     first_few = ['%.2f\t%d' % (values[x],counts[x]) for x in range(10)]
                     first_few += ['%.2f\t%d' % (values[x],counts[x]) for x in last10]
                     first_few.insert(0,'First/Last 10 value counts\nValue\tCount')
-                    ha = asciihist(data=bw, bins=20, str_tag=chr)
+                    ha = asciihist(data=bw, bins=20, str_tag='%s_%s' % (bwlabel,chr))
                     histo = ha.draw()
-                    histo = '\n'.join(first_few) + '\nHistogram of bigwig values\n' + histo
+                    histo = '\n'.join(first_few) + '\nHistogram of %s bigwig values\n' % bwlabel + histo
                 bw = bw[~np.isnan(bw)]  # some have NaN if parts of a contig not covered
                 if self.qhi is not None:
                     self.bwtop = np.quantile(bw, self.qhi)