geno.format: Format genotype matrix

View source: R/geno.format.R

geno.formatR Documentation

Format genotype matrix

Description

Convert a 4-column genotype matrix or data.frame into a simplified numerical format.

Usage

geno.format(X, Y.only = TRUE)

Arguments

X

Genotype matrix or data.frame.

Y.only

Logical. Whether or not to output only Y (see return).

Value

A list with elements

Y: A 4-column numeric matrix. Each row is sorted with zeros indicating missing alleles. A: Vector of allele names. G: Unique allele combinations, i.e. Y without duplicated rows.


mlysy/MADPop documentation built on Feb. 28, 2024, 12:29 p.m.