Plot sequences using matplotlib
1
0
Entering edit mode
5.9 years ago

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 • 4.3k views
ADD COMMENT
1
Entering edit mode

plot the sequence using matplotlib.

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

ADD REPLY
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

https://ibb.co/nNcc58 I want something just like the circled area..

ADD REPLY
0
Entering edit mode

It's a shame it took us 11 hours to figure out what you need, while that information should have been part of your initial question.

See also How to add images to a Biostars post

ADD REPLY
0
Entering edit mode

sorry for that ...can you help me ?

ADD REPLY
2
Entering edit mode
5.9 years ago
Joe 21k

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.

ADD COMMENT

Login before adding your answer.

Traffic: 1814 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6