From 32042d587427451aa98058a03e41760bf38ae3f2 Mon Sep 17 00:00:00 2001 From: nbokulich Date: Tue, 11 Jun 2024 12:58:58 +0200 Subject: [PATCH] refactor GTDB taxonomy parser --- 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):