| est_pairwise_rf | R Documentation |
Performs the two-point pairwise analysis between all markers in a sequence. For each pair, the function estimates the recombination fraction for all possible linkage phase configurations and associated LOD Scores.
est_pairwise_rf(
input.seq,
count.cache = NULL,
count.matrix = NULL,
ncpus = 1L,
mrk.pairs = NULL,
n.batches = 1L,
est.type = c("disc", "prob"),
verbose = TRUE,
memory.warning = TRUE,
parallelization.type = c("PSOCK", "FORK"),
tol = .Machine$double.eps^0.25,
ll = FALSE
)
input.seq |
an object of class |
count.cache |
an object of class |
count.matrix |
similar to |
ncpus |
Number of parallel processes (cores) to spawn (default = 1) |
mrk.pairs |
a matrix of dimensions 2*N, containing N
pairs of markers to be analyzed. If |
n.batches |
deprecated. Not available on MAPpoly 0.3.0 or higher |
est.type |
Indicates whether to use the discrete ("disc") or the probabilistic ("prob") dosage scoring when estimating the two-point recombination fractions. |
verbose |
If |
memory.warning |
if |
parallelization.type |
one of the supported cluster types. This should be either PSOCK (default) or FORK. |
tol |
the desired accuracy. See |
ll |
will return log-likelihood instead of LOD scores. (for internal use) |
An object of class mappoly.twopt which
is a list containing the following components:
data.name |
name of the object of class
|
n.mrk |
number of markers in the sequence |
seq.num |
a |
pairwise |
a list of size
|
chisq.pval.thresthreshold used to perform the segregation tests
chisq.pvalp-values associated with the performed segregation tests
Marcelo Mollinari, mmollin@ncsu.edu
Mollinari, M., and Garcia, A. A. F. (2019) Linkage analysis and haplotype phasing in experimental autopolyploid populations with high ploidy level using hidden Markov models, _G3: Genes, Genomes, Genetics_. \Sexpr[results=rd,stage=build]{tools:::Rd_expr_doi("10.1534/g3.119.400378")}
## Tetraploid example (first 50 markers)
all.mrk <- make_seq_mappoly(tetra.solcap, 1:50)
red.mrk <- elim_redundant(all.mrk)
unique.mrks <- make_seq_mappoly(red.mrk)
all.pairs <- est_pairwise_rf(input.seq = unique.mrks,
ncpus = 1,
verbose = TRUE)
all.pairs
plot(all.pairs, 20, 21)
mat <- rf_list_to_matrix(all.pairs)
plot(mat)