thackl / gggenomes

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

Error with example data #86

Closed hkaspersen closed 3 years ago

hkaspersen commented 3 years ago

I am trying to run the examples with the example data from the package, e.g. emale_seqs

I get the following error when i run this:

> gggenomes(emale_seqs)
No seqs provided, inferring seqs from feats
Error: Problem with `summarise()` column `length`.
i `length = max(start, end)`.
x invalid 'type' (closure) of argument
i The error occurred in group 1: bin_id = "BVI_008A", seq_id = "BVI_008A".

I can't for the life of me figure out what is going on here.

I have the newest version of gggenomes, and have tidyr version 1.1.4.

Any help is greatly appreciated!

thackl commented 3 years ago

Sorry, my bad - this error message is not at all helpful. I'll try to capture this in a future release.

gggenomes expects a genes table as first argument (which has start and end columns). If you only have seqs use

gggenomes(seqs=emale_seqs) 
hkaspersen commented 3 years ago

Thanks for the rapid reply, that worked!