From 5a2051e1ddd3f39e145dbec0a350d345c9f23d0a Mon Sep 17 00:00:00 2001 From: Xinpeng Zhang <84593788+Xinpeng021001@users.noreply.github.com> Date: Thu, 1 Aug 2024 11:35:45 -0500 Subject: [PATCH] Add files via upload --- dbcan/cli/syntenic_plot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dbcan/cli/syntenic_plot.py b/dbcan/cli/syntenic_plot.py index 815ccd19..88b7bdd3 100644 --- a/dbcan/cli/syntenic_plot.py +++ b/dbcan/cli/syntenic_plot.py @@ -326,7 +326,8 @@ def syntenic_plot(starts,starts1,ends,ends1,strands,strands1,Types,Types1,blocks plt.tight_layout(pad=0.01) cgcid = cgcid.replace("|","_") ### need to replace "|" to "_", because | is a special chara for system ### for local - #print(f"Save figure to file synteny.pdf/{cgcid}-syntenic.pdf ") + os.makedirs("synteny.pdf",exist_ok=True) + print(f"Save figure to file synteny.pdf/{cgcid}-syntenic.pdf ") plt.savefig(f"synteny.pdf/{cgcid}-syntenic.pdf") plt.close()