annotate admixture.sh @ 0:781ac6e7a3a1 draft

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