-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun_pipeline.sh
More file actions
executable file
·55 lines (48 loc) · 1023 Bytes
/
run_pipeline.sh
File metadata and controls
executable file
·55 lines (48 loc) · 1023 Bytes
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
46
47
48
49
50
51
52
53
54
55
#!/bin/bash -l
PE=false
while [[ $# > 0 ]]
do
key="$1"
case $key in
--broad)
BROAD="$2"
shift
;;
--narrow)
NARROW="$2"
shift
;;
--input)
INPUT="$2"
shift
;;
--assembly)
ASSEMBLY="$2"
shift
;;
--genome_size)
GSIZE="$2"
shift
;;
--paired_end)
PE=true
;;
*)
;;
esac
shift
done
PIPELINE_DIR=`dirname $0`;
if [ PE ]; then
MAKEFILE=$PIPELINE_DIR/chipseq-pe.makefile
else
MAKEFILE=$PIPELINE_DIR/chipseq.makefile
fi
for broadmark in ${BROAD//,/ }
do
make -f $MAKEFILE ${broadmark}_broad_report.txt MARK=$broadmark INPUT=$INPUT ASSEMBLY=$ASSEMBLY GSIZE=$GSIZE
done
for narrowmark in ${NARROW//,/ }
do
make -f $MAKEFILE ${narrowmark}_narrow_report.txt MARK=$narrowmark INPUT=$INPUT ASSEMBLY=$ASSEMBLY GSIZE=$GSIZE
done