Convert genotype score data to plink ped-map format
makeplink(Gmat, snpinfo, chr)
Gmat | matrix of genotypes scores: SNPs are columns, individuals are rows; could be dosages, which will be rounded |
---|---|
snpinfo | a data.frame with columns: snpid, BP, allele1, allele2; BP is base pair position, allele1 is reference allele |
chr | chromosome number |
list with two components: ped and map, which are the plink format files