This repository holds essential files for the growth paper due to valvular disorders with PyMyoVent submitted to Frontiers in Physiology.
- To reproduce all figures shown in the paper, you need to follow the below steps:
In general, the whole proccess can be divided into three main steps:
Step Number | Description |
---|---|
1 | Generating a batch file of required input files for PyMyoVent |
2 | Running PyMyoVent using generated input files in step 1. |
3 | Generating figures using simulated raw data from step 2. |
Let's start ....
-
First clone the repository on your local computer.
-
On your computer terminal prompt, navigate to the folder where the repositore is already stored:
$cd <path_to_repo_on_your_computer>
- Handle all required dependencies for generating figures by running the following command in terminal prompt:
$ pip install -r requirements.txt
- After successfully installing the required packages, you can generate a batch file for all simulations used in this paper by doing following steps:
- Navigate to the
simulations
folder in the repository :$cd simulations
. - Run the python file
batch_generator.py
via following command:$ python batch_generator.py
- In couple of second you should see a batch file named
batch.json
along all folders containing the required "input" files are generated insimulations
folder. Thebatch.json
file would look like this:
-
you need to find out the absolute path to your
batch.json
file in thesimulations
folder. To do that: -
Open another terminal prompt and navigate to PyMyoVent/Python_code folder on your local computer.
$cd <path_to_PyMyoVent>/Python_code
.
- Note: If you don't have PyMyoVent repository on your computer check this to see how to clone it.
- Now run PyMyovent code and and give the absolute path to
batch.json
file as an argument to the code:$python PyMyoVent.py <absolute_path_to_simulations_folder>/batch.json
- This would take several hours to run all simulations on a personal computer.
Once you have all simulated results in the simulations
folder.
-
On your first terminal prompt window that you used for step 1, navigate to
analysis
folder by following command:$cd ../analysis
. -
Run
generate_figs.py
script with the following argument input:$python generate_figs.py all_figures
- It takes several minutes to read raw data, do some processing on them, and finally generate all figures.
- Figures will be stored in the
figures
folder in the main root of the repository.