get_marker | R Documentation |
This function extracts a list of markers for one or more cell types from the
cellMarker2
dataset. It allows filtering by species, cell type, the number
of markers to retrieve, and a minimum count threshold for marker occurrences.
get_marker(spc, cell = character(), number = 5, min.count = 1)
spc |
A character string specifying the species, which can be either 'Human' or 'Mouse'. |
cell |
A character vector of cell types for which to retrieve markers. |
number |
An integer specifying the number of top markers to return for each cell type. |
min.count |
An integer representing the minimum number of times a marker must have been reported to be included in the results. |
A named list where each name corresponds to a cell type and each element is a vector of marker names.
# Example usage:
# Retrieve the top 5 markers for 'Macrophage' and 'Monocyte' cell types in humans,
# with a minimum count of 1.
library(easybio)
markers <- get_marker(spc = "Human", cell = c("Macrophage", "Monocyte"))
print(markers)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.