homologue_lg_assignment {polymapR} | R Documentation |
Assign markers to linkage groups and homologues.
Description
This is a wrapper combining linkage
(or linkage.gp
) 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
homologue_lg_assignment(
input_type = "discrete",
dosage_matrix,
probgeno_df,
chk,
assigned_list,
assigned_markertypes,
SN_functions = NULL,
LG_hom_stack,
parent1 = "P1",
parent2 = "P2",
which_parent = 1,
ploidy,
ploidy2 = NULL,
convert_palindrome_markers = TRUE,
pairing = "random",
LG_number,
LOD_threshold = 3,
write_intermediate_files = TRUE,
log = NULL,
...
)
Arguments
input_type |
Can be either one of 'discrete' or 'probabilistic'. For the former (default), |
dosage_matrix |
An integer matrix with markers in rows and individuals in columns. |
probgeno_df |
A data frame as read from the scores file produced by function
|
chk |
Output list as returned by function |
assigned_list |
List of |
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 |
parent1 |
A character string specifying name of parent1. |
parent2 |
A character string specifying the name of parent2. |
which_parent |
Integer, either 1 or 2, with default 1, where 1 or 2 refers to parent1 or parent2 respectively. |
ploidy |
Ploidy level of parent 1. If parent 2 has the same ploidy level, then also the ploidy level of parent 2. |
ploidy2 |
Integer, by default |
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? |
pairing |
Type of pairing. Either |
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 |
Value
A data.frame
specifying marker assignments to linkage group and homologue.
Examples
## Not run:
data("screened_data3", "P1_SxS_Assigned", "P1_DxN_Assigned", "LGHomDf_P1_1")
Assigned_markers<-homologue_lg_assignment(dosage_matrix = 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,ploidy=4,LG_number = 5,
write_intermediate_files=FALSE)
## End(Not run)