This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Plot nucleotides in python

Hello, i'm trying to plot using python: a plot which represents nucleotides distribution. Can't seem to find the appropriate code/function.

Would be happy for some help. Here are some examples of what i'm trying to do:

enter image description here

enter image description here

Thanks!

python nuclotides

1 answer

I've found logomaker pretty straightforward to use, examples here and by someone else here.
The have a nice demo tutorial you can try without installing anything here served via MyBinder.org.

Article:
Logomaker: beautiful sequence logos in Python. 2020. Ammar Tareen & Justin B Kinney. Bioinformatics, Volume 36, Issue 7, 1 April 2020, Pages 2272–2274, https://doi.org/10.1093/bioinformatics/btz921 Published: 10 December 2019

It looks to get close to what you want. Your axis labels are different. I haven't tried adjusting those and so I cannot offer advice on that aspect at this time.

Log in to answer this question.