| Visualize the result of DeepTMHMM into protein topology.
In my case, I want to visualize a big transmembrane protein with ~2500AA, in order to better compare and inverstivate its structure with others. However, Protter gave wrong positions of N-term and C-term when I submited the sequence of my protein. Although I tried to customize positions of amino acids via the output of DeepTMHMM, the positions of N-term and C-term are still wrong. I also tried TMRPres2D, but it is much less flexible.
Therefore, I want a program that can help me visualize the topology of transmembrane proteins in a coding way with much more flexible and customized functions.
Example of Q92508 in my caseI didn't buid a Python package for this program, because the current features are very basic. The important module is deeptmhmm2topology folder, in which only 2 important .py files (DeepTMHMM2Topology.py and tools.py). The VizPlain.py is just an example to visualize the generated circle centers of the topology, and the visulization is plain just like its name.
Therefore, feel free to copy the module folder of deeptmhmm2topology, and use it as you want. An example of usage is in run.py.
With the input of TMRs.gff3 and topologies.3line files from DeepTMHMM, this program deeptmhmm2topology will result in a dataframe with columns = ["position", "AA", "IMO", "start", "end", "elngth", "center"], for exampel:
position,AA,IMO,start,end,length,center
1,M,I,1,8,8,"(0.0, 0.0)"
2,E,I,1,8,8,"(0.2, -0.34641)"
3,P,I,1,8,8,"(0.6, -0.34641)"
4,H,I,1,8,8,"(0.8, 0.0)"
5,V,I,1,8,8,"(0.8, 0.4)"
6,L,I,1,8,8,"(0.8, 0.8)"
7,G,I,1,8,8,"(0.8, 1.2)"
8,A,I,1,8,8,"(0.8, 1.6)"
9,V,M,9,25,17,"(0.8, 2.0)"
10,L,M,9,25,17,"(1.158968, 2.176471)"
11,Y,M,9,25,17,"(0.8, 2.352941)"
12,W,M,9,25,17,"(1.158968, 2.529412)"
13,L,M,9,25,17,"(0.8, 2.705882)"
14,L,M,9,25,17,"(1.158968, 2.882353)"
... ...
- I want the intercellular and extracellular segments of protein can fold as a S-like curve, so I formally state this question as a linear integer optimization problem.
-
$N$ is the number of circles in the S-like curve. -
$a_i$ is the number of circles in the curve peak, and the maximum number of circles on$a_i$ is$a_{max}$ -
$b_j$ is the number of circles in the vertical direction, and the maximum number of circles on$b_j$ is$b_{max}$ -
$x$ is the number of peak curves. -
$y$ is the number of turns.
Therefor,
