R/human_functions_rename.r
getTopMarkersByPropNew.RdThis function identifies the top marker gene (or "none") for each cluster based on the cluster medians and proportions of cells expressing a gene and based on various parameters.
getTopMarkersByPropNew(
propExpr,
medianExpr,
propDiff = 0,
propMin = 0.5,
medianFC = 1,
excludeGenes = NULL,
sortByMedian = TRUE
)matrix of proportions of cells expressing a gene in each cluster (genes=rows, clusters=columns)
matrix of median expression per cluster (genes=rows, clusters=columns)
Must have difference in proportion higher than this value in "on" cluster compared with each other cluster
Must have higher proportion in "on" cluster
Must have median fold change greater than this value in "on" group vs. each other cluster
Genes exlcuded from marker consideration (NULL by default)
Should genes passing all filters be prioritized by median fold change (TRUE, default) or by difference in proportion between clusters (FALSE)
a vector of the top marker gene per cluster (or "none" for clusters with none)
Note: this could potentially be replaced by an existing hicat function for identifying marker genes. This function is fast and chooses 'reasonable" genes.