Learn R Programming

onemap (version 2.1.1)

select_segreg: Show markers with/without segregation distortion

Description

A function to shows which marker have segregation distortion if Bonferroni's correction is applied for the Chi-square tests of mendelian segregation.

Usage

select_segreg(x, distorted = FALSE, numbers = FALSE)

Arguments

x

an object of class onemap_segreg_test

distorted

a TRUE/FALSE variable to show distorted or non-distorted markers

numbers

a TRUE/FALSE variable to show the numbers or the names of the markers

Value

a vector with marker names or numbers, according to the option for "distorted" and "numbers"

Examples

Run this code
# NOT RUN {
# Loads a fake backcross dataset installed with onemap
data(mapmaker_example_bc)
# Performs the chi-square test for all markers
Chi <- test_segregation(mapmaker_example_bc)
# To show non-distorted markers
select_segreg(Chi)
# To show markers with segregation distortion
select_segreg(Chi, distorted=TRUE)
# To show the numbers of the markers with segregation distortion
select_segreg(Chi, distorted=TRUE, numbers=TRUE)

# }

Run the code above in your browser using DataLab