annotate filter_vcf.sh @ 8:5932a130395e draft

Uploaded
author ulfschaefer
date Fri, 18 Dec 2015 07:30:22 -0500
parents 5dfc843979c2
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
5dfc843979c2 Uploaded
ulfschaefer
parents:
diff changeset
1 #!/bin/bash
5dfc843979c2 Uploaded
ulfschaefer
parents:
diff changeset
2
5dfc843979c2 Uploaded
ulfschaefer
parents:
diff changeset
3 OUTPUT=$1
5dfc843979c2 Uploaded
ulfschaefer
parents:
diff changeset
4 shift
5dfc843979c2 Uploaded
ulfschaefer
parents:
diff changeset
5 VCF=$1
5dfc843979c2 Uploaded
ulfschaefer
parents:
diff changeset
6 shift
5dfc843979c2 Uploaded
ulfschaefer
parents:
diff changeset
7 FILTERS=$@
5dfc843979c2 Uploaded
ulfschaefer
parents:
diff changeset
8
5dfc843979c2 Uploaded
ulfschaefer
parents:
diff changeset
9 FILTERS=$(echo -n $FILTERS | sed 's/ /,/g')
5dfc843979c2 Uploaded
ulfschaefer
parents:
diff changeset
10 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
5dfc843979c2 Uploaded
ulfschaefer
parents:
diff changeset
11 export PATH=$PATH:$DIR
5dfc843979c2 Uploaded
ulfschaefer
parents:
diff changeset
12 CMD="filter_vcf.py --vcf $VCF --filters $FILTERS --output $OUTPUT"
5dfc843979c2 Uploaded
ulfschaefer
parents:
diff changeset
13
5dfc843979c2 Uploaded
ulfschaefer
parents:
diff changeset
14 echo "CMD: "$CMD
5dfc843979c2 Uploaded
ulfschaefer
parents:
diff changeset
15 eval $CMD