Description Usage Arguments Details Value See Also Examples
Down-sample the dataset in order to run faster.
1 | down_sample(CNV_data, factor = 10)
|
CNV_data |
The CNV dataset (see |
factor |
The factore to which the dataset to do down sampled |
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.
Dataset with the minor and major copy, as well as the number of loci being down sampled (see load_data
)
1 | wkdata<-down_sample(wkdata,10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.