Description Usage Arguments Details Value Author(s) Examples
Run differential principal component analysis with incorporated dPCA program
1 2 3 4 5 6 7 8 9 10 11 12 13 | dPCA(meta, bed, data, sampleId = NULL, groups = 1:2,
datasets = NULL, transform = NULL, normlen = NULL,
minlen = 50, lambda = 0.15, fun = function(x)
sqrt(mean(x^2)), datasetLabels = NULL, groupLabels =
NULL, qnormalize = TRUE, qnormalizeFirst = FALSE,
normalize = FALSE, verbose = FALSE, interactive =
FALSE, useSVD = FALSE, saveFile = FALSE, processedData
= TRUE, removeLowCoverageChIPseq = FALSE,
removeLowCoverageChIPseqProbs = 0.1, dPCsigns = NULL,
nPaired = 0, nTransform = 0, nColMeanCent = 0,
nColStand = 0, nMColMeanCent = 1, nMColStand = 0,
dSNRCut = 5, nUsedPCAZ = 0, nUseRB = 0, dPeakFDRCut =
0.5)
|
meta |
Meta information consists three columns (1) filenames, (2) biological groups, and (3) dataset IDs. Can be either data.frame or matrix. |
bed |
Input genomic regions in data.frame or matrix format, which needs to have four columns in exact this order: chromosome names, start position, end position, ID. |
data |
Data.frame or matrix which contains the intensity data for each input genomic regions. Columns are sorted in the order of filenames of meta information, can be produced using |
sampleId |
Vector of sample IDs used to be tested, equivalent to the line numbers of the meta information. |
groups |
Vector or List of group IDs used to be tested, specified in the group fields of the meta information. If the input is a list, for example |
datasets |
Vector of dataset IDs used to be tested, specified in the datasets fields of the meta information. |
transform |
Vector of dataset IDs which need to be transformed, power-transformations are applied according to the lambda estimated by |
normlen |
Vector of datasets IDs which need to normalized according to the length of the genomic regions. |
minlen |
Numeric value of minimum length of the genomic regions to be tested, genomic regions less than this threshold are discarded. |
normalize |
Logical whether data will be normalized to the total library size, default is FALSE. |
qnormalize |
Logical whether quantile will be applied to all samples, default is TRUE. |
fun |
Transformation function to be applied to PCs, which produces another PCx field in the output incorporating one or several PCs. Here are some examples:
and by default, function(x) sqrt(mean(x^2)) is used. |
verbose |
Logical whether additional information and figures are shown during power-transformation and normalization. |
processedData |
Logical whether the processed data will be returned with other outputs. |
This function filters, normalizes and transforms the desired groups and datasets of the data, then forwards the processed data to a incorporated C program called dPCA (see PMID: 23569280), and outputs the dPCs and other information from the program.
A named list contains three data.frames:
gr
The predefined regions followed by the computed dPCs from dPCA, as well as PCx produced by the transformation function. If processedData
is TRUE, the processed data will also be append to the data.frame.
Dobs The D matrix, which contains the observed differences between the two conditions. This is the data analyzed by dPCA.
proj Estimated beta coefficients for each dPC.
Qi Wang
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.