annotate mergevcf_wrapper.sh @ 153:5d881472c379 draft default tip

mm
author Rayan Chikhi <chikhi@psu.edu>
date Mon, 21 Jul 2014 16:36:03 -0400
parents c803b1068fa6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
88
c803b1068fa6 Uploaded
devteam
parents:
diff changeset
1 #!/bin/bash
c803b1068fa6 Uploaded
devteam
parents:
diff changeset
2 #index all vcfs
c803b1068fa6 Uploaded
devteam
parents:
diff changeset
3 args=""
c803b1068fa6 Uploaded
devteam
parents:
diff changeset
4 for file in ${*:2}
c803b1068fa6 Uploaded
devteam
parents:
diff changeset
5 do
c803b1068fa6 Uploaded
devteam
parents:
diff changeset
6 cp $file $file.vcf
c803b1068fa6 Uploaded
devteam
parents:
diff changeset
7 java -Xmx1500m -jar `dirname $0`/igvtools.jar index $file.vcf
c803b1068fa6 Uploaded
devteam
parents:
diff changeset
8 args="$args I=$file.vcf"
c803b1068fa6 Uploaded
devteam
parents:
diff changeset
9 done
c803b1068fa6 Uploaded
devteam
parents:
diff changeset
10
c803b1068fa6 Uploaded
devteam
parents:
diff changeset
11 eval java -Xmx2G -jar $JAVA_JAR_PATH/MergeVcfs.jar QUIET=True O=$1 $args
c803b1068fa6 Uploaded
devteam
parents:
diff changeset
12
c803b1068fa6 Uploaded
devteam
parents:
diff changeset
13 for file in ${*:2}
c803b1068fa6 Uploaded
devteam
parents:
diff changeset
14 do
c803b1068fa6 Uploaded
devteam
parents:
diff changeset
15 rm -f $file.vcf
c803b1068fa6 Uploaded
devteam
parents:
diff changeset
16 rm -f $file.vcf.idx
c803b1068fa6 Uploaded
devteam
parents:
diff changeset
17 done