annotate filter_vcf.sh @ 2:b05ed83dc773 draft

Uploaded
author ulfschaefer
date Fri, 11 Dec 2015 09:41:41 -0500
parents 834a312c0114
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
834a312c0114 Uploaded
ulfschaefer
parents:
diff changeset
1 #!/bin/bash
834a312c0114 Uploaded
ulfschaefer
parents:
diff changeset
2
834a312c0114 Uploaded
ulfschaefer
parents:
diff changeset
3 OUTPUT=$1
834a312c0114 Uploaded
ulfschaefer
parents:
diff changeset
4 shift
834a312c0114 Uploaded
ulfschaefer
parents:
diff changeset
5 VCF=$1
834a312c0114 Uploaded
ulfschaefer
parents:
diff changeset
6 shift
834a312c0114 Uploaded
ulfschaefer
parents:
diff changeset
7 FILTERS=$@
834a312c0114 Uploaded
ulfschaefer
parents:
diff changeset
8
834a312c0114 Uploaded
ulfschaefer
parents:
diff changeset
9 FILTERS=$(echo -n $FILTERS | sed 's/ /,/g')
834a312c0114 Uploaded
ulfschaefer
parents:
diff changeset
10
834a312c0114 Uploaded
ulfschaefer
parents:
diff changeset
11 CMD="filter_vcf.py --vcf $VCF --filters $FILTERS --output $OUTPUT"
834a312c0114 Uploaded
ulfschaefer
parents:
diff changeset
12
834a312c0114 Uploaded
ulfschaefer
parents:
diff changeset
13 echo "CMD: "$CMD
834a312c0114 Uploaded
ulfschaefer
parents:
diff changeset
14 eval $CMD