diffNoisyGenes {RaceID} | R Documentation |
Function for extracting genes with elevated variability in a cluster
Description
This function extracts genes with significantly elevated variability in a cluster on a basis of a Wilcoxon rank sum-test between cells in a cluster and all remaining cells.
Usage
diffNoisyGenes(noise, cl, set, bgr = NULL, no_cores = 1)
Arguments
noise |
List object with the background noise model and a variability matrix, returned by the |
cl |
List object with clustering information, returned by the |
set |
Postive integer number or vector of integers corresponding to valid cluster numbers. The function reports genes with elevated variability in all
clusters contained in |
bgr |
Postive integer number or vector of integers corresponding to valid cluster numbers. Background set for comparison. The function reports genes
with elevated variability in all clusters contained in |
no_cores |
Positive integer number. Number of cores for multithreading. If set to |
Value
Data.frame reporting the log2 fold change between clusters in set
and the remaining clusters and the p-value for elevated variability for each genes. Rows are ordered by decreasing log2 fold change.
Examples
res <- pruneKnn(intestinalDataSmall,knn=10,alpha=1,no_cores=1,FSelect=FALSE)
noise <- compNoise(intestinalDataSmall,res,pvalue=0.01,genes = NULL,no_cores=1)
cl <- graphCluster(res,pvalue=0.01)
ngenes <- diffNoisyGenes(noise,cl,c(1,2),no_cores=1)