-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to overwrite existing directory #558
Comments
Eesh, that's annoying! It should be feasible to add this in. Looks like the lines causing the problem are here: empress/empress/_plot_utils.py Lines 86 to 101 in e543610
... So we can probably just add an (Maybe we should add some code to |
I think deleting the contents of the output directory might be too dangerous (who knows what other stuff people could have in there). If we could only overwrite Also I wrote this code so it's my own fault this is an annoying issue 😅 |
Overwriting is definitely the way to go. This used to be the behavior of `make_emperor.py` (the predecessor to q2-emperor) and this approached worked great for years.
From: Gibs ***@***.***>
Date: Saturday, May 21, 2022 at 6:46 AM
To: biocore/empress ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [biocore/empress] Option to overwrite existing directory (Issue #558)
I think deleting the contents of the output directory might be too dangerous (who knows what other stuff people could have in there). If we could only overwrite empress.html and support_files/* I think that would be sufficient.
Also I wrote this code so it's my own fault this is an annoying issue 😅
—
Reply to this email directly, view it on GitHub<#558 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAC3UC2SO3SINSZ6CV7JOW3VLDSM5ANCNFSM5WP54DJQ>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
So this specific instance can be circumvented with
but I think it's still worth adding the |
I'd like to use Empress in a Snakemake pipeline (see below) but I'm running into an annoying issue. If my understanding is correct (which it could very well not be), the way Snakemake works is that it sees that the
results/empress
directory does not exist and thus creates it before the shell command executes. However, when this occurs Empress complains thatOutput directory already exists!
. I think what would be useful is for some sort of--overwrite
option to force the creation of the visualization + support files.In my case, I can work around this by changing some of the filepaths but I think this might be a useful option.
The text was updated successfully, but these errors were encountered: