<p>You might have a look at the biotite package, and more specifically to its <code>biotite.sequence.graphics</code> module: <a href="https://www.biotite-python.org/apidoc/biotite.sequence.graphics.html#module-biotite.sequence.graphics" rel="nofollow noreferrer">https://www.biotite-python.org/apidoc/biotite.sequence.graphics.html#module-biotite.sequence.graphics</a>.</p>
<p>Disclaimer: I haven't used these functionalities myself, apart from using one of their colour schemes for DNA.</p>

CC BY-SA 4.0
2022-03-30T20:08:51.527Z
2022-03-30T20:08:51.527Z
bli
<p>I'm working towards developing some visualization method for multiple protein sequences and subsequences using PYTHON. I want to  show the alignment of many fragment sequences to the original sequences as well as the position of fragments and the amino acids. The amino acids are to be colored by some physico-chemical properties, something similar but not exactly  as this:</p>
<p><a href="https://i.sstatic.net/OEt4b.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/OEt4b.png" alt="enter image description here" /></a></p>
<p>Can somebody suggest some Python libraries suitable for this type of work? The output can be graphics file like png or interactive graphics or html, doesn't matter really for me</p>
<p>Thanks</p>

<python><visualization>
Suggestion for python graphics library to plot aligned protein sequences
# Suggestion for python graphics library to plot aligned protein sequences

(Asked by: username_0 on 2022-03-28)

I'm working towards developing some visualization method for multiple protein sequences and subsequences using PYTHON. I want to show the alignment of many fragment sequences to the original sequences as well as the position of fragments and the amino acids. The amino acids are to be colored by some physico-chemical properties, something similar but not exactly as this:

[![enter image description here](https://i.sstatic.net/OEt4b.png)](https://i.sstatic.net/OEt4b.png)

Can somebody suggest some Python libraries suitable for this type of work? The output can be graphics file like png or interactive graphics or html, doesn't matter really for me

Thanks

**Tags:** python, visualization

---

## 1 answers

### Answer by username_1 on 2022-03-30. Score: 3

You might have a look at the biotite package, and more specifically to its `biotite.sequence.graphics` module: <https://www.biotite-python.org/apidoc/biotite.sequence.graphics.html#module-biotite.sequence.graphics>.

Disclaimer: I haven't used these functionalities myself, apart from using one of their colour schemes for DNA.


---

