#!/bin/bash


vcf_input=$1
ref=$2
out="out_imputed"

directory=`dirname $0`

mkdir tmpdir$$

cp -rf $vcf_input tmpdir$$/input.vcf


java -Xmx2g -jar $directory/beagle.jar ref=$ref gt=$vcf_input out=$out


rm -rf tmpdir$$