partition_bulk_dataset {BPRMeth} | R Documentation

## Partition bulk methylation dataset to training and test set

### Description

Partition bulk methylation dataset to training and test set

### Usage

    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

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

[Package BPRMeth version 1.12.0 Index]