-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·51 lines (37 loc) · 720 Bytes
/
run.sh
File metadata and controls
executable file
·51 lines (37 loc) · 720 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
#!/bin/bash
SDIR="$( cd "$( dirname "$0" )" && pwd )"
usage() {
echo
echo " usage:: FACETS.app/run.sh [--tag TAG] [-o | --outdir ODIR] TUMORBAM [NORMALBAM]"
echo
exit
}
ODIR="."
while [[ $1 =~ ^- ]]; do
case $1 in
--tag)
TAG="$2"
shift 2
;;
-o|--outdir)
ODIR="$2"
shift 2
;;
-*|--*)
echo "Unknown option $1"
usage
;;
esac
done
if [[ "$#" -lt 1 ]]; then
usage
fi
TUMORBAM=$1; shift
NORMALBAM=$1; shift
echo "TAG=\"$TAG\""
echo "TUMORBAM="$TUMORBAM
echo "NORMALBAM=\"$NORMALBAM\""
echo "ODIR=\"$ODIR\""
# NBASE=$(basename $NORMALBAM | sed 's/.bam//')
# TBASE=$(basename $TUMORBAM | sed 's/.bam//')
# mkdir -p $ODIR