meiosis_report: Generate a 'report' of predicted meiotic behaviour in an F1...

Description Usage Arguments Value Examples

View source: R/polyqtlR_functions.R

Description

Function to extract the chromosome pairing predictions as estimated by estimate_IBD. Apart from producing an overview of the pairing during parental meiosis (including counts of multivalents, per linkage group per parent), the function also applies a simple chi-squared test to look for evidence of non-random pairing behaviour from the bivalent counts (deviations from a polysomic model)

Usage

1
2
3
4
5
6
meiosis_report(
  IBD_list,
  visualise = FALSE,
  plausible_pairing_prob = 0.9,
  precision = 2
)

Arguments

IBD_list

List of IBD probabilities as estimated by estimate_IBD using method 'hmm', or externally (e.g. using TetraOrigin)

visualise

Logical, by default FALSE. If TRUE, a plot of the pairing results is produced per LG. In order to flag extreme deviations from the expected numbers (associated with polysomic inheritance, considered the Null hypothesis), barplots are coloured according to the level of significance of the X2 test. Plots showing red bars indicate extreme deviations from a polysomic pattern.

plausible_pairing_prob

The minimum probability of a pairing configuration needed to analyse an individual's IBD data.

precision

To how many decimal places should summed probabilities per bivalent pairing be rounded? By default 2.

Value

The function returns a nested list, with one element per linkage group in the same order as the input IBD list. Per linkage group, a list is returned containing the following components:

Examples

1
2
data("IBD_4x")
mr.ls<-meiosis_report(IBD_list = IBD_4x)

polyqtlR documentation built on Feb. 2, 2022, 5:09 p.m.