- Run ADMIXTURE by using different K;
You can try certain replicates of different seeds by running such command in linux shell:
e.g. To run 10 replicates of each K up to a maximum K value of 6.
for k in `seq 1 6`; do for i in `seq 1 10`; do cp infile.ped infile.run_$i.ped && admixture --cv -j4 -s $RANDOM infile.run_$i.ped $k \
| tee infile.run_$i.$k.log && rm infile.run_$i.ped; done; done
zip -j -q admix_results.zip *.Q *.log #This is what you need to upload
A shell script run_admix.sh ro run this.
- Compress the results (suffix is .Q) into zip format (NB: log files, suffix is .log, e.g. XXX.1.log, are needed if you
want to get the likelihood of each run. Structure Selector can also calculate DeltaK based
on likelihoods of certain replicates, and print out CV error if available based on the log files);
- Prepair a popmap file, or input a vector of population size (e.g. 20,30,40, which means a total of 90 individuals, and the
first 20 individuals belong to a population, the next 30 individuals belong to a population......);
- Upload the zip and popmap files;
- Click Run!