Learn R Programming

onemap (version 3.0.0)

find_bins: Allocate markers into bins

Description

Function to allocate markers with redundant information into bins. Within each bin, the pairwise recombination fraction between markers is zero.

Usage

find_bins(input.obj, exact = TRUE)

Value

An object of class onemap_bin, which is a list containing the following components:

bins

a list containing the bins. Each element of the list is a table whose lines indicate the name of the marker, the bin in which that particular marker was allocated and the percentage of missing data. The name of each element of the list corresponds to the marker with the lower amount of missing data among those on the bin

n.mar

total number of markers.

n.ind

number individuals

exact.search

logical; indicates if the search was performed with the argument exact=TRUE or exact=FALSE

Arguments

input.obj

an object of class onemap.

exact

logical. If TRUE, it only allocates markers with the exact same information into bins, including missing data; if FALSE, missing data are not considered when allocating markers. In the latter case, the marker with the lowest amount of missing data is taken as the representative marker on that bin.

Author

Marcelo Mollinari, mmollina@usp.br

See Also

create_data_bins

Examples

Run this code
# \donttest{
  data("vcf_example_out")
  (bins<-find_bins(vcf_example_out, exact=FALSE))
# }


Run the code above in your browser using DataLab