Mercurial > repos > dereeper > admixture
view admixture.sh @ 4:58df6910f1c3 draft
planemo upload
author | dereeper |
---|---|
date | Tue, 12 Apr 2016 09:31:56 -0400 |
parents | |
children | 97c9c8daa3c3 |
line wrap: on
line source
#!/bin/bash bed=$1 fam=$2 bim=$3 outputs=$4 logs=$5 best_k_output=$6 best_k_logfile=$7 kmin=$8 kmax=$9 directory=`dirname $0` mkdir tmpdir$$ cp -rf $bed tmpdir$$/input.bed cp -rf $fam tmpdir$$/input.fam cp -rf $bim tmpdir$$/input.bim perl $directory/Admixture.pl -i tmpdir$$/input -o $outputs -k $kmin -m $kmax -d tmpdir$$ mv tmpdir$$/output $best_k_output mv tmpdir$$/log $best_k_logfile mv tmpdir$$/outputs.Q $outputs mv tmpdir$$/logs $logs