- Author:
- WeiweiAi <wai484@aucklanduni.ac.nz>
- Date:
- 2022-04-22 11:02:00+12:00
- Desc:
- Correct a typo
- Permanent Source URI:
- https://staging.physiomeproject.org/workspace/83f/rawfile/bcd7a67224cb0020223b774457f7e305330b449f/Components/txt2cellml.ps1
## Convert .txt to .cellml
# go to the OpenCOR folder
$dpath= 'C:\Users\wai484\Documents\OpenCOR'
cd $dpath
# model path
$mpath='C:\Users\wai484\Documents\SinglePASMC\Components'
$txtfiles="JVOCCi", "JNCXi", "JSERCAi", "JCICRi", "JPMCAi", "Jleaki", "JNKAi","JCli","JKi","Para","Cai","Casr","Vm","PASMC"
foreach ($txtfile in $txtfiles)
{
./OpenCOR -c CellMLTextView::export $mpath\$txtfile.txt | out-file $mpath\$txtfile.cellml -encoding utf8
}
./OpenCOR -c CellMLTextView::export C:\Users\wai484\Documents\SinglePASMC\Experiments\PASMC_test.txt | out-file C:\Users\wai484\Documents\SinglePASMC\Experiments\PASMC_test.cellml -encoding utf8