consensus_LG_names: Find consensus linkage group names

View source: R/exported_functions.R

consensus_LG_namesR Documentation

Find consensus linkage group names

Description

Chromosomes that should have same number, might have gotten different numbers between parents during clustering. consensus_LG_names uses markers present in both parents (usually 1.1 markers) to modify the linkage group numbers in one parent with the other as template

Usage

consensus_LG_names(
  modify_LG,
  template_SxS,
  modify_SxS,
  merge_LGs = TRUE,
  log = NULL
)

Arguments

modify_LG

A data.frame with markernames, linkage group ("LG") and homologue ("homologue"), in which the linkage group numbers will be modified

template_SxS

A file with assigned markers of which (at least) part is present in both parents of the template parent.

modify_SxS

A file with assigned markers of which (at least) part is present in both parents of the parent of which linkage group number are modified.

merge_LGs

Logical, by default TRUE. If FALSE, any discrepency in the number of linkage groups will not be merged, but removed instead. This can be needed if the number of chromosomes identified is not equal between parents, and the user wishes to proceed with a core set.

log

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

Value

A modified modified_LG according to the template_SxS linkage group numbering

Examples

data("LGHomDf_P2_2", "P1_SxS_Assigned", "P2_SxS_Assigned")
consensus_LGHomDf<-consensus_LG_names(LGHomDf_P2_2, P1_SxS_Assigned, P2_SxS_Assigned)

polymapR documentation built on Nov. 5, 2023, 1:09 a.m.