annotate filter_vcf.sh @ 6:74f595df6e51 draft

Uploaded
author ulfschaefer
date Thu, 16 Jun 2016 06:39:51 -0400
parents e2ee6acf8752
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
cb29f95c7b88 Uploaded
ulfschaefer
parents:
diff changeset
1 #!/bin/bash
cb29f95c7b88 Uploaded
ulfschaefer
parents:
diff changeset
2
cb29f95c7b88 Uploaded
ulfschaefer
parents:
diff changeset
3 # echo $@
cb29f95c7b88 Uploaded
ulfschaefer
parents:
diff changeset
4
cb29f95c7b88 Uploaded
ulfschaefer
parents:
diff changeset
5 OUTPUT=$1
cb29f95c7b88 Uploaded
ulfschaefer
parents:
diff changeset
6 shift
cb29f95c7b88 Uploaded
ulfschaefer
parents:
diff changeset
7 VCF=$1
cb29f95c7b88 Uploaded
ulfschaefer
parents:
diff changeset
8 shift
5
e2ee6acf8752 Uploaded
ulfschaefer
parents: 0
diff changeset
9 REF=$1
e2ee6acf8752 Uploaded
ulfschaefer
parents: 0
diff changeset
10 shift
0
cb29f95c7b88 Uploaded
ulfschaefer
parents:
diff changeset
11 ONLYGOOD=$1
cb29f95c7b88 Uploaded
ulfschaefer
parents:
diff changeset
12 shift
cb29f95c7b88 Uploaded
ulfschaefer
parents:
diff changeset
13 FILTERS=$@
cb29f95c7b88 Uploaded
ulfschaefer
parents:
diff changeset
14
cb29f95c7b88 Uploaded
ulfschaefer
parents:
diff changeset
15 FILTERS=$(echo -n $FILTERS | sed 's/ /,/g')
cb29f95c7b88 Uploaded
ulfschaefer
parents:
diff changeset
16
5
e2ee6acf8752 Uploaded
ulfschaefer
parents: 0
diff changeset
17 CMD="phenix.py filter_vcf --vcf $VCF --filters $FILTERS --output $OUTPUT --reference $REF"
0
cb29f95c7b88 Uploaded
ulfschaefer
parents:
diff changeset
18
cb29f95c7b88 Uploaded
ulfschaefer
parents:
diff changeset
19 if [ $ONLYGOOD != "NOTTHERE" ]; then
cb29f95c7b88 Uploaded
ulfschaefer
parents:
diff changeset
20 CMD="$CMD --only-good"
cb29f95c7b88 Uploaded
ulfschaefer
parents:
diff changeset
21 fi
cb29f95c7b88 Uploaded
ulfschaefer
parents:
diff changeset
22
cb29f95c7b88 Uploaded
ulfschaefer
parents:
diff changeset
23 echo "CMD: "$CMD
cb29f95c7b88 Uploaded
ulfschaefer
parents:
diff changeset
24 eval $CMD