bootstrapDist: bootstrapDist

View source: R/bootstrap.R

bootstrapDistR Documentation

bootstrapDist

Description

Generating distribution of sample genetic distances

Usage

bootstrapDist(co_gr, B = 1000, mapping_fun = "k", group_by)

Arguments

co_gr

GRanges or RangedSummarizedExperiment object that contains the crossover counts for each marker interval across all samples. Returned by countCOs

B

integer the number of sampling times

mapping_fun

character default to "k" (kosambi mapping function). It can be one of the mapping functions: "k","h"

group_by,

the prefix for each group that we need to generate distributions for(only when co_gr is a GRanges object). Or the column name for 'colData(co_gr)' that contains the group factor (only when co_gr is a RangedSummarizedExperiment object)

Details

It takes the crossover counts for samples in multiple groups that is returned by 'countCO'. It then draws samples from a group with replacement and calculate the distribution of relevant statistics.

Value

lists of numeric genetic distances for multiple samples

Author(s)

Ruqian Lyu

Examples

data(coCount)

bootsDiff <- bootstrapDist(coCount, group_by = "sampleGroup",B=10)

ruqianl/comapr documentation built on Oct. 27, 2023, 5:12 a.m.