Mercurial > repos > miller-lab > genome_diversity
annotate evaluate_population_numbers.bash @ 1:0df7a9b89f13
add empty snifffers section to mitigate toolshed bug; new version of dpmix
author | Richard Burhans <burhans@bx.psu.edu> |
---|---|
date | Mon, 09 Apr 2012 12:40:57 -0400 |
parents | 2c498d40ecde |
children |
rev | line source |
---|---|
0 | 1 #!/usr/bin/env bash |
2 | |
3 if [ $# -ne 3 ]; then | |
4 echo "usage" | |
5 exit 1 | |
6 fi | |
7 | |
8 input_ped_file="$1" | |
9 output_file="$2" | |
10 max_populations="$3" | |
11 | |
12 ADMIXTURE=admixture | |
13 | |
14 for (( i=1; $i <= $max_populations; i++ )); do | |
15 $ADMIXTURE --cv "$input_ped_file" $i 2>&1 | grep CV >> "$output_file" | |
16 done | |
17 |