GenoVi icon indicating copy to clipboard operation
GenoVi copied to clipboard

--title 'filename' does not work

Open marade opened this issue 1 year ago • 8 comments

SVGs and PNGs that are generated have "filename" in the center of the image.

marade avatar Apr 04 '23 20:04 marade

Hello! try with simple quotation marks 'filename' instead of "filename"

AndresICM avatar Apr 04 '23 20:04 AndresICM

Hi, thanks for the software! Unfortunately using 'filename' does not work and I get the same problem. If it helps, my GBFFs are generated using Bakta.

marade avatar Apr 04 '23 20:04 marade

Hi! We'll look into that. We certainly didn't try with Bakta annotated genomes, so we might need to update genovi considering that.

AndresICM avatar Apr 05 '23 17:04 AndresICM

Hello. Are you using a directory as input or a single file? "filename" feature only works when input is a directory, not a single file. This is because it only made sense for this case, since for a single file the name could be written directly, easily.

vsaona avatar Apr 12 '23 14:04 vsaona

Yes, it's a directory.

marade avatar Apr 12 '23 16:04 marade

In my opinion the best way to handle this is to avoid the strange 'filename' scheme. argparse already has a better way:

parser.add_argument("-n", "--name", action="store_true", help="use the filename " +
"for title text.")

marade avatar Apr 13 '23 18:04 marade

¿Could you please send me the full command line you're trying? This is for me to test it and check in which cases it is not working.

vsaona avatar Apr 17 '23 02:04 vsaona

genovi -i ../genovi -t 'filename' -s complete

marade avatar May 08 '23 17:05 marade