Debian Codegraph @

scripts/bgziptabix

raw
1 #!/usr/bin/env bash
2
3 if [ $# -ne 1 ];
4 then
5 echo usage: $0 '[file name]'
6 echo runs bgzip on the input and tabix indexes the result
7 echo "== bgzip >[file] && tabix -fp vcf [file]"
8 exit
9 fi
10
11 file=$1
12
13 bgzip >$file && tabix -fp vcf $file