Mercurial > repos > iuc > spades_metaplasmidspades
comparison write_tsv_script.py @ 5:21da31ed41a1 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/spades commit a09a5e3ee3c76550526f082b97de8da75181a1dd
| author | iuc |
|---|---|
| date | Wed, 13 Jul 2022 07:43:38 +0000 |
| parents | 8d4b90bf9caf |
| children |
comparison
equal
deleted
inserted
replaced
| 4:6b5a5842531e | 5:21da31ed41a1 |
|---|---|
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 | 2 |
| 3 import re | 3 import re |
| 4 import sys | 4 import sys |
| 5 | 5 |
| 6 search_str = r"^>(NODE|\S+)_(\d+)(?:_|\s)length_(\d+)_cov_(\d+\.*\d*).*\$" | 6 search_str = r"^>(NODE|\S+)_(\d+)(?:_|\s)length_(\d+)_cov_(\d+\.*\d*)(.*\$)?" |
| 7 | 7 |
| 8 replace_str = r"\1_\2\t\3\t\4" | 8 replace_str = r"\1_\2\t\3\t\4" |
| 9 | 9 |
| 10 cmd = re.compile(search_str) | 10 cmd = re.compile(search_str) |
| 11 | 11 |
