for f in *.bg
do
  name=$(echo $f|sed 's/\.bg//')
  bgzip $f
  tabix -p bed ${f}.gz
done
