view mergevcf_wrapper.sh @ 148:b6662c2c8d64 draft

modified version number of downsamplesam to make toolshed aware that it has been modified
author Rayan Chikhi <chikhi@psu.edu>
date Mon, 21 Jul 2014 16:07:50 -0400
parents c803b1068fa6
children
line wrap: on
line source

#!/bin/bash
#index all vcfs
args=""
for file in  ${*:2}
do
	cp $file $file.vcf
	java -Xmx1500m  -jar `dirname $0`/igvtools.jar index $file.vcf
	args="$args I=$file.vcf"
done

eval java -Xmx2G -jar $JAVA_JAR_PATH/MergeVcfs.jar QUIET=True O=$1 $args

for file in  ${*:2}
do
	rm -f $file.vcf
	rm -f $file.vcf.idx
done