From 3c179cac1efbd70a68b3daabcfb1aebd447c0489 Mon Sep 17 00:00:00 2001 From: Nicholas Bokulich Date: Wed, 12 Jun 2024 08:05:10 +0200 Subject: [PATCH] refactor GTDB taxonomy parser (#192) --- rescript/get_gtdb.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rescript/get_gtdb.py b/rescript/get_gtdb.py index bb7971d..2acb1ff 100644 --- a/rescript/get_gtdb.py +++ b/rescript/get_gtdb.py @@ -96,8 +96,7 @@ def _assemble_queries(version='220.0', def parse_gtdb_taxonomy(tax_str): - tax = ' '.join(tax_str.split()[0:2]) - return tax + return tax_str.split("[")[0].strip() def _get_gtdb_data_path(tmpdirname, url, basename):