Mercurial > repos > iuc > extract_metaphlan_database
diff formatoutput.py @ 5:b81c6e597cf1 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/metaphlan/ commit 08ec37116aab4268fdb93f175b60e50a0bbfafb2
| author | iuc |
|---|---|
| date | Mon, 27 Feb 2023 06:59:04 +0000 |
| parents | b76ebe7a1746 |
| children |
line wrap: on
line diff
--- a/formatoutput.py Wed Feb 02 21:59:04 2022 +0000 +++ b/formatoutput.py Mon Feb 27 06:59:04 2023 +0000 @@ -57,9 +57,11 @@ # skip headers if line.startswith("#"): continue - # skip UNKNOWN lines in Predicted taxon relative abundances - if "UNKNOWN" in line: + + # skip UNKNOWN (v3) or UNCLASSIFIED (v4) lines in predicted taxon relative abundances + if "UNKNOWN" in line or 'UNCLASSIFIED' in line: continue + # spit lines split_line = line[:-1].split('\t') taxo_n = split_line[0].split('|')
