Format SNP data from a .vcf file for linkage mapping and selection analyses