makeplink: Convert genotype score data to plink ped-map format

Description Usage Arguments Value Author(s)

View source: R/prep.R

Description

Convert genotype score data to plink ped-map format

Usage

1
makeplink(Gmat, snpinfo, chr)

Arguments

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

Value

list with two components: ped and map, which are the plink format files

Author(s)

Jenn Asimit


jennasimit/flashfm documentation built on Aug. 9, 2021, 7:36 a.m.