Description Usage Arguments Details Value Author(s)
View source: R/MT_QC_methylation.R
Multiple QC procedures of an RGChannelSet object containing methylation data.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | QC_methylation(
RGset,
projectfolder = "MT/QC",
projectname = NULL,
sampleColumn = "Sample_Name",
groupColumn = "Sample_Group",
preprocessing = c("raw", "illumina", "swan"),
QC_procedures = c("minfi", "WGCNA"),
numPositionsMDSplot = 1000,
methPlatform = "450k-UCSC",
phDendro = "Sample_Group",
flashClustMethod = "average",
cex.dendroLabels = 0.6,
threshold.Z.k = -5
)
|
RGset |
RGChannelSet object with methylation data. |
projectfolder |
character with directory for output files (will be generated if not exisiting). |
projectname |
optional character prefix for output file names. |
sampleColumn |
character with column name of Sample names in |
groupColumn |
character with column name of group names in |
preprocessing |
character with preprocessing procedures to apply. Any of |
QC_procedures |
character with desired QC procedures to use. Any of |
numPositionsMDSplot |
number of genomic positions with the most methylation variability to be used for
calculating distance between samples in MDS plots (needed for |
methPlatform |
Annotation file to be used. Enter "450k-UCSC" for UCSC CpG Islands for 450k array probes, "
450k-HMM" for HMM CpG Islands for 450k array probes, "27k" for UCSC CpG Islands for 27k array probes
(needed for |
phDendro |
character vector with phenotypes of |
flashClustMethod |
character vector with the agglomeration method to be used in |
cex.dendroLabels |
numeric. Controls size of labels sample in dendrogram (needed for |
threshold.Z.k |
numeric. Threshold for outlier prediction in |
This function takes an RGChannelSet as input and transforms it to a MethylSet object using 3 preprocessing procedures
from minfi
package:
preprocessRaw
(no normalisiation)
preprocessIllumina
applies background subtraction as well as control normalization like in Illumina Genome studio
preprocessSWAN
applies SWAN normalization method on a preprocessed MethylSet to reduce the technical variability
of Type I and Type II Illumina probes. For this, Illumina preprocessed MethylSet is used if given,
the raw preprocessed MethylSet otherwise.
Quality control functions are applied to all 3 MethylSet objects.
The required annotation packages (currently hg19 only) IlluminaHumanMethylation450kmanifest
and
IlluminaHumanMethylation450kanno.ilmn12.hg19
are installed and/or loaded automatically.
Required packages not already attached when running QC_methylation
are detached afterwards.
The function generates the following plots using quality control functionalities from up to 3 packages:
minfi
qcReport using array control probes (for RGChannelSet)
Median intensity plots
Predicted sex plots
Multi-dimensional scaling (MDS) plots
Histogram overview of Illumina and SWAN normalisation
COHCAP
(needs much computational resources)
Cluster plot
PCA plot
histogram plot
WGCNA
clustered sample dendrogram
indicated outlier detection
no value returned. QC plots are stored as side-effects.
Frank Ruehle
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.