marker_binning: Perform binning of markers.

Description Usage Arguments Value Examples

View source: R/exported_functions.R

Description

marker_binning allows for binning of very closely linked markers and choses one representative.

Usage

1
2
3
marker_binning(dosage_matrix, linkage_df, r_thresh = NA, lod_thresh = NA,
  target_parent = "P1", other_parent = "P2", max_marker_nr = NULL,
  max_iter = 10, log = NULL)

Arguments

dosage_matrix

A dosage matrix.

linkage_df

A linkage data.frame.

r_thresh

Numeric. Threshold at which markers are binned. Is calculated if NA.

lod_thresh

Numeric. Threshold at which markers are binned. Is calculated if NA.

target_parent

A character string specifying the name of the target parent.

other_parent

A character string specifying the name of the other parent.

max_marker_nr

The maximum number of markers per homologue. If specified, LOD threshold is optimized based on this number.

max_iter

Maximum number of iterations to find optimum LOD threshold. Only used if max_marker_nr is specified.

log

Character string specifying the log filename to which standard output should be written. If NULL log is send to stdout.

Value

A list with the following components:

binned_df

A linkage data.frame with binned markers removed.

removed

A data.frame containing binned markers and their representatives.

left

Integer. Number markers left.

Examples

1
2
data("screened_data3", "all_linkages_list_P1_split")
binned_markers<-marker_binning(screened_data3, all_linkages_list_P1_split[["LG2"]][["homologue3"]])

mdavy86/polymapR documentation built on May 25, 2019, 9:35 p.m.