Closed lorenzo-rovigatti closed 6 months ago
Good morning,
These are valid points. However, it may be a few days before I can take care of it as I am moving this weekend. I see from your GIthub that you also have expertise in Python. Can you recommend a library for the parser, or is it recommended writing it yourself? Are self-written exceptions sufficient, or do you know a more elegant way to catch the errors and output error messages? How would you approach this?
I have made a PR to show you a quick&dirty way of doing it. Feel free to either accept it or use it as inspiration. The idea is to generate meaningful errors containing information that the user can leverage to fix their sequence file. It can be done in a cleaner way, but I think this should suffice in your case.
Thank you very much for your contribution. I think we'll take it for now and as soon as we have more time, we'll look at it again. Because in the long term we want to extend the functionality of the software.
Hi there, here is another issue linked to the JOSS review!
I have started testing the software, and it works great on the example seq.txt.
However, trying to edit it to make things a bit different I noticed that the parsing is not very robust: if the syntax is not respected then the code exits ungracefully, without even specifying the line that is the source of the mistake. Some examples:
ACE:AU:0:1
leads toACE:AU:1
generatesACe:AA:0:10
(note the lowercasee
):In general, it would greatly help new users to have a parser that can help them understand what (and where) they are doing wrong.