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
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 directoriesannodir/readlength.*however if no readlength.* is present the code will fail with an uninformative error message along the lines of:The offending line of code is:
copyCat/R/functions.R
Line 451 in 1bbbf5b
and occurs because
dirsis an empty list. It might be helpfull to add a line of code before this checking thatannodir/readlengthexists