Mercurial > repos > miller-lab > genome_diversity
comparison evaluate_population_numbers.bash @ 14:8ae67e9fb6ff
Uploaded Miller Lab Devshed version a51c894f5bed again [possible toolshed.g2 bug]
author | miller-lab |
---|---|
date | Fri, 28 Sep 2012 11:35:56 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
13:fdb4240fb565 | 14:8ae67e9fb6ff |
---|---|
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 | perl -ne 's/CV error/CVE/; print;' >> "$output_file" | |
16 done | |
17 |