Location: Hodgkin & Huxley (1952) model @ ab2962b87966 / BG / IK_BG.cellml

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-03-31 10:48:40+13:00
Desc:
Add open channel IV of HH models; Add simulation and plot python scripts
Permanent Source URI:
https://models.fieldml.org/workspace/64f/rawfile/ab2962b8796666ad9938a2577611c954f006b5fd/BG/IK_BG.cellml

<?xml version='1.0' encoding='UTF-8'?>
<!-- The BG of K channel model that combines channel current and gating modules. -->
<model name="IK_BG" xmlns="http://www.cellml.org/cellml/1.1#" xmlns:cellml="http://www.cellml.org/cellml/1.1#" xmlns:xlink="http://www.w3.org/1999/xlink">
    <import xlink:href="../cellLib/BG/units_BG.cellml">
        <units name="per_fmol" units_ref="per_fmol"/>
        <units name="fmol" units_ref="fmol"/>
        <units name="fmol_per_sec" units_ref="fmol_per_sec"/>
        <units name="fA" units_ref="fA"/>
    </import>
    <import xlink:href="../cellLib/BG/IX_BG.cellml">
        <component component_ref="IX_BG" name="IX_BG"/>
    </import>
    <import xlink:href="channelK_BG.cellml">
        <component component_ref="channelK_BG" name="channelK_BG"/>
    </import>
    <import xlink:href="../cellLib/BG/gate_n4_BG.cellml">
        <component component_ref="gate_n4_BG" name="gate_n4_BG"/>
    </import>
    <component name="IK_BG">
        <!--Parameters-->
        <variable name="T" private_interface="out" public_interface="in" units="kelvin"/>
        <variable name="kappa_K" private_interface="out" public_interface="in" units="fmol_per_sec"/>
        <variable name="z_K" private_interface="out" public_interface="in" units="dimensionless"/>
        <variable name="K_i_K" private_interface="out" public_interface="in" units="per_fmol"/>
        <variable name="q_i_K_init" private_interface="out" public_interface="in" units="fmol"/>
        <variable name="K_e_K" private_interface="out" public_interface="in" units="per_fmol"/>
        <variable name="q_e_K_init" private_interface="out" public_interface="in" units="fmol"/>
        <variable name="q_S0_init" private_interface="out" public_interface="in" units="fmol"/>
        <variable name="q_S1_init" private_interface="out" public_interface="in" units="fmol"/>
        <variable name="q_S2_init" private_interface="out" public_interface="in" units="fmol"/>
        <variable name="q_S3_init" private_interface="out" public_interface="in" units="fmol"/>
        <variable name="q_S4_init" private_interface="out" public_interface="in" units="fmol"/>
        <variable name="K_S0" private_interface="out" public_interface="in" units="per_fmol"/>
        <variable name="K_S1" private_interface="out" public_interface="in" units="per_fmol"/>
        <variable name="K_S2" private_interface="out" public_interface="in" units="per_fmol"/>
        <variable name="K_S3" private_interface="out" public_interface="in" units="per_fmol"/>
        <variable name="K_S4" private_interface="out" public_interface="in" units="per_fmol"/>
        <variable name="kappa_n1" private_interface="out" public_interface="in" units="fmol_per_sec"/>
        <variable name="kappa_n2" private_interface="out" public_interface="in" units="fmol_per_sec"/>
        <variable name="kappa_n3" private_interface="out" public_interface="in" units="fmol_per_sec"/>
        <variable name="kappa_n4" private_interface="out" public_interface="in" units="fmol_per_sec"/>
        <variable name="z_n_f" private_interface="out" public_interface="in" units="dimensionless"/>
        <variable name="z_n_r" private_interface="out" public_interface="in" units="dimensionless"/>
        <!--Inputs-->
        <variable name="t" private_interface="out" public_interface="in" units="second"/>
        <variable name="V_m" private_interface="out" public_interface="in" units="volt"/>
        <!--Outputs-->
        <variable name="I_K" private_interface="in" public_interface="out" units="fA"/>
        <variable name="A_g_K" private_interface="in" public_interface="out" units="J_per_mol"/>
        <variable name="q_S0" private_interface="in" public_interface="out" units="fmol"/>
        <variable name="q_S1" private_interface="in" public_interface="out" units="fmol"/>
        <variable name="q_S2" private_interface="in" public_interface="out" units="fmol"/>
        <variable name="q_S3" private_interface="in" public_interface="out" units="fmol"/>
        <variable name="q_S4" private_interface="in" public_interface="out" units="fmol"/>
    </component>
    <group>
        <relationship_ref relationship="encapsulation"/>
        <component_ref component="IK_BG">
            <component_ref component="IX_BG"/>
            <component_ref component="channelK_BG"/>
            <component_ref component="gate_n4_BG"/>
        </component_ref>
    </group>
    <connection>
        <map_components component_1="IK_BG" component_2="channelK_BG"/>
        <map_variables variable_1="T" variable_2="T"/>
        <map_variables variable_1="t" variable_2="t"/>
        <map_variables variable_1="kappa_K" variable_2="kappa_K"/>
        <map_variables variable_1="z_K" variable_2="z_K"/>
        <map_variables variable_1="K_i_K" variable_2="K_i_K"/>
        <map_variables variable_1="q_i_K_init" variable_2="q_i_K_init"/>
        <map_variables variable_1="K_e_K" variable_2="K_e_K"/>
        <map_variables variable_1="q_e_K_init" variable_2="q_e_K_init"/>
    </connection>
    <connection>
        <map_components component_1="IK_BG" component_2="gate_n4_BG"/>
        <map_variables variable_1="T" variable_2="T"/>
        <map_variables variable_1="t" variable_2="t"/>
        <map_variables variable_1="q_S0_init" variable_2="q_S0_init"/>
        <map_variables variable_1="q_S1_init" variable_2="q_S1_init"/>
        <map_variables variable_1="q_S2_init" variable_2="q_S2_init"/>
        <map_variables variable_1="q_S3_init" variable_2="q_S3_init"/>
        <map_variables variable_1="q_S4_init" variable_2="q_S4_init"/>
        <map_variables variable_1="K_S0" variable_2="K_S0"/>
        <map_variables variable_1="K_S1" variable_2="K_S1"/>
        <map_variables variable_1="K_S2" variable_2="K_S2"/>
        <map_variables variable_1="K_S3" variable_2="K_S3"/>
        <map_variables variable_1="K_S4" variable_2="K_S4"/>
        <map_variables variable_1="kappa_n1" variable_2="kappa_n1"/>
        <map_variables variable_1="kappa_n2" variable_2="kappa_n2"/>
        <map_variables variable_1="kappa_n3" variable_2="kappa_n3"/>
        <map_variables variable_1="kappa_n4" variable_2="kappa_n4"/>
        <map_variables variable_1="z_n_f" variable_2="z_n_f"/>
        <map_variables variable_1="z_n_r" variable_2="z_n_r"/>
        <map_variables variable_1="q_S0" variable_2="q_S0"/>
        <map_variables variable_1="q_S1" variable_2="q_S1"/>
        <map_variables variable_1="q_S2" variable_2="q_S2"/>
        <map_variables variable_1="q_S3" variable_2="q_S3"/>
        <map_variables variable_1="q_S4" variable_2="q_S4"/>
        <map_variables variable_1="A_g_K" variable_2="A_g_K"/>
    </connection>
    <connection>
        <map_components component_1="IK_BG" component_2="IX_BG"/>
        <map_variables variable_1="V_m" variable_2="V_m"/>
        <map_variables variable_1="I_K" variable_2="I_X"/>
    </connection>
    <connection>
        <map_components component_1="IX_BG" component_2="gate_n4_BG"/>
        <map_variables variable_1="mu_p" variable_2="mu_p"/>
        <map_variables variable_1="v_g_X" variable_2="v_n_K"/>
    </connection>
    <connection>
        <map_components component_1="IX_BG" component_2="channelK_BG"/>
        <map_variables variable_1="mu_p" variable_2="mu_p"/>
        <map_variables variable_1="v_p_X" variable_2="v_p_K"/>
    </connection>
    <connection>
        <map_components component_1="channelK_BG" component_2="gate_n4_BG"/>
        <map_variables variable_1="A_g_K" variable_2="A_g_K"/>
    </connection>
</model>