Mercurial > repos > dereeper > sniplay3
comparison admixture/admixture.sh @ 8:f629291bf98c draft
Uploaded
author | dereeper |
---|---|
date | Fri, 20 Feb 2015 10:58:51 -0500 |
parents | fb274c4ae95a |
children |
comparison
equal
deleted
inserted
replaced
7:f11604d28633 | 8:f629291bf98c |
---|---|
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 |