View source: R/Seurat.Utils.Metadata.R
calculatePercentageMatch | R Documentation |
This function calculates the percentage of matches for specified metadata features against provided match values within each category of an identifier in a Seurat object.
calculatePercentageMatch(
obj,
ident = GetClusteringRuns()[1],
meta.features = c("AAV.detected.min2", "AAV.detected"),
match.values = c(AAV.detected.min2 = "AAV", AAV.detected = "AAV"),
verbose = TRUE,
max.categ = 100
)
obj |
A Seurat object containing the data to be analyzed. Default: combined.obj. |
ident |
A string specifying the column in the metadata that identifies the categories.
Default: first element of |
meta.features |
A vector of strings specifying which metadata features to analyze. Default: c("AAV.detected.min2", "AAV.detected"). |
match.values |
A named vector where names correspond to |
verbose |
A logical value indicating whether to print detailed output. Default: |
max.categ |
The maximum number of categories allowed before stopping. Default: 30. |
A data frame with the category as the first column and the subsequent columns showing the percentage of matches for each metadata feature.
calculatePercentageMatch(obj = combined.obj, ident = "Simple_Celltypes")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.