binarise_files {Melissa} | R Documentation

## Binarise CpG sites

### Description

Script for binarising CpG sites and formatting the coverage file so it can be directly used from the BPRMeth package. The format of each file is the following: <chr> <start> <met_level>, where met_level can be either 0 or 1.

### Usage

    binarise_files(indir, outdir = NULL, no_cores = NULL)

### Arguments

`indir` | Directory containing the coverage files, output from Bismark.
`outdir` | Directory to store the output files for each cell with exactly the same name. If NULL, then a directory called 'binarised' inside 'indir' will be create by default.
`no_cores` | Number of cores to use for parallel processing. If NULL, no parallel processing is used.

### Value

No value is returned, the binarised data are stored in the outdir.

### Author(s)

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

### See Also

`create_melissa_data_obj`, `melissa`, `filter_regions`

### Examples

    ## Not run:
    # Met directory
    met_dir <- "name_of_met_dir"

    binarise_files(met_dir)

    ## End(Not run)

[Package Melissa version 1.0.0 Index]