Aah. Thank you! That is extremely helpful.
While I'm at it can I ask you a follow up question? If I am trying to create a list of tagging SNPs with which to work, and thus a minimal SNP dataset running
$ plink --file input.plink --show-tags input.prune.out--list-all --tag-r2 .7 --out mytags_and_what_they_tag
on the 'prune.out' file would provide me with a list of SNPs and what they tag? Is there any criteria that plink uses to determine which is the tag and which is tagged? Or would I have to use something like Haploview's tagger for that? It really doesnt matter which one I use as a tagging SNP, though it would be nice to have some criteria such as 'lowest MAF' or 'highest MAF' to determine it.
I see that in 2014 it another biostar user's question on tagging SNP selection was answered by suggesting they use the extract function:
plink --bfile Affy550K --indep-pairwise 100 10 0.8
plink --bfile Affy550K --extract plink.prune.in --make-bed --out Affy550KPruned
To automatically chose the SNP with the higher MAF, but that may not be a viable solution: I've already filtered on MAF > 5%...if that complicates things. Also, converting to a bed file causes some trouble as I need a file I can easily parse in perl when this is done, and the '--recode vcf' function in plink 1.9 (Correction: this version is actually 1.07, please see comment below) doesnt seem to be working, giving an error message "trouble parsing command line". So parsing the '--show-tags' file may still be the best option, it would be nice if there was some way to kill two birds with one stone with '--show-tags'.