-
Notifications
You must be signed in to change notification settings - Fork 7
/
DelG_to_Ki_converter.py
14 lines (11 loc) · 1.1 KB
/
DelG_to_Ki_converter.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/python
import math # This will import math module
delg = float(input("What is your DelG in kcal/mol?" ))
Ki_value = math.exp((delg*1000)/(1.9882*298.15)) # this will calculate the dissociation constant from the Gibbs free energy of binding
Ki_value1 = (math.exp((delg*1000)/(1.9882*298.15)))*1000000 # this will calculate the dissociation constant from the Gibbs free energy of binding
Ki_value2 = (math.exp((delg*1000)/(1.9882*298.15)))*1000000000 # this will calculate the dissociation constant from the Gibbs free energy of binding
print("Ki =", Ki_value, "M") # this will print out the results in M
print("Ki =", Ki_value1, "microM") # this will print out the results in microM
print("Ki =", Ki_value2, "nM") # this will print out the results in nM
# to run the script use this command: python DelG_to_Ki_converter.py
# if you are using this script, please cite: Shityakov, S.; Broscheit, J.; Forster, C., alpha-Cyclodextrin dimer complexes of dopamine and levodopa derivatives to assess drug delivery to the central nervous system: ADME and molecular docking studies. Int J Nanomedicine 2012, 7, 3211-9.