-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun-all.sh
executable file
·42 lines (34 loc) · 982 Bytes
/
run-all.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
#!/bin/sh
## Usage
# sh run-all.sh brainspan run5-v1.5.30
## Skip fullCov but run regionMatrix:
# sh run-all.sh brainspan run5-v1.5.30 TRUE FALSE TRUE
# Define variables
EXPERIMENT=$1
PREFIX=$2
SKIP1=${3-"FALSE"}
SKIP6=${4-"FALSE"}
SKIP8=${5-"FALSE"}
mkdir -p ${EXPERIMENT}/CoverageInfo
mkdir -p ${EXPERIMENT}/derAnalysis
mkdir -p ${EXPERIMENT}/regionMatrix
mkdir -p ${EXPERIMENT}/regionMatrix-vs-DERs
mkdir -p ${EXPERIMENT}/coverageToExon
if [[ $SKIP1 == "FALSE" ]]
then
sh step1-fullCoverage.sh ${EXPERIMENT}
fi
sh step2-makeModels.sh ${EXPERIMENT} ${PREFIX}
sh step3-analyzeChr.sh ${EXPERIMENT} ${PREFIX}
sh step4-mergeResults.sh ${EXPERIMENT} ${PREFIX}
sh step5-derfinderReport.sh ${EXPERIMENT} ${PREFIX}
if [[ $SKIP6 == "FALSE" ]]
then
sh step6-regionMatrix.sh ${EXPERIMENT}
fi
sh step7-regMatVsDERs.sh ${EXPERIMENT} ${PREFIX}
if [[ $SKIP8 == "FALSE" ]]
then
sh step8-coverageToExon.sh ${EXPERIMENT}
fi
sh step9-summaryInfo.sh ${EXPERIMENT} ${PREFIX}