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

View source: R/prep.R

makeplinkR Documentation

Convert genotype score data to plink ped-map format

Description

Convert genotype score data to plink ped-map format

Usage

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 July 31, 2022, 7:32 p.m.