forked from BGI-Qingdao/stlfr2supernova_pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·46 lines (39 loc) · 1.26 KB
/
run.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
41
42
43
44
45
#!/bin/bash
#SCRIPT_PATH=`dirname $0`
source ./profile
if [[ ! -f _step_0_end.txt ]] ; then
echo "---------------------Step 0 start ---"
# run step 0
echo `date` >>_step_0_start.txt
$SCRIPT_PATH/step_0_split_barode.sh || exit 1
echo `date` >>_step_0_end.txt
echo "---------------------Step 0 end ---"
fi
if [[ $USE_FILTER == "yes" ]] ; then
if [[ ! -f _step_1_end.txt ]] ; then
echo "---------------------Step 1 start ---"
# run step 1
echo `date` >>_step_1_start.txt
$SCRIPT_PATH/step_1_filter.sh || exit 1
echo `date` >>_step_1_end.txt
echo "---------------------Step 1 end ---"
fi
else
echo "--------------------- No filter detect"
fi
if [[ ! -f _step_2_end.txt ]] ; then
# run step 2
echo "---------------------Step 2 start ---"
echo `date` >>_step_2_start.txt
$SCRIPT_PATH/step_2_fake_10X_data.sh || exit 1
echo `date` >>_step_2_end.txt
echo "---------------------Step 2 end ---"
fi
if [[ ! -f _step_3_end.txt ]] ; then
# run step 2
echo "---------------------Step 3 start ---"
echo `date` >>_step_3_start.txt
$SCRIPT_PATH/step_3_run_supernova.sh || exit 1
echo `date` >>_step_3_end.txt
echo "---------------------Step 3 end ---"
fi