check_marker | R Documentation |
This function checks the markers for specified clusters returned by the
matchCellMarker2
function. It allows users to filter by species, cluster,
and to specify whether to consider cis or trans interactions.
check_marker(marker, n, spc, cl = c(), topcellN = 2, cis = FALSE)
marker |
A data frame of markers obtained from |
n |
An integer specifying the top number of genes to match from the input markers. |
spc |
A character string specifying the species, which can be either 'Human' or 'Mouse'. |
cl |
An integer or vector of integers specifying the clusters to check. |
topcellN |
An integer specifying the number of top cells to check for each cluster. |
cis |
A logical value indicating whether to check marker directly from the top symbol of
|
A named list where each name corresponds to a cell type and each element is a vector of marker names.
# Example usage:
# Check the top 50 markers for clusters 1, 4, and 7 in the Human species.
library(easybio)
data(pbmc.markers)
verified_markers <- check_marker(pbmc.markers, n = 50, spc = "Human", cl = c(1, 4, 7))
print(verified_markers)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.