John,
If you are using the hapmap format for input, one way to permute the SNPs, at least conceptually would be to permute the order of the genotype columns in the table, but leave the header positions unchanged. Permute here means shuffle the order randomly. As you indicate, K and PCA (and phenotypes) should be the original unpermuted values. That way the relationship between phenotype and K and PCA remains unchanged. When I said to permute the values of the first SNP, I just wanted to highlight that all the SNPs would need to be permuted and tested for a single permutation. If running GAPIT 1000 times is going to take a long time, you could probably get by with 500 times.
However, as I mentioned before I do not recall reading any mixed model GWAS papers that have used a permutation test for setting a significance threshold, so running the test may not be necessary, at least for the purpose of your manuscript. But, if running the analysis 500 or 1000 times is feasible, I think the method I have outlined would be valid.
Peter
From: John
Hi Peter,
May I first permute the all SNPs in the way your suggested, and then run GAPIT using MLM with K and PCA derived from the original genotypes (before permutation)? I think GAPIT treats each SNP independently. And repeat the above process 1000 times. Does that work?
But again, what is "permute the values of the first SNP" mean?
Thank you.
John