View source: R/convert_mappoly.R
convert_mappoly | R Documentation |
Generates diaQTL input files from the output of calc_genoprob or calc_genoprob_error in the MAPpoly package. The argument data
is a list containing the results for each linkage group. Map distances are rounded to 0.01 cM, and genotype probabilties are rounded to three decimal places.
convert_mappoly(data, ploidy, outstem = "")
data |
list of variables of class mappoly.genoprob (one for each linkage group) |
ploidy |
Either 2 or 4 |
outstem |
prefix for the pedigree and genotype files for diaQTL |
## Not run:
# see MAPpoly tutorial for details on its functions
MAP <- list(lg1, lg2, lg3) #list of linkage groups
genoprob <- vector("list", 3) #if 3 linkage groups
for(i in 1:length(genoprob))
genoprob[[i]] <- mappoly::calc_genoprob_error(input.map = MAP[[i]], error = 0.05)
convert_mappoly(genoprob, ploidy=4)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.