/
cluster_facets.sh
executable file
·54 lines (42 loc) · 1.02 KB
/
cluster_facets.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
46
47
48
49
50
51
52
53
54
#!/bin/bash
# Set default shell to bash
#$ -S /bin/bash
# Set default memory limits
#$ -l h_vmem=16G,virtual_free=16G
# Change directory to directory initiated in
#$ -cwd
# merge std error and std out into one file
#$ -j y
# email settings (only send if job aborted or suspended) (e = job ended)
#$ -m sa
#Job name
#$ -N facets_pipeline
# Read in bashrc
if [ -f ~/.bashrc ] ; then
. ~/.bashrc
fi
#SDIR="$( cd "$( dirname "$0" )" && pwd )"
export SDIR="/cbio/ski/chan/home/riazn/programs/FACETS.app"
if [ ! -e $SDIR ]; then
export SDIR="/home/riazn/programs/FACETS.app"
fi
if [ -z $TUMORBAM ]; then
echo "Must set TUMORBAM"
exit 0;
fi
if [ -z $NORMALBAM ]; then
echo "Must set NORMALBAM"
exit 0;
fi
if [ -z $BAMDIR ]; then
echo "Must set BAMDIR"
exit 0;
fi
if [ -z $ODIR ]; then
echo "Must set ODIR (output directory)"
exit 0;
fi
#echo $SDIR
cd $ODIR
#echo ./run.sh $BAMDIR/$NORMALBAM $BAMDIR/$TUMORBAM
$SDIR/run.sh $BAMDIR/$NORMALBAM $BAMDIR/$TUMORBAM > output/output_$NORMALBAM_$TUMORBAM