This function assigns each cluster to a predefined set of classes (exc, inh, glia, donor, outlier) using test.genes (default GAD1, GAD2, SLC17A7, SLC17A6). Later iterations of the function will allow for user-defined classes and genes.
anno dataframe which must include column names listed in `neun.colname` "cluster" is added from `cluster` parameter below.
clusters labels for all cells along with sample_id as their names
expression dataframe with columns as cells and rows as gene names and cpm normalized
column names of norm.dat
fraction of cells expressing NeuN to be considered NeuN positive (default is 0.5)
column name in anno with the Neun information
value corresponding to non-neuronal marker in neun.colname in anno
genes used to define cell classes (default is GAD1, GAD2, SLC17A7, SLC17A6)
expression threshold for detecting test genes
proportion threshold of detected genes by cluster (default is 0.5, 0.5, 0.2, 0.2)
vector of clusters previously defined as "outlier" (default is NULL)
vector of clusters previously defined as "donor" (default is NULL)
gives the clusters names in each class (exc, inh, glia, donor, outlier) as a list