down_sample: Down Sample The Original Dataset

Description Usage Arguments Details Value See Also Examples

View source: R/down_sample.R

Description

Down-sample the dataset in order to run faster.

Usage

1
down_sample(CNV_data, factor = 10)

Arguments

CNV_data

The CNV dataset (see load_data)

factor

The factore to which the dataset to do down sampled

Details

For the copy number dataset is usually quite large to work with, and the fixed-point iteration is quite computationally expensive, to save some time, it is helpful to down-sample the number of loci (no change to the number of samples).

This function down-samples the original one to make the algorithms run faster, and because most loci have similar values to the adjacent one, this doesn't cause much inaccuracy.

Value

Dataset with the minor and major copy, as well as the number of loci being down sampled (see load_data)

See Also

load_data

Examples

1
wkdata<-down_sample(wkdata,10)

yun-feng/WGDAP documentation built on Nov. 5, 2019, 1:22 p.m.