Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand scale_fill_brew palette in pafr #29

Open
aaronphillips7493 opened this issue Jul 28, 2021 · 1 comment
Open

Expand scale_fill_brew palette in pafr #29

aaronphillips7493 opened this issue Jul 28, 2021 · 1 comment

Comments

@aaronphillips7493
Copy link

Hey,

I have 13 query sequences that I am trying to visualise aligned to 12 reference chromosomes.

I am trying to use:
plot_coverage(prim_alignment, fill='qname') + scale_fill_brewer(palette="Set3")
but, as I have 13 qnames and Set3 only contains 12 colours, one of my sequences is not coloured.

Is there a way to fix this? I have tried looking at this:
https://www.r-bloggers.com/2013/09/how-to-expand-color-palette-with-ggplot-and-rcolorbrewer/

but to no avail.

Any advice?

Thanks,
Aaron :)

@SamCT
Copy link

SamCT commented Sep 22, 2021

Also curious about this. I have an alignment file with several hundred contigs, would like to introduce some sort of color palette that can account for that but I am limited to an arbitrary 12. Is there a way to create my own color palette? I can widdle down the contig list to those of a certain length, and I've seen a pallette with 256 colorways. In general color pallets seem to be limited ~20. When I run the plot coverage on hundreds of contigs vs ~16 large (chromosome) contigs, I just get a image that looks like spiral-notebook paper. Maybe the devs have a suggestion for this?

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants