powered by
Convert marker dosages to the basic types which hold the same information and for which linkage calculations can be performed.
convert_marker_dosages(dosage_matrix, outname, ploidy = 4, ploidy2 = NULL, parent1 = "P1", parent2 = "P2", marker_conversion_info = FALSE, log = NULL)
An integer matrix with markers in rows and individuals in columns.
output filename (deprecated for now)
ploidy level of the plant species. If parents have different ploidy level, ploidy of parent1.
ploidy level of the second parent. NULL if both parents have the same ploidy level.
Character string specifying the first (usually maternal) parentname.
Character string specifying the second (usually paternal) parentname.
Logical. Should marker conversion information be returned?
Character string specifying the log filename to which standard output should be written. If NULL log is send to stdout.
A modified dosage matrix. If marker_swap_info = TRUE, this function returns a list.
marker_swap_info = TRUE
# NOT RUN { data("ALL_dosages") conv<-convert_marker_dosages(dosage_matrix=ALL_dosages) # }
Run the code above in your browser using DataLab