-
Notifications
You must be signed in to change notification settings - Fork 19
/
run_example.sh
executable file
·40 lines (31 loc) · 1.17 KB
/
run_example.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
# File: run_example.sh
# Author: Kelly Chang
# Date: Oct 2017
# Version: 1.0
#
# Description: Bash script to demonstrate the use of AP simulation scripts.
# This code is provided for example only.
#
# run control simulation
Rscript AP_simulation.R >& logfiles/control
# simulate dofetilide with fixed parameters
DRUG="dofetilide"
DOSE="1-10,15,20,25"
Rscript AP_simulation.R -d "$DRUG" -x "$DOSE" >& logfiles/"$DRUG"
# simulate dofetilide with parameters from uncertainty sampling distributions
ISAMP="1-10"
Rscript AP_simulation.R -d "$DRUG" -i "$ISAMP" -x "$DOSE" >& logfiles/"$DRUG"."$ISAMP"
# simulate dofetilide uncertainty sample with individual currents' effects omitted, one at a time
ISAMP="1"
DOSE="1-4"
Rscript AP_simulation.R -d "$DRUG" -o -i "$ISAMP" -x "$DOSE" >& logfiles/"$DRUG"."$ISAMP".drop_currents
# alternatively, specify which current's effects to omit
DROPCURRENT="hERG"
#DROPCURRENT="ICaL"
#DROPCURRENT="INaL"
#DROPCURRENT="INa"
#DROPCURRENT="IKs"
#DROPCURRENT="Ito"
#DROPCURRENT="IK1"
Rscript AP_simulation.R -d "$DRUG" -r "$DROPCURRENT" -i "$ISAMP" -x "$DOSE" >& logfiles/"$DRUG"."$ISAMP".drop_"$DROPCURRENT"