Check that map is a proper data.frame.
sanitize_map(gwas)
gwas
A SnpMatrix object with the GWAS information.