annotate vcfs2fasta.sh @ 17:a2ffbf5f50c1 draft

Uploaded
author ulfschaefer
date Fri, 18 Dec 2015 05:13:12 -0500
parents f72039c5faa4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
1 #!/bin/bash
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
2
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
3 echo $@
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
4
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
5 OUTPUT=$1
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
6 shift
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
7 WITHMIXTURES=$1
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
8 shift
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
9 COLUMNNS=$1
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
10 shift
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
11 SAMPLENS=$1
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
12 shift
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
13 REFERENCE=$1
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
14 shift
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
15 INCLUDE=$1
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
16 shift
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
17 EXCLUDE=$1
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
18 shift
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
19 INPUT=$@
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
20
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
21 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
22 export PATH=$PATH:$DIR
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
23
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
24 CMD="vcfs2fasta.py --out $OUTPUT --input $INPUT"
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
25
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
26 if [ $WITHMIXTURES != "NOTTHERE" ]; then
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
27 CMD="$CMD --with-mixtures $WITHMIXTURES"
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
28 fi
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
29
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
30 if [ $COLUMNNS != "NOTTHERE" ]; then
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
31 CMD="$CMD --column-Ns $COLUMNNS"
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
32 fi
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
33
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
34 if [ $SAMPLENS != "NOTTHERE" ]; then
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
35 CMD="$CMD --sample-Ns $SAMPLENS"
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
36 fi
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
37
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
38 if [ $REFERENCE != "NOTTHERE" ]; then
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
39 CMD="$CMD --reference $REFERENCE"
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
40 fi
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
41
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
42 if [ $INCLUDE != "NOTTHERE" ]; then
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
43 CMD="$CMD --include INCLUDE"
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
44 fi
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
45
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
46 if [ $EXCLUDE != "NOTTHERE" ]; then
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
47 CMD="$CMD --exclude EXCLUDE"
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
48 fi
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
49
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
50 echo $CMD
f72039c5faa4 Uploaded
ulfschaefer
parents:
diff changeset
51 eval $CMD