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

Write a dotplot program that reads two proteins from FASTA files specified on the command line (see sys.argv in the Python documentation). The program should output a simple dotplot to the terminal. The dotplot should involve only the first 70 residues of the sequence displayed horizontally and the first 20 residues of the sequence displayed vertically, so as to fit in the standard terminal screen. The first row and the first column should display the two sequences. In the dotplot proper, an asterisk (*) should mark locations corresponding to matching entries, while the rest should be left empty.

Can anyone help me with the code? I dont understand it.

python

This looks like an assignment question - we do not encourage such questions, especially when you do not give us details on what you've tried and where you're running into a difficulty.

I'm closing this question until you address that part.

Hello oshin707!

We believe that this post does not fit the main topic of this site.

This looks like an assignment question. Please see my other comment.

For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.

If you disagree please tell us why in a reply below, we'll be happy to talk about it.

Cheers!

ok. i will post whatever i have tried till now. thank you

Forward link: plotting with python

For future reference: you could have edited this thread and the mods would have opened it back up.

0 answers

No answers yet.

Log in to answer this question.