Closed jwkai closed 2 years ago
Good idea. I have edited the R scripts so that they have better error messages. If the info file is missing an ID the error message displayed will now be:
Info file missing data (ID in tree file not found in info file: "RNA5")
I also suppressed the library loading messages so that the actual error messages will be more visible.
I have pushed these changes to GitHub, but I will have to ask the lab IT staff to migrate the changes onto the web server.
Thanks @brj1 !
I am able to deploy this to the server as well. Although I'm currently setting up a test version of the server on our internal network, which the software team has decided is a good intermediate step between updating the GitHub and making the change "live". I should have that ready within the next few work days.
Tested and deployed! Looks good.
When the input files produce an error, this tool prints a traceback from the R script that can be confusing for users that are not experienced with software troubleshooting.
For example, a mismatched ID in the
info.csv
file,and
will produce the following very long error message (this is only an excerpt):
It would be useful to print a more readable error message above the traceback, at least the relevant part:
and, if possible, something more helpful, such as
When the tool fails, the traceback is printed as follows: https://github.com/cfe-lab/phylodating/blob/e396398e36e8d71fb74309c70a9f1fe62cbf8c72/templates/jobs/details.html#L15-L22
Getting more informative errors might involve editing the R scripts.