From 8c87e70c8243d5ef4fda710d9fecd380ba3b5760 Mon Sep 17 00:00:00 2001 From: Aaron Mussig Date: Wed, 9 Mar 2022 17:08:42 +1000 Subject: [PATCH] fix(GTDB Tree): Added option to force underscores. --- magna/gtdb/tree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magna/gtdb/tree.py b/magna/gtdb/tree.py index 0f5f89d..40b6f04 100644 --- a/magna/gtdb/tree.py +++ b/magna/gtdb/tree.py @@ -19,7 +19,7 @@ def __init__(self, source: str, path: str, md5: str): self.tree = self._read() def _read(self): - return dendropy.Tree.get(path=self.path, schema='newick') + return dendropy.Tree.get(path=self.path, schema='newick', preserve_underscores=True) def _download(self): with tempfile.TemporaryDirectory() as tmpdir: