thackl / gggenomes

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

shitf() "unused argument" #147

Closed gjordaopiedade closed 1 year ago

gjordaopiedade commented 1 year ago

Hi Thomas,

Really great package! Very empowering tool!

I am having some trouble with the shitf() function.

Here is how I get the error I get using the gggenomes dataset: code:

gggenomes(genes=emale_genes, seqs=emale_seqs, feats=list(emale_tirs, emale_ngaros),links=emale_ava)%>%
  shift(center =TRUE) +
  geom_link()+
  geom_gene() +
  geom_feat() 

error:

Error in shift(., center = TRUE) : unused argument (center = TRUE)

code:

gggenomes(genes=emale_genes, seqs=emale_seqs, feats=list(emale_tirs, emale_ngaros),links=emale_ava)%>%
  shift(bins =c("RCC970_016B", "E4-10_086", "Cflag_017B, BVI_069", "BVI_008A", "E4-10_112"), by = c(0,10000,20000,10,0,10), center = FALSE) +
  geom_link()+
  geom_gene() +
  geom_feat()

error:

Error in shift(., bins = c("RCC970_016B", "E4-10_086", "Cflag_017B, BVI_069",  : 
  unused arguments (bins = c("RCC970_016B", "E4-10_086", "Cflag_017B, BVI_069", "BVI_008A", "E4-10_112"), by = c(0, 10000, 20000, 10, 0, 10), center = FALSE)

I have installed the gggenomes version 0.9.5.9000

Hope you can help! Thank you.

thackl commented 1 year ago

You might have loaded another package that also has a function shift. Try gggenomes::shift(center = TRUE)

gjordaopiedade commented 1 year ago

Yes! That was it. Thank you!