Location: Modeling the Recruitment and Synchronization of SMCs (Koenigsberger et al. 2004) @ 14c89d8f26bf / Components / buildsrc / txt2cellml.ps1

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-05-24 10:07:05+12:00
Desc:
Add new experiments to expose conductances for accepting noise
Permanent Source URI:
https://models.physiomeproject.org/workspace/874/rawfile/14c89d8f26bf737fb7f9589aeb10dabf4ac3c186/Components/buildsrc/txt2cellml.ps1

## Convert .txt to .cellml
# If this script cannot be loaded, type "Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process" in the PowerShell terminal
# The OpenCOR installation folder path
$dpath= 'C:/Users/wai484/Documents/OpenCOR'
# The text file name
$txtfiles="JNKAi","JPLCdeltai","Jdegradi","JIP3i","IP3","Cai","SMC","JKi","Para"
# The model directory where .txt files are saved
$tpath='C:/Users/wai484/Documents/RecruitmentSynchronization_SMCs/Components/buildsrc'
# The model directory where .cellml files are saved
$cpath='C:/Users/wai484/Documents/RecruitmentSynchronization_SMCs/Components'
# Execute the command to do the conversion
foreach ($txtfile in $txtfiles)
{
  .$dpath/OpenCOR -c CellMLTextView::export $tpath/$txtfile.txt | out-file $cpath/$txtfile.cellml -encoding utf8
}
$txtfile="SMC_KCl"
$cpath='C:/Users/wai484/Documents/RecruitmentSynchronization_SMCs/Experiments'
.$dpath/OpenCOR -c CellMLTextView::export $tpath/$txtfile.txt | out-file $cpath/$txtfile.cellml -encoding utf8
$txtfile="SMC_osc"
$cpath='C:/Users/wai484/Documents/RecruitmentSynchronization_SMCs/Experiments'
.$dpath/OpenCOR -c CellMLTextView::export $tpath/$txtfile.txt | out-file $cpath/$txtfile.cellml -encoding utf8
$txtfile="SMC_KCl_noise"
$cpath='C:/Users/wai484/Documents/RecruitmentSynchronization_SMCs/Experiments'
.$dpath/OpenCOR -c CellMLTextView::export $tpath/$txtfile.txt | out-file $cpath/$txtfile.cellml -encoding utf8
$txtfile="SMC_osc_noise"
$cpath='C:/Users/wai484/Documents/RecruitmentSynchronization_SMCs/Experiments'
.$dpath/OpenCOR -c CellMLTextView::export $tpath/$txtfile.txt | out-file $cpath/$txtfile.cellml -encoding utf8