Skip to contents

This function is designed to offer flexible simplification of mapped cells counts. This can be applied after running combine_cell_counts(). However, if mapping is being conducted using the SMARTTR package, we recommend simplifying mapped counts earlier, at the level of mouse objects using normalize_cell_counts() because the options offered for simplification are more flexible. The benefit of this function is that it can operate on experiment objects with externally imported combined cell counts tables that are formatted for compatibility. This allows for simplification using other ontologies. See the available atlas options under the ontology parameter.

Usage

simplify_cell_count(
  e,
  ontology = "allen",
  simplify_keywords = c("layer", "part", "stratum", "division", "leaflet",
    "Subgeniculate", "island", "Islands", "Fields of Forel", "Cajal", "Darkschewitsch",
    "Precommissural"),
  dont_fold = c("Dorsal part of the lateral geniculate complex",
    "Ventral posterolateral nucleus of the thalamus, parvicellular part",
    "Ventral posteromedial nucleus of the thalamus, parvicellular part",
    "Ventral posterolateral nucleus of the thalamus, parvicellular part",
    "Ventral posteromedial nucleus of the thalamus, parvicellular part",
    "Substantia nigra")
)

Arguments

e

experiment object

ontology

(str, default = "allen") Region ontology to use. options = "allen" or "unified"

simplify_keywords

(str vec, default = c("layer","part","stratum","division", "leaflet", "Subgeniculate", "island", "Islands", "Fields of Forel", "Cajal", "Darkschewitsch", "Precommissural")). Keywords to search through region names and simplify to parent structure.

dont_fold

(vec) Regions that are exceptions to being folded into their parent regions.

Value

e experiment object with simplified keywords

Examples

if (FALSE) {
e <- simplify_cell_count(e)
}