Learn R Programming

qtl2pattern (version 1.2.1)

pattern_label: Turn genotype probabilities into labels

Description

Turn genotype probabilities into labels

Usage

pattern_label(genos, allele = TRUE)

pattern_sdp(label, sdp = NULL, geno_names = sort(unique(label)))

Value

character vector of genotype names.

Arguments

genos

matrix of genotype probabilities at locus

allele

Driver has alleles if TRUE, otherwise allele pairs.

label

character string from pattern_label

sdp

SNP distribution pattern for plot colors

geno_names

unique genotype names (alleles or allele pairs)