multidog_to_g | R Documentation |
Converts multidog output to a format usable for seg_multi() and multi_lrt()
multidog_to_g(
mout,
ploidy,
type = c("off_gl", "all_gl", "off_g", "all_g"),
p1 = NULL,
p2 = NULL
)
mout |
The output of |
ploidy |
The ploidy. |
type |
|
p1 |
The first (or only) parent name if using |
p2 |
The second parent name if using |
A list with the following elements
g
Either a matrix of counts, where the columns index the genotype
and the rows index the loci (type = "all_g"
or
type = "off_g"
). Or an array of genotype (natural) log-likelihoods
where the rows index the loci, the columns index the
individuals, and the slices index the genotypes
(type = "all_gl"
or type = "off_gl"
).
p1
Either a vector of known parental genotypes
(type = "off_gl"
, type = "all_g"
or type = "off_g"
).
Or a matrix of genotype (natural) log-likelihoods where the
rows index the loci and the columns index the genotypes
(type = "all_gl"
).
p2
Either a vector of known parental genotypes
(type = "off_gl"
, type = "all_g"
or type = "off_g"
).
Or a matrix of genotype (natural) log-likelihoods where the
rows index the loci and the columns index the genotypes
(type = "all_gl"
).
This will be NULL
if you (i) used "s1"
or
"s1pp"
models in updog and used either
type = "off_g"
or type = "off_gl"
or
(ii) used type = "all_g"
or type = "all_gl"
and only specified p1
but not p2
.
David Gerard
multidog_to_g(
mout = ufit,
ploidy = 4,
type = "all_g",
p1 = "indigocrisp",
p2 = "sweetcrisp")
multidog_to_g(
mout = ufit,
ploidy = 4,
type = "all_gl",
p1 = "indigocrisp",
p2 = "sweetcrisp")
multidog_to_g(mout = ufit2, ploidy = 4, type = "off_g")
multidog_to_g(mout = ufit2, ploidy = 4, type = "off_gl")
multidog_to_g(mout = ufit3, ploidy = 4, type = "off_g")
multidog_to_g(mout = ufit3, ploidy = 4, type = "off_gl")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.