art-egorov / lovis4u

Bioinformatics tool for Locus Visualisation
Do What The F*ck You Want To Public License
72 stars 1 forks source link

lovis4uError 💔: Unable to load loci from gff folder. #8

Closed abrozzi closed 1 month ago

abrozzi commented 1 month ago

Hi all,

I ran prokka on my single fasta file (1 contig) and got gff file I attach here in txt format.

When I run:

lovis4u -gff  GCA_019927265.1_ASM1992726v1.gff

I get:

lovis4uError 💔: Unable to load loci from gff folder.

SOLVED: gff file must be in a dedicated directory.

lovis4u -gff  ./gff/

worked.

GCA_019927265.1_ASM1992726v1.txt

Thank you for help, Alex

art-egorov commented 1 month ago

Hi! Thank you for trying out LoVis4u and for your feedback! You’re right—it can be tricky when working with a single file, but when using the "-gff" parameter, the input should always be a folder. I'll add the ability to handle file paths to the to-do list to prevent issues like this in one of the next release.

Thanks again! :)

Best Artyom

abrozzi commented 1 month ago

You might just want to add a validity check that halts the program if -gff is a file and not a directory (printing an error message).

Thanks for lovi4u!

HTH -A