Data and code from: Finding a needle in a haystack: Distinguishing Mexican maize landraces using a small number of SNPs, Caldu-Primo, Jose Luis, Mastretta-Yanez, Alicia, Wegier, Ana, PiƱero, Daniel Data_and_Metadata Folder containing SNP data provided in plink format (maiz_listo*) and gds format (maiz_listo.gds), shapefiles used for the plots (COMIT_7C.*, CONEJ_6C.* TEHUA_7C.* ZAPAC_6C.* ZAPAG_3C.*), samples metadata (subject.support.csv) and SNPs metadata (snp.support.csv). Scripts Folder containing R scripts used for data analyses (maize_analyses.rmd) and plots (script graficas.r, script_mapas.R). The html file (maize_analyses.html) is a knitr note book of the analyses and results.