possibleClustersByPriors.RdThis function will return a vector of possible clusters for cells that meet a set of priors for each layer
vector of all clusters
list of layers for each cluster entry (for data sets with only laminar dissections, each list entry will be of length 1)
a vector of TRUE/FALSE values indicated whether the entry is in the subset of interest (e.g., Cre lines); default is all
a set of clusters to be considered a priori (e.g., GABA vs. glut); default is all
define any values less than this as 0. The idea is to exclude rare cells
names of all layers. set to NULL to have this calculated
if TRUE, scales to the proportion of cells in each layer
what function should be used for the layer scaling (default=max, ignored if scaleByLayer=FALSE)
if TRUE, multilayer dissections are weighted smartly by cluster, rather than evenly by cluster (FALSE)
fractional amount of cells in a layer below which it is assumed no cells are from that layer in multilayer dissection
anything less than this is set to 0 for convenience
a vector of possible clusters for cells that meet a set of priors for each layer