annotate admixture.sh @ 4:58df6910f1c3 draft

planemo upload
author dereeper
date Tue, 12 Apr 2016 09:31:56 -0400
parents
children 97c9c8daa3c3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
58df6910f1c3 planemo upload
dereeper
parents:
diff changeset
1 #!/bin/bash
58df6910f1c3 planemo upload
dereeper
parents:
diff changeset
2 bed=$1
58df6910f1c3 planemo upload
dereeper
parents:
diff changeset
3 fam=$2
58df6910f1c3 planemo upload
dereeper
parents:
diff changeset
4 bim=$3
58df6910f1c3 planemo upload
dereeper
parents:
diff changeset
5 outputs=$4
58df6910f1c3 planemo upload
dereeper
parents:
diff changeset
6 logs=$5
58df6910f1c3 planemo upload
dereeper
parents:
diff changeset
7 best_k_output=$6
58df6910f1c3 planemo upload
dereeper
parents:
diff changeset
8 best_k_logfile=$7
58df6910f1c3 planemo upload
dereeper
parents:
diff changeset
9 kmin=$8
58df6910f1c3 planemo upload
dereeper
parents:
diff changeset
10 kmax=$9
58df6910f1c3 planemo upload
dereeper
parents:
diff changeset
11
58df6910f1c3 planemo upload
dereeper
parents:
diff changeset
12 directory=`dirname $0`
58df6910f1c3 planemo upload
dereeper
parents:
diff changeset
13 mkdir tmpdir$$
58df6910f1c3 planemo upload
dereeper
parents:
diff changeset
14 cp -rf $bed tmpdir$$/input.bed
58df6910f1c3 planemo upload
dereeper
parents:
diff changeset
15 cp -rf $fam tmpdir$$/input.fam
58df6910f1c3 planemo upload
dereeper
parents:
diff changeset
16 cp -rf $bim tmpdir$$/input.bim
58df6910f1c3 planemo upload
dereeper
parents:
diff changeset
17
58df6910f1c3 planemo upload
dereeper
parents:
diff changeset
18
58df6910f1c3 planemo upload
dereeper
parents:
diff changeset
19 perl $directory/Admixture.pl -i tmpdir$$/input -o $outputs -k $kmin -m $kmax -d tmpdir$$
58df6910f1c3 planemo upload
dereeper
parents:
diff changeset
20
58df6910f1c3 planemo upload
dereeper
parents:
diff changeset
21 mv tmpdir$$/output $best_k_output
58df6910f1c3 planemo upload
dereeper
parents:
diff changeset
22 mv tmpdir$$/log $best_k_logfile
58df6910f1c3 planemo upload
dereeper
parents:
diff changeset
23 mv tmpdir$$/outputs.Q $outputs
58df6910f1c3 planemo upload
dereeper
parents:
diff changeset
24 mv tmpdir$$/logs $logs
58df6910f1c3 planemo upload
dereeper
parents:
diff changeset
25
58df6910f1c3 planemo upload
dereeper
parents:
diff changeset
26