Closed maasha closed 8 years ago
Good catch, thanks!
Also, one thing that bothers me is that the existence of an existing file with the same name is only checked after conversion, so you're e.g. converting a big table, it does all the work and then errors out at the very end :(
Agree
On Mon, Nov 10, 2014 at 11:29 AM, Jorge Cañardo Alastuey < notifications@github.com> wrote:
Also, one thing that bothers me is that the existence of an existing file with the same name is only checked after conversion, so you're e.g. converting a big table, it does all the work and then errors out at the very end :(
— Reply to this email directly or view it on GitHub https://github.com/biocore/biom-format/issues/557#issuecomment-62430193.
@Jorge-C, unfortunately, it is difficult to do the check prior to conversion due to the way pyqi is currently structured. This will be deferred until the change to click.
@gregcaporaso, what's your take on doing a -f
for force? Should we just overwrite or require an explicit -f
. I ask because I think this was previously discussed with qiime
I think I like -f
to overwrite here, since users could easily overwrite an existing file that might not be easy to reproduce (unlike e.g. for summarize-table
, where the existing file is easy to reproduce, though of course this is a little subjective).
I'll see if this is not painful to add with pyqi. If it's straight forward, I'll put it in
Not straightforward to support as the Command
does not get the output path, and the output handler cannot get added options. Differing to when BIOM uses click.
Sounds good, thanks for checking!
On Wed, Nov 19, 2014 at 10:37 AM, Daniel McDonald notifications@github.com wrote:
Not straightforward to support as the Command does not get the output path, and the output handler cannot get added options. Differing to when BIOM uses click.
Reply to this email directly or view it on GitHub https://github.com/biocore/biom-format/issues/557#issuecomment-63680301.
Fixed in #668.
This is biom-format==2.1