bsseqToDataTable: Convert a BSseq object to data.table format for MIRA.

Description Usage Arguments Value Examples

View source: R/utility.R

Description

Converts a BSseq object to a list of data.tables with one data.table per sample. A wrapper of the SummarizedExperimentToDataTable function.

Usage

1
bsseqToDataTable(BSseqObj)

Arguments

BSseqObj

An object of class BSseq, can have smoothed or raw methylation data.

Value

MIRAFormatBSDTList A list of data.tables containing the methylation data. One data.table per sample with the column names: 'chr', 'start' (methylation coordinate), 'methylCount' (number of methylated reads), 'coverage' (total number of reads), and 'methylProp' (proportion of methylated reads). The order of the list is the order of samples in the columns of the BSseq object. If sample names are in the BSseq object, then a named list will be returned.

Examples

1
2
data("exampleBSseqObj")
MIRAFormatBSDTList <- bsseqToDataTable(exampleBSseqObj)

MIRA documentation built on Nov. 8, 2020, 4:51 p.m.