diff find_str.py @ 30:53c4f91c6031 draft default tip

planemo upload for repository https://github.com/fubar2/microsatbed commit 80a8c0db54b6e2cab9dfe7178b1e5b3b39592f2c
author fubar
date Sat, 20 Jul 2024 01:44:09 +0000
parents efc775ab30fe
children
line wrap: on
line diff
--- a/find_str.py	Fri Jul 19 23:32:59 2024 +0000
+++ b/find_str.py	Sat Jul 20 01:44:09 2024 +0000
@@ -88,13 +88,13 @@
         bed += cbed
     if args.bigwig:
         wig.sort()
-        bedg = ['%s %d %d %.3f' % x for x in wig]
+        bedg = ["%s %d %d %.3f" % x for x in wig]
         with open("temp.bedg", "w") as bw:
-            bw.write('\n'.join(bedg))
+            bw.write("\n".join(bedg))
         chroms = ["%s\t%s" % (x, chrlens[x]) for x in chrlens.keys()]
         with open("temp.chromlen", "w") as cl:
-            cl.write('\n'.join(chroms))
-        cmd = ["bedGraphToBigWig", "temp.bedg", "temp.chromlen", "temp.bw" ]
+            cl.write("\n".join(chroms))
+        cmd = ["bedGraphToBigWig", "temp.bedg", "temp.chromlen", "temp.bw"]
         subprocess.run(cmd)
         shutil.move("temp.bw", args.bed)
     else: