Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

genos2mat

Convert genos loci into presance absence matrices


Description

A matrix for each locus is constructed with n rows and c columns, where n is the number of genotype individuals, and c is the total number of observed alleles at a locus. Individual are surveyed for alleles and assigned 0 for an absence, 0.5 for a single presence (i.e. heterozygote), and 1 for double presence (i.e. homozygote).

Usage

genos2mat(mat, ip, na)

Arguments

mat

A template matrix

ip

A character vector of alleles (e.g. genos[,i,j]) for all genotyped individual.

na

An NA replacement template

Author(s)

Kevin Keenan


diveRsity

A Comprehensive, General Purpose Population Genetics Analysis Package

v1.9.90
GPL (>= 2)
Authors
Kevin Keenan <kkeenan02@qub.ac.uk>
Initial release
2017-03-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.