calcPercentConversion: Calculate percent conversion

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/calcPercentConversion.R

Description

Function to calculate percent methylation (wrapper for calcMeth() function) for each identified conversion control

Usage

1
calcPercentConversion(fragments, peaks)

Arguments

fragments

List of MassArrayFragment objects

peaks

List of MassArrayPeak objects comprising spectral data to be used for conversion control calculations

Details

This function serves as a wrapper function for calcMeth(), such that percent methylation is calculated for all conversion controls within the input list of fragments.

Value

Returns a list of numerical values (from 0 to 1) corresponding to percent methylation for each conversion control, with 0 Note that each element within the returned list will represent conversion control(s) for a single sample, while each element may contain multiple values with each value corresponding to data obtained from a single conversion control fragment.

Author(s)

Reid F. Thompson (rthompso@aecom.yu.edu), John M. Greally (jgreally@aecom.yu.edu)

See Also

See Also calcMeth, convControl

Examples

1
2
3
4
5
6
7
data(MassArray.example.data)
conversion.data <- calcPercentConversion(MassArray.example.data$fragments.T, MassArray.example.data$samples[[1]]$peaks)
mean(conversion.data)

# NOTE: conversion control data may already be contained within a MassArrayData object; these data can be accessed and visualized by the following (or alternative) commands
conversion.data <- unlist(lapply(lapply(MassArray.example.data$samples, slot, "quality.conversion"), median, na.rm=TRUE))
barplot(conversion.data)

MassArray documentation built on Nov. 8, 2020, 5:16 p.m.