Mercurial > repos > dereeper > sniplay3
annotate admixture/admixture.sh @ 14:1b672da89d00 draft
Uploaded
author | dereeper |
---|---|
date | Fri, 20 Feb 2015 11:21:10 -0500 |
parents | fb274c4ae95a |
children |
rev | line source |
---|---|
4 | 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 |