annotate admixture/admixture.sh @ 4:fb274c4ae95a draft

Uploaded
author dereeper
date Fri, 20 Feb 2015 10:11:57 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
fb274c4ae95a Uploaded
dereeper
parents:
diff changeset
1 #!/bin/bash
fb274c4ae95a Uploaded
dereeper
parents:
diff changeset
2 input=$1
fb274c4ae95a Uploaded
dereeper
parents:
diff changeset
3 outputs=$2
fb274c4ae95a Uploaded
dereeper
parents:
diff changeset
4 logs=$3
fb274c4ae95a Uploaded
dereeper
parents:
diff changeset
5 best_k_output=$4
fb274c4ae95a Uploaded
dereeper
parents:
diff changeset
6 best_k_logfile=$5
fb274c4ae95a Uploaded
dereeper
parents:
diff changeset
7 kmin=$6
fb274c4ae95a Uploaded
dereeper
parents:
diff changeset
8 kmax=$7
fb274c4ae95a Uploaded
dereeper
parents:
diff changeset
9
fb274c4ae95a Uploaded
dereeper
parents:
diff changeset
10 directory=`dirname $0`
fb274c4ae95a Uploaded
dereeper
parents:
diff changeset
11 mkdir tmpdir$$
fb274c4ae95a Uploaded
dereeper
parents:
diff changeset
12 cp -rf $input tmpdir$$/input
fb274c4ae95a Uploaded
dereeper
parents:
diff changeset
13
fb274c4ae95a Uploaded
dereeper
parents:
diff changeset
14 /usr/bin/perl $directory/Admixture.pl -i $input -o $outputs -k $kmin -m $kmax -d tmpdir$$ -p $directory
fb274c4ae95a Uploaded
dereeper
parents:
diff changeset
15
fb274c4ae95a Uploaded
dereeper
parents:
diff changeset
16 mv tmpdir$$/output $best_k_output
fb274c4ae95a Uploaded
dereeper
parents:
diff changeset
17 mv tmpdir$$/log $best_k_logfile
fb274c4ae95a Uploaded
dereeper
parents:
diff changeset
18 mv tmpdir$$/outputs.Q $outputs
fb274c4ae95a Uploaded
dereeper
parents:
diff changeset
19 mv tmpdir$$/logs $logs
fb274c4ae95a Uploaded
dereeper
parents:
diff changeset
20
fb274c4ae95a Uploaded
dereeper
parents:
diff changeset
21