import calculate_trimer_coordinates
Points means the number of trimer.
T_points means the number trimer created within the error range.
R is the radius of the HIV virus r is the radius of each trimer
R = 400
r = 52.0769942809
calculate_trimer_coordinates.algorithm(R,r)
import pointsPlot
pointsPlot.drawPoints([])
import linesPlot
linesPlot.drawLines([], [])
tabulate relationship of R and trimer_number
Min Radius is start radius Max Radius is end radius Interval is increasing amount of each iteration
r is radius of trimmer, you could update r as well
minRadius = 600
maxRadius = 700
interval = 10
r = 52.0769942809
radius_list = []
number_of_trimers_list = []
column_data = []
while (minRadius <= maxRadius):
radius_list.append(minRadius)
number_of_trimers = calculate_trimer_coordinates.algorithm(minRadius,r,False)
number_of_trimers_list.append(number_of_trimers)
column_data.append([minRadius, number_of_trimers])
minRadius += interval
import pandas as pd
pd.DataFrame(column_data, columns=["Radius", "Number of trimers"])
The x-axis is the radius and y-axis is the number of trimers
import matplotlib
import matplotlib.pyplot as plt
# figure 6
fig, ax = plt.subplots()
ax.plot(radius_list, number_of_trimers_list)
ax.set(xlabel='Radius (Angstrom)', ylabel='number_of_trimers ',
title='Radius and Number of Trimers Relation')
ax.grid()
fig.savefig("relation.png")
plt.show()
Render the PyMol model will take longer time when you have more trimmers in the previous model.
import pymol_plot_trimer
pngFilePath = '/tmp/HIV.png'
r = 52.0769942809
pymol_plot_trimer.main(pngFilePath, r)
from IPython.display import Image
Image(filename='/tmp/HIV.png')
import calculate_flatten_trimmer_coordinations
calculate_flatten_trimmer_coordinations.plot()
import pymol_2D_plot_trimer
pngFilePath = '/tmp/flattenHIV.png'
pymol_2D_plot_trimer.main(pngFilePath)
from IPython.display import Image
Image(filename='/tmp/flattenHIV.png')