This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Plot sequences using matplotlib

I want to plot sequence from a fasta file. plot the sequence using matplotlib... How can I do this ? I want a plot like this one...

Capture

sequencing matplotlib fasta plot

plot the sequence using matplotlib.

What does that mean? How should your plot look like?

I want to plot the sequence in a straight line....different color for A T G and C

Still not clear to me. Do you have an example? Or can you draw something on paper?

1 answer

It will be a lot of work to code something like that in MPL from scratch I suspect. Take a look at BioPython, which has some graphical tools.

If you just want to view a sequence and its translation, I would suggest using a proper browser like SnapGene, Artemis, Geneious, CLC, Jalview or any number of other alternatives.

Log in to answer this question.