diff admixture/.svn/text-base/admixture.sh.svn-base @ 20:13cff72ec2d3 draft

Uploaded
author dereeper
date Mon, 23 Mar 2015 05:30:36 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/admixture/.svn/text-base/admixture.sh.svn-base	Mon Mar 23 05:30:36 2015 -0400
@@ -0,0 +1,21 @@
+#!/bin/bash
+input=$1
+outputs=$2
+logs=$3
+best_k_output=$4
+best_k_logfile=$5
+kmin=$6
+kmax=$7
+
+directory=`dirname $0`
+mkdir tmpdir$$
+cp -rf $input tmpdir$$/input
+ 
+/usr/bin/perl $directory/Admixture.pl -i $input -o $outputs -k $kmin -m $kmax -d tmpdir$$ -p $directory
+
+mv tmpdir$$/output $best_k_output
+mv tmpdir$$/log $best_k_logfile
+mv tmpdir$$/outputs.Q $outputs
+mv tmpdir$$/logs $logs
+
+