Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/calcPercentConversion.R
Function to calculate percent methylation from a collection of peaks corresponding to a single fragment.
1 |
SNR.list |
List of signal-to-noise ratios, sorted from low to high MWs, corresponding to the unmethylated and methylated peaks for a given set of fragments |
fragments |
List of all fragments contributing to each of the input peaks, automatically defaulting to a single fragment |
non.cg.fragments |
List of fragments (without CGs) contributing to any of the input peaks, automatically defaulting to |
method |
Specifies which algorithm to use when calculating percent methylation (either |
prune.non.cg.peaks |
Boolean value determining whether or not to remove non-CG-containing fragments prior to analysis or whether to include them in the calculating model (note that setting this option to |
na.rm |
Boolean value determing whether or not to return an error on input of any unspecified data ( |
Note that the current release of this function performs as expected for the large majority of cases. However, certain complex combinations of peak overlaps are not handled at this time. This may affect data for a minority of points, particularly those containing multiple overlaps with alternative fragments. Please ensure more in-depth review of such loci.
Returns a numerical values corresponding to percent methylation, with 0
Reid F. Thompson (rthompso@aecom.yu.edu), John M. Greally (jgreally@aecom.yu.edu)
Coolen, M.W., et al. (2007) Genomic profiling of CpG methylation and allelic specificity using quantitative high-throughput mass spectrometry: critical evaluation and improvements, Nucleic Acids Research, 35(18), e119.
See Also MassArrayPeak
1 2 3 4 5 6 7 | data(MassArray.example.data)
frags <- MassArray.example.data$fragments.T[[6]]$"MW"
peaks <- findPeaks(frags, unlist(lapply(MassArray.example.data$samples[[1]]$peaks, slot, "MW.actual")))
SNRs <- unlist(lapply(MassArray.example.data$samples[[1]]$peaks[peaks], slot, "SNR"))
frag.list <- list(1:3, 1:3, 1:3, 1:3)
calcMeth(SNRs, fragments=frag.list, method="weighted")
calcMeth(SNRs, fragments=frag.list, method="proportion")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.