Mercurial > repos > nicolas > oghma
comparison beagle_phase.sh @ 25:10afd4b2847b draft
Uploaded
author | nicolas |
---|---|
date | Tue, 25 Oct 2016 14:33:02 -0400 |
parents | f9a3d6a36ca5 |
children |
comparison
equal
deleted
inserted
replaced
24:79abc9d00340 | 25:10afd4b2847b |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 | 3 # variable affectation |
4 vcf_input=$1 | 4 vcf_input=$1 |
5 out="out_phased" | 5 out="out_phased" |
6 | 6 |
7 # create temporary directory | |
7 directory=`dirname $0` | 8 directory=`dirname $0` |
8 | |
9 mkdir tmpdir$$ | 9 mkdir tmpdir$$ |
10 | |
11 cp -rf $vcf_input tmpdir$$/input.vcf | 10 cp -rf $vcf_input tmpdir$$/input.vcf |
12 | 11 # launch beagle |
13 | |
14 java -jar $directory/beagle.jar gt=$vcf_input out=$out | 12 java -jar $directory/beagle.jar gt=$vcf_input out=$out |
15 | 13 # remove temporary directory |
16 | |
17 rm -rf tmpdir$$ | 14 rm -rf tmpdir$$ |