multidog_to_g {segtest} | R Documentation |
Converts multidog output to a format usable for multi_lrt()
Description
Converts multidog output to a format usable for multi_lrt()
Usage
multidog_to_g(
mout,
type = c("off_gl", "all_gl", "all_g", "off_g"),
p1 = NULL,
p2 = NULL,
ploidy = 4
)
Arguments
mout |
The output of |
type |
. |
p1 |
The first parent name if using |
p2 |
The second parent name if using |
ploidy |
The ploidy. Note that most methods in this package
(including those in |
Value
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"
ortype = "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"
ortype = "off_gl"
).p1
Either a vector of known parental genotypes (
type = "off_gl"
,type = "all_g"
ortype = "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"
ortype = "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"
).
Author(s)
David Gerard
Examples
multidog_to_g(mout = ufit, type = "all_g", p1 = "indigocrisp", p2 = "sweetcrisp")
multidog_to_g(mout = ufit, type = "all_gl", p1 = "indigocrisp", p2 = "sweetcrisp")
multidog_to_g(mout = ufit2, type = "off_g")
multidog_to_g(mout = ufit2, type = "off_gl")
multidog_to_g(mout = ufit3, type = "off_g")
multidog_to_g(mout = ufit3, type = "off_gl")