Learn R Programming

DNAprofiles (version 0.3.1)

enum.profiles: Enumerate all attainable genotypes

Description

Enumerate all attainable genotypes

Usage

enum.profiles(freqs)

Arguments

freqs
A list specifying the allelic frequencies. Should contain a vector of allelic frequencies for each locus, named after that locus.

Value

A profiles object.

Details

Profiles are stored as an integer matrix, with the integers corresponding to repeat numbers found in the names attribute of the list of allelic frequencies. The current function converts the integer matrix to a character matrix with alleles.

Examples

Run this code
data(freqsNLsgmplus)
enum.profiles(freqsNLsgmplus[1:2])

Run the code above in your browser using DataLab