thackl / gggenomes

A grammar of graphics for comparative genomics
https://thackl.github.io/gggenomes/
Other
579 stars 64 forks source link

read_paf 'Error in if (nrow(tag_mx_nr) == 0) { : argument is of length zero' #107

Open sodosopah opened 2 years ago

sodosopah commented 2 years ago

Hello and thanks for a beautiful package!

I'm having some trouble with the read_paf function. When my paf file only contains one line I receive the error message 'Error in if (nrow(tag_mx_nr) == 0) { : argument is of length zero'. Adding an arbitrary line to the file seems to solve it. Have you encountered this or know what might be causing it?

Any help or suggestions appreciated! Thanks!