File: bgziptabix

package info (click to toggle)
freebayes 1.3.9-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,980 kB
  • sloc: cpp: 125,778; ansic: 4,581; sh: 1,084; python: 672; asm: 271; javascript: 94; lisp: 85; makefile: 37; perl: 27
file content (13 lines) | stat: -rwxr-xr-x 234 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash

if [ $# -ne 1 ];
then  
echo usage: $0 '[file name]'
echo runs bgzip on the input and tabix indexes the result
echo "== bgzip >[file] && tabix -fp vcf [file]"
exit
fi

file=$1

bgzip >$file && tabix -fp vcf $file