Closed andreaniml closed 2 years ago
Try geom_gene(…, rna_aes=aes(fill=fill colour=colour))
That should overwrite the defaut lightening for mrnas, trnas etc (rna_aes=aes(fill=colorspace::lighten(fill, .5), colour=colorspace::lighten(colour, .5))
)
It worked! Thanks!
Hi! This is probably really silly, I have a gff3 reformated from augustus output that looks like this:
When passed to gggnomes with this code: `` g1 <- read_feats("Reproductible.gff3") cbPalette <- c("#D55E00", "#E69F00", "#009E73", "#56B4E9", "#F0E442","#999999", "#0042B2", "#CC79A7","#00000","#05555") MyImage= gggenomes(genes=g1) + geom_seq() + geom_seq_label()+ geom_bin_label()+ geom_gene(aes(fill=name, stroke = 1,linetype=biotype),size = 8) + scale_fill_manual(values= cbPalette) I get this result:
I think I figured it out that this is coloring by mRNA column and then it gets remapped to be a little lighter. I know if I change the identifier from mRNA to CDS it fixes it, however, is there anyway to tell gggnomes that I want to color by gene or mRNA without lightening? I couldn't figure it out by seing the imported gffs from example data. If I delete the mRNA column then the genes disappear.
Thanks for any help!