Hi All,I have a set of 1200 SNPs. I need to remove those that are linked, to create a final SNP set, and then test the populations the SNPS for HWE with Bonferroni correctionLinkageI can see t ways in plink to run this.1. Indep2. PairwiseWhich would be the better option. It seems that both of these options adopt this 50SNP per chromosome stat. However, my SNPs were aligned to scaffolds, with SNPs on each scaffold ranging from 1 to 450, would the use of these 50 SNP sliding windows still work? Also if setting r2 and VIF, which values are best to ensure you do a reasonable job of removing linked SNPS, without removing potentially useful SNPSHWEWhen setting to analyse HWE, plink gives the example of plink --file mydata --hwe 0.001Could someone advise what the 0.001 number is, and how best to set this. Is HWE calculated with Bonferroni correction?Thanks for all the help
Thanks for the reply, I'll read through all of this, and again thanks for the reply.One thing I forgot to ask that I've just noticed, is no matter how stringent I set the r2 value, some of the snps on the pruned in list, are only within a couple of hundred bases of each other. This presence of such physically close SNPs is understandable as they may represent where we used read 1 and read 2 as separate reads in our stacks analysis, with plan to treat them for linkage later. What I don't quite get, is why for 2 SNPS 200bp apart, and thus clearly linked, would both get into the pruned in list. This seems to happens lot in the prune.in list.
Yes you are right, and thank you Chris. I guess as a workaround, is there a route in Plink, to remove a SNP, if it is within say 200bases of another SNP, (ie keep 1 and reject the second) this would get around my inclusion of having 2 SNPS that were effectively: 1 in read 1; and 1 in read 2, from the same locus at the point of original sequencing.