Learn R Programming

RVtests (version 1.0)

count2geno: Transforming genotype alleles counts to genotype matrix

Description

Genotype data format transformation: from alleles counts to genotype coding matrix.

Usage

count2geno(cgeno, indid)

Arguments

cgeno
Genotype counts data format: a matrix with 3 columns: indid (individual ID), snpid (SNP ID), and count
indid
Individual ID, must include indid in cgeno. If missing, it is the same with indid in cgeno.

Value

  • A matrix of genotypes

See Also

geno2count

Examples

Run this code
data(sample.cgeno)
str(sample.cgeno) 
#count2geno(sample.cgeno$cgeno)

Run the code above in your browser using DataLab