Location: Modeling the Recruitment and Synchronization of SMCs (Koenigsberger et al. 2004) @ 0303f8ff0987 / Simulation / src / simFig7E_3.py

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-06-23 10:50:40+12:00
Desc:
Add Fig 7 and update documentation
Permanent Source URI:
https://models.physiomeproject.org/workspace/874/rawfile/0303f8ff0987b0abb8b9ca5cb75b2786a4150e94/Simulation/src/simFig7E_3.py

# importing modules
import sys as sys
import os 
import numpy

# Getting the name of the directory where this file is present.
current = os.path.dirname(os.path.realpath(__file__))  # src
# Getting the parent directory name where the current directory is present.
parent = os.path.dirname(current) # Simulation
# Getting the grandparent directory name
gparent = os.path.dirname(parent) # RecruitmentSynchronization_SMCs
# The path where the simExp.py is saved
mpath = gparent + '\\cellLib\\Scripts'
# appending a path
sys.path.append(mpath)
import simExpNrst
# The simulation .sedml file
simfile = gparent+'\\Experiments\\SMC_KCl_noise.sedml'
# Set the parameters for simulation
start, ending, pointInterval = 0, 90, 0.01
mu, sigma = 0, 0.0015 # mean and standard deviation
s = numpy.random.normal(mu, sigma, size=(4, 9000))
g_Ca,g_Cl,g_Ki,g_NCX=0.00129,0.00134,0.00446,0.00316
savefiles=[parent+'\\simulatedData\\simFig7E_b'+'_'+str(sigma)]
varSet = {'free_para/E':{'constants':0.01},'free_para/J_PLCagonisti':{'constants':0.06},'clamp_para/X_Test':{'constants':5}}
varLoop = {'noise_G/G_Ca':{'constants':g_Ca+s[0,:]},'noise_G/G_Cl':{'constants':g_Cl+s[1,:]},
'noise_G/G_Ki':{'constants':g_Ki+s[2,:]},
'noise_G/G_NCX':{'constants':g_NCX+s[3,:]}}
varSave = {'t':{'voi':False},'output/c_i':{'states':False},'output/s_i':{'states':False},'output/v_i':{'states':False},'output/I_i':{'states':False},'output/w_i':{'states':False}}
simExpNrst.simExp(simfile, savefiles,start, ending, pointInterval,varSet,varLoop,varSave)
savefiles=[parent+'\\simulatedData\\simFig7E_c'+'_'+str(sigma)]
varSet = {'free_para/E':{'constants':0.01},'free_para/J_PLCagonisti':{'constants':0.06},'clamp_para/X_Test':{'constants':15}}
simExpNrst.simExp(simfile, savefiles,start, ending, pointInterval,varSet,varLoop,varSave)
savefiles=[parent+'\\simulatedData\\simFig7E_d'+'_'+str(sigma)]
varSet = {'free_para/E':{'constants':0.01},'free_para/J_PLCagonisti':{'constants':0.06},'clamp_para/X_Test':{'constants':50}}
simExpNrst.simExp(simfile, savefiles,start, ending, pointInterval,varSet,varLoop,varSave)