Location: BG_K_ATP @ f7866162901c / parameter_finder / kinetic_parameters_K_ATP.py

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-04-11 14:58:43+12:00
Desc:
Changing method of number of channels present. Guess density. Using SA of human iPSC for Kernik. Updating volumes
Permanent Source URI:
http://models.cellml.org/workspace/83a/rawfile/f7866162901c791abc6610a6eb544540c298d618/parameter_finder/kinetic_parameters_K_ATP.py

# Return kinetic parameters, constraints, and vector of volumes in each
# compartment (pL) (1 if gating variable, or in element corresponding to
# kappa)

# Translated from Pan 2018 cardiac AP 

import numpy as np

def kinetic_parameters(M, include_type2_reactions, dims, V):
    # Set the kinetic rate constants

    num_cols = dims['num_cols']
    num_rows = dims['num_rows']


    # constants are stored in V
    F = V['F']
    R = V['R']
    T = V['T']
    N_A = V['N_A']
    cKo = V['cKo']
    G_GHK = 2.406602454217436e-15    # Unit mA/mM
    P_KATP = G_GHK/F * 1e12 # Unit pL/s . G_GHK [=] Amp/(mol/s)
    x_KATP_channel = 3700e5 / N_A * 1e15 # unit    fmol
    x_KATP_channel = V['numChannels']/N_A*1e15 # unit fmol

    # Calculate bond graph constants from kinetic parameters
    # Note: units of kappa are fmol/s, units of K are fmol^-1
    kf_KATP = [P_KATP/x_KATP_channel]
    kr_KATP = [P_KATP/x_KATP_channel]

    k_kinetic = kf_KATP + kr_KATP

    # CONSTRAINTS
    N_cT = []
    K_C = []

    # volume vector
    # W = list(np.append([1] * num_cols, [V['V_myo']] * num_rows))
    W = [1] * num_cols + [V['V_myo'], V['V_o']]

    return (k_kinetic, N_cT, K_C, W)