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

sdp2char

Convert strain distribution patterns to character strings


Description

Convert a vector of numeric codes for strain distribution patterns to character strings.

Usage

sdp2char(sdp, n_strains = NULL, strains = NULL)

Arguments

sdp

Vector of strain distribution patterns (integers between 1 and 2^n-2 where n is the number of strains.

n_strains

Number of founder strains (if missing but strains is provided, we use the length of strains)

strains

Vector of single-letter codes for the strains

Value

Vector of character strings with the two groups of alleles separated by a vertical bar (|).

See Also

Examples

sdp <- c(m1=1, m2=12, m3=240)
sdp2char(sdp, 8)
sdp2char(sdp, strains=c("A", "B", "1", "D", "Z", "C", "P", "W"))

qtl2

Quantitative Trait Locus Mapping in Experimental Crosses

v0.24
GPL-3
Authors
Karl W Broman [aut, cre] (<https://orcid.org/0000-0002-4914-6671>), R Core Team [ctb]
Initial release
2020-12-16

We don't support your browser anymore

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