View source: R/exported_functions.R
finish_linkage_analysis | R Documentation |
finish_linkage_analysis
is a wrapper for linkage
, or in the case of probabilistic genotypes, linkage.gp
.
The function performs linkage calculations between all markertypes within a linkage group.
finish_linkage_analysis(
input_type = "discrete",
marker_assignment,
dosage_matrix,
probgeno_df,
chk,
marker_combinations = NULL,
target_parent = "P1",
other_parent = "P2",
convert_palindrome_markers = TRUE,
ploidy,
ploidy2 = NULL,
pairing = c("random", "preferential"),
prefPars = c(0, 0),
LG_number,
verbose = TRUE,
log = NULL,
...
)
input_type |
Can be either one of 'discrete' or 'probabilistic'. For the former (default), |
marker_assignment |
A marker assignment matrix with markernames as rownames and at least containing the column |
dosage_matrix |
A named 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 |
marker_combinations |
A matrix with four columns specifying marker combinations to calculate linkage.
If |
target_parent |
Character string specifying the target parent (in out-crossing species, linkage analysis is performed per parent). |
other_parent |
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 |
Integer ploidy level of target parent, and also by default other parent. Argument |
ploidy2 |
Integer, by default |
pairing |
Type of pairing at meiosis, with options |
prefPars |
The estimates for preferential pairing parameters for parent 1 and 2, in range 0 <= p < 2/3. By default this is c(0,0) (so, no preferential pairing).
See the function |
LG_number |
Number of linkage groups (chromosomes). |
verbose |
Should messages be sent to stdout or log? |
log |
Character string specifying the log filename to which standard output should be written. If NULL log is send to stdout. |
... |
(Other) arguments passed to |
Returns a matrix with marker assignments. Number of linkages of 1.0 markers are artificial.
## Not run:
data("screened_data3", "marker_assignments_P1")
linkages_list_P1<-finish_linkage_analysis(marker_assignment=marker_assignments_P1,
dosage_matrix=screened_data3,
target_parent="P1",
other_parent="P2",
convert_palindrome_markers=FALSE,
ploidy=4,
pairing="random",
LG_number=5)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.