View source: R/create_dataset_bins.R
create_data_bins | R Documentation |
Creates a new dataset based on onemap_bin
object
create_data_bins(input.obj, bins)
input.obj |
an object of class |
bins |
an object of class |
Given a onemap_bin
object,
creates a new data set where the redundant markers are
collapsed into bins and represented by the marker with the lower
amount of missing data among those on the bin.
An object of class onemap
, i.e., a list with the following
components:
geno |
a matrix with integers indicating the genotypes read for each marker. Each column contains data for a marker and each row represents an individual. |
n.ind |
number of individuals. |
n.mar |
number of markers. |
segr.type |
a vector with the
segregation type of each marker, as |
segr.type.num |
a
vector with the segregation type of each marker, represented in a
simplified manner as integers, i.e. 1 corresponds to markers of type
|
input |
the name of the input file. |
n.phe |
number of phenotypes. |
pheno |
a matrix with phenotypic values. Each column contains data for a trait and each row represents an individual. |
error |
matrix containing HMM emission probabilities |
Marcelo Mollinari, mmollina@usp.br
find_bins
data("onemap_example_f2") (bins<-find_bins(onemap_example_f2, exact=FALSE)) onemap_bins <- create_data_bins(onemap_example_f2, bins)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.