Using Latent Factor Mixed Models (LFMM) for Genotype to Environment (G2E) association analysis
- Convert VCF file to lfmm file using vcf2lfmm
- Convert environmental matrix file to env file using write.env
-
- Convert VCF file to geno file using vcf2geno
- Run snmf with the geno file
- plot the snmf result to find the best K