Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion for warning if invalid annotation directory is passed #8

Open
zlskidmore opened this issue Oct 12, 2018 · 2 comments
Open
Assignees

Comments

@zlskidmore
Copy link

If an incorrect annotation dir is given the getAnnoDir() function will first attempt to see if an ideal directory exist, if it doesn't it will look for additional directories annodir/readlength.* however if no readlength.* is present the code will fail with an uninformative error message along the lines of:

Error in dirs - readlength : non-numeric argument to binary operator

The offending line of code is:

diff = sort(abs(dirs-readlength))

and occurs because dirs is an empty list. It might be helpfull to add a line of code before this checking that annodir/readlength exists

@chrisamiller
Copy link
Owner

I'll add it to my list - PRs welcome! ;)

@zlskidmore
Copy link
Author

sounds good! more of a note more than anything but happy to make a PR

@sridhar0605 sridhar0605 self-assigned this May 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants