Description Usage Arguments Value Examples
Identifies which PCs distinguish a feature of interest. If the feature of interest contains two classes, performs a single rank sum test for each PC. If the feature of interest has >2 classes, performs a rank sum test to see if the PC separates the class from all others. In either case, returns a data frame containing the PC, class, AUROC, and rank sum P-value for how well the PC identifies the class.
1 | findDistinguishingPCs(rotatedData, classLabels)
|
rotatedData |
The samples' projections on PC space. Include here as many PCs as you want to inspect |
classLabels |
Either a data frame (first column containing sample labels, second containing classes), or a list where the names of the list are the sample labels and the entries in the list are the classes. |
Returns a data.frame containing the following columns: PC (which PC was used for each comparison), AUROC (the area under the ROC curve for how well each PC distinguishes each class), P (rank sum p-value for how well the PC distinguishes the class), class (the class).
1 2 | kmerMat = inputKMerFreqs(sprintf("kMerFiles/%s.freq.gz",sampleDesc$id), IDs = sampleDesc$id)
myPCA = doKMerPCA(kmerMat, nPCs = "jackstraw")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.