Description Usage Arguments Details Value Examples
This function perform preprocessing for CAM, including norm-based filtering, dimension deduction, perspective projection, local outlier removal and aggregation of gene expression vectors by clustering.
1 2 3 4 |
data |
Matrix of mixture expression profiles. Data frame, SummarizedExperiment or ExpressionSet object will be internally coerced into a matrix. Each row is a gene and each column is a sample. Data should be in non-log linear space with non-negative numerical values (i.e. >= 0). Missing values are not supported. All-zero rows will be removed internally. |
dim.rdc |
Reduced data dimension; should be not less than maximum candidate K. |
thres.low |
The lower bound of percentage of genes to keep for CAM with ranked norm. The value should be between 0 and 1. The default is 0.05. |
thres.high |
The higher bound of percentage of genes to keep for CAM with ranked norm. The value should be between 0 and 1. The default is 0.95. |
cluster.method |
The method to do clustering. The default "K-Means" will
use |
cluster.num |
The number of clusters; should be much larger than K. The default is 50. |
MG.num.thres |
The clusters with the gene number smaller than MG.num.thres will be treated as outliers. The default is 20. |
lof.thres |
Remove local outlier using |
quickhull |
Perform quickhull to select clusters or not. The default is True. |
quick.select |
The number of candidate corners kept after quickhull and SFFS greedy search. If Null, only quickhull is applied. The default is 20. If this value is larger than the number of candidate corners after quickhull, greedy search will also not be applied. |
sample.weight |
Vector of sample weights. If NULL, all samples have the same weights. The length should be the same as sample numbers. All values should be positive. |
generalNMF |
If TRUE, the decomposed proportion matrix has no sum-to-one constraint for each row. Without assuming samples are normalized, the first principal component will not forced to be along c(1,1,..,1) but a standard PCA will be applied during preprocessing. |
This function is used internally by CAM
function to
preprocess data, or used when you want to perform CAM step by step.
Low/high-expressed genes are filtered by their L2-norm ranks. Dimension reduction is slightly different from PCA. The first loading vector is forced to be c(1,1,...,1) with unit norm normalization. The remaining are eigenvectors from PCA in the space orthogonal to the first vector. Perspective projection is to project dimension-reduced gene expression vectors to the hyperplane orthogonal to c(1,0,...,0), i.e., the first axis in the new coordinate system. local outlier removal is optional to exclude outliers in simplex formed after perspective projection. Finally, gene expression vectors are aggregated by clustering to further reduce the impact of noise/outlier and help improve the efficiency of simplex corner detection.
An object of class "CAMPrepObj
" containing the
following components:
Valid |
logical vector to indicate the genes left after filtering. |
Xprep |
Preprocessed data matrix. |
Xproj |
Preprocessed data matrix after perspective projection. |
W |
The matrix whose rows are loading vectors. |
SW |
Sample weights. |
cluster |
cluster results including two vectors. The first indicates the cluster to which each gene is allocated. The second is the number of genes in each cluster. |
c.outlier |
The clusters with the gene number smaller than MG.num.thres. |
centers |
The centers of candidate corner clusters (candidate clusters containing marker genes). |
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.