Mercurial > repos > dereeper > admixture
comparison admixture.sh @ 0:781ac6e7a3a1 draft
Uploaded
author | dereeper |
---|---|
date | Fri, 20 Feb 2015 10:09:18 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:781ac6e7a3a1 |
---|---|
1 #!/bin/bash | |
2 input=$1 | |
3 outputs=$2 | |
4 logs=$3 | |
5 best_k_output=$4 | |
6 best_k_logfile=$5 | |
7 kmin=$6 | |
8 kmax=$7 | |
9 | |
10 directory=`dirname $0` | |
11 mkdir tmpdir$$ | |
12 cp -rf $input tmpdir$$/input | |
13 | |
14 /usr/bin/perl $directory/Admixture.pl -i $input -o $outputs -k $kmin -m $kmax -d tmpdir$$ -p $directory | |
15 | |
16 mv tmpdir$$/output $best_k_output | |
17 mv tmpdir$$/log $best_k_logfile | |
18 mv tmpdir$$/outputs.Q $outputs | |
19 mv tmpdir$$/logs $logs | |
20 | |
21 |