Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions DelG_to_Ki_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
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
Ki_value = math.exp((delg*1000)/(1.985*298.15)) # this will calculate the dissociation constant from the Gibbs free energy of binding
Ki_value1 = (math.exp((delg*1000)/(1.985*298.15)))*1000000 # this will calculate the dissociation constant from the Gibbs free energy of binding
Ki_value2 = (math.exp((delg*1000)/(1.985*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
Expand Down