homologue_lg_assignment: Assign markers to linkage groups and homologues.

Description Usage Arguments Value Examples

View source: R/exported_functions.R

Description

This is a wrapper combining linkage and assign_linkage_group. It is used to assign all marker types to linkage groups by using linkage information with 1.0 markers. It allows for input of marker assignments for which this analysis has already been performed.

Usage

1
2
3
4
5
homologue_lg_assignment(dosage_matrix, assigned_list, assigned_markertypes,
  SN_functions = NULL, LG_hom_stack, target_parent = "P1",
  other_parent = "P2", convert_palindrome_markers = TRUE, ploidy = 4,
  ploidy2 = NULL, pairing = "random", LG_number = 5, LOD_threshold = 3,
  write_intermediate_files = TRUE, log = NULL, ...)

Arguments

dosage_matrix

A dosage matrix.

assigned_list

List of data.frames with marker assignments for which the assignment analysis is already performed.

assigned_markertypes

List of integer vectors of length 2. Specifying the markertypes in the same order as assigned_list.

SN_functions

A vector of function names to be used. If NULL all remaining linkage functions with SN markers are used.

LG_hom_stack

A data.frame with markernames ("SxN_Marker"), linkage group ("LG") and homologue ("homologue")

target_parent

A character string specifying the target parent.

other_parent

A character string specifying the other parent.

convert_palindrome_markers

Logical. Should markers that behave the same for both parents be converted to a workable format for that parent? E.g.: should 3.1 markers be converted to 1.3?

ploidy

Ploidy level of parent 1.

ploidy2

Integer, by default NULL. If parental ploidies differ, the ploidy of parent 2.

pairing

Type of pairing. Either "random" or "preferential".

LG_number

Expected number of chromosomes (linkage groups).

LOD_threshold

LOD threshold at which a linkage is considered significant.

write_intermediate_files

Logical. Write intermediate linkage files to working directory?

log

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

...

Arguments passed to linkage

Value

A data.frame specifying marker assignments to linkage group and homologue.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
data("screened_data3", "P1_SxS_Assigned", "P1_DxN_Assigned", "LGHomDf_P1_1")
Assigned_markers<-homologue_lg_assignment(screened_data3,
                         assigned_list = list(P1_SxS_Assigned, P1_DxN_Assigned),
                         assigned_markertypes = list(c(1,1), c(2,0)),
                         LG_hom_stack = LGHomDf_P1_1,
                         write_intermediate_files=FALSE)
                         
## End(Not run)

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