plink2eigensoft: Conversion from Plink to Eigenstrat format

Description Usage Arguments Details Value Author(s)

View source: R/plink2eigensoft.R

Description

Conversion from Plink to Eigenstrat format

Usage

1
plink2eigensoft(input, out, mode = 1L)

Arguments

input

Scalar character. Name of the file in Plink format without extensions.

out

Scalar character. Name of the output file without extensions. If missing, it will be named like the input.

mode

Integer. Mode 1 considers input data as in binary format (.bed/.bim/.fam; default), while mode = 2 considers the Plink human-readable format (.ped/.map).

Details

Important note: This function assumes there's no ":" (colon) in the family names and individual IDs. Also, if all phenotypes are missing (6th column of .ped/.map file), then all individuals will be considered. Otherwise only individuals with phenotype info will be taken.

Value

Genotypic data in Engeinstrat format.

Author(s)

CainĂ£ Max Couto-Silva


cmcouto-silva/gt documentation built on June 6, 2021, 7:14 p.m.