Genotype preprocessing and plotting