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