gggenes icon indicating copy to clipboard operation
gggenes copied to clipboard

conflicts between "make_alignment_dummies()" and "forward" aesthetic

Open Tsingsjeen opened this issue 2 years ago • 2 comments

the gene cluster align with RDase_A

rdhA_center <- make_alignment_dummies( rdhs_cluster, aes(xmin = start, xmax = end, y = rdhs_tree.tip.label, id = gene), on = "RDase_A")

rdhs_operon2 <- ggplot(rdhs_cluster, aes(xmin = start, xmax = end, y = rdhs_tree.tip.label, fill = gene, forward = orientation)) + geom_gene_arrow() + geom_blank(data = rdhA_center) + facet_wrap(~ rdhs_tree.tip.label, scales = "free", ncol = 1) + scale_fill_brewer(palette = "Set3") + theme_genes()

rdhs_operon2

########## Error in FUN(X[[i]], ...) : object 'orientation' not found

Tsingsjeen avatar Mar 09 '22 13:03 Tsingsjeen

Hi @Tsingsjeen, could you please post this as a reproducible example including the data in rdhs_cluster? Thanks!

wilkox avatar Mar 13 '22 00:03 wilkox

Hi had a similar issue. You need to add the orientation also to the dummies : dummies$orientation <- 1. In your case rdhA_center$orientation <- 1

mweberr avatar Mar 14 '22 11:03 mweberr