partition_bulk_dataset: Partition bulk methylation dataset to training and test set

Description Usage Arguments Value Author(s) See Also Examples

View source: R/process_data.R

Description

Partition bulk methylation dataset to training and test set

Usage

1
partition_bulk_dataset(dt_obj, cpg_train_prcg = 0.5)

Arguments

dt_obj

BPRMeth data 'region_object' object

cpg_train_prcg

Fraction of CpGs in each genomic region to keep for training set.

Value

The BPRMeth data 'region_object' object with the following changes. The 'met' element will now contain only the 'training' data. An additional element called 'met_test' will store the data that will be used during testing to evaluate the imputation performance. These data will not be seen from BPRMeth during inference.

Author(s)

C.A.Kapourani C.A.Kapourani@ed.ac.uk

See Also

create_region_object, read_met, impute_bulk_met

Examples

1
2
# Partition the synthetic data from BPRMeth package
dt <- partition_bulk_dataset(encode_met)

BPRMeth documentation built on Nov. 8, 2020, 5:54 p.m.