annotate admixture/.svn/text-base/admixture.sh.svn-base @ 24:21d878747ac6 draft default tip

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