Repository 'spades_metaplasmidspades'
hg clone https://toolshed.g2.bx.psu.edu/repos/iuc/spades_metaplasmidspades

Changeset 2:8d4b90bf9caf (2022-01-25)
Previous changeset 1:0ec2f2969a3a (2022-01-24) Next changeset 3:b8002c3f7141 (2022-02-09)
Commit message:
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/spades commit 2609367ebbce7e0c3f5b4b2d7c60a82d4bd03246"
added:
write_tsv_script.py
b
diff -r 0ec2f2969a3a -r 8d4b90bf9caf write_tsv_script.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/write_tsv_script.py Tue Jan 25 07:57:26 2022 +0000
b
@@ -0,0 +1,16 @@
+#!/usr/bin/env python
+
+import re
+import sys
+
+search_str = r"^>(NODE|\S+)_(\d+)(?:_|\s)length_(\d+)_cov_(\d+\.*\d*).*\$"
+
+replace_str = r"\1_\2\t\3\t\4"
+
+cmd = re.compile(search_str)
+
+sys.stdout.write("#name\tlength\tcoverage\n")
+
+for i, line in enumerate(sys.stdin):
+    if cmd.match(line):
+        sys.stdout.write(cmd.sub(replace_str, line))