main_multi | R Documentation |
main_p2()
across many SNPs.Support is provided for parallelization through the future package.
main_multi(nmat)
nmat |
A matrix of counts where the columns index the genotypes and
the rows index the loci. |
A matrix with two columns. The first column contains the estimated allele frequency, the second column contains the estimated double reduction parameter. The rows index the loci.
David Gerard
Jiang, Libo, Xiangyu Ren, and Rongling Wu. 2021. "Computational Characterization of Double Reduction in Autotetraploid Natural Populations." The Plant Journal 105 (6): 1703–9. doi: 10.1111/tpj.15126
## Fake data nmat <- matrix(c(1, 2, 3, 2, 1, 3, 2, 1, 2, 3), nrow = 2, byrow = TRUE) ## Run the analysis in parallel on the local computer with two workers future::plan(future::multisession, workers = 2) main_multi(nmat = nmat) ## Shut down parallel workers future::plan("sequential")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.