Learn R Programming

DNAprofiles (version 0.3.1)

profiles.to.chars: Obtain STR repeat numbers of profiles as character matrix

Description

Obtain STR repeat numbers of profiles as character matrix

Usage

profiles.to.chars(x, freqs = get.freqs(x), two.cols.per.locus = FALSE)

Arguments

x
profiles object
freqs
A list specifying the allelic frequencies. Should contain a vector of allelic frequencies for each locus, named after that locus.
two.cols.per.locus
when FALSE (default), returns "a/b", else "a" and "b" in separate columns

Value

A character matrix with a column for each locus.

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)
profiles.to.chars(sample.profiles(N=2,freqs=freqsNLsgmplus))

Run the code above in your browser using DataLab