find_bins: Allocate markers into bins

View source: R/find_bins.R

find_binsR Documentation

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)

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.

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

Author(s)

Marcelo Mollinari, mmollina@usp.br

See Also

create_data_bins

Examples


  data("vcf_example_out")
  (bins<-find_bins(vcf_example_out, exact=FALSE))




onemap documentation built on Nov. 26, 2022, 9:05 a.m.