Learn R Programming

cape (version 2.0.2)

get.pairs.for.pairscan: Select marker pairs for pairscan based on filters

Description

This function selects which marker pairs can be tested in the pair scan. Even if all markers are linearly independent, some marker pairs may have insufficient recombination between them to populate all genotype combinations. Marker pairs for which genotype combinations have insufficient numbers of individuals are not tested. This function determines which marker pairs have sufficient representation in all genotype combinations.

Usage

get.pairs.for.pairscan(geno, min.per.genotype = NULL, max.pair.cor = NULL, verbose = FALSE, n.cores = 2)

Arguments

geno
A two dimensional genotype matrix with rows containing individuals and columns containing markers. Each entry is a value between 0 and 1 indicating the genotype of each individual at each marker.
min.per.genotype
The minimum number of individuals allowable per genotype. If for a given marker pair, one of the genotypes is underrepresented, the marker pair is not tested. If this value is NULL, max.pair.cor must have a numeric value.
max.pair.cor
A numeric value between 0 and 1 indicating the maximum Pearson correlation that two markers are allowed. If the correlation between a pair of markers exceeds this threshold, the pair is not tested. If this value is set to NULL, min.per.genotype must have a numeric value.
verbose
A logical value. If TRUE, the script prints a message to the screen to indicate that it is running. If FALSE, no message is printed.
n.cores
An integer specifying the number of cores to be used in parallel processing.

Value

This function returns a two-column matrix of marker pairs. This matrix is then used to specify which marker pairs should be tested.