From 96a3a943b935316186c716bf114a279d022688e5 Mon Sep 17 00:00:00 2001 From: genomewalker Date: Thu, 28 Apr 2022 12:22:39 +0200 Subject: [PATCH] Fixy for issue #1 --- src/metaDMG/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/metaDMG/utils.py b/src/metaDMG/utils.py index 05cc38a..7130f25 100644 --- a/src/metaDMG/utils.py +++ b/src/metaDMG/utils.py @@ -173,7 +173,8 @@ def make_configs( paths = ["names", "nodes", "acc2tax", "output_dir", "config_file"] for path in paths: - d[path] = Path(d[path]) + if d[path]: + d[path] = Path(d[path]) for key, val in d["samples"].items(): d["samples"][key] = Path(val)