Mercurial > repos > miller-lab > genome_diversity
view evaluate_population_numbers.bash @ 8:30771a097f14
changed max line length from 5,000 to 50,000
author | Richard Burhans <burhans@bx.psu.edu> |
---|---|
date | Wed, 20 Jun 2012 14:02:30 -0400 |
parents | 2c498d40ecde |
children |
line wrap: on
line source
#!/usr/bin/env bash if [ $# -ne 3 ]; then echo "usage" exit 1 fi input_ped_file="$1" output_file="$2" max_populations="$3" ADMIXTURE=admixture for (( i=1; $i <= $max_populations; i++ )); do $ADMIXTURE --cv "$input_ped_file" $i 2>&1 | grep CV >> "$output_file" done