View source: R/Read_seurat_markers.R
| Read_seurat_markers | R Documentation |
Create "Marker_list" from Seurat object
Read_seurat_markers(
df,
sources = c("Seurat", "presto"),
sort_by = "FSS",
gene_filter = 20
)
df |
Dataframe generated by "FindAllMarkers" function, recommend to use parameter "group.by = "Cell_type"" and "only.pos = TRUE". |
sources |
Type of markers sources to use. Be one of: |
sort_by |
Marker sorting parameter, for Seurat sources, select "avg_log2FC" or
"p_val_adj" or "FSS" (Feature Significance Score, FSS, product value of |
gene_filter |
The number of markers left for each cell type based on the "sort_by" parameter's level of difference. Default parameters use "gene_fliter = 20" |
The standardized "Marker_list" in the SlimR package.
Other Section_2_Standardized_Markers_List:
Markers_filter_Cellmarker2(),
Markers_filter_PanglaoDB(),
Read_excel_markers()
## Not run:
# Example for Seurat sources markers
seurat_markers <- Seurat::FindAllMarkers(
object = sce,
group.by = "Cell_type",
only.pos = TRUE)
Markers_list_Seurat <- Read_seurat_markers(seurat_markers,
sources = "Seurat",
sort_by = "avg_log2FC",
gene_filter = 20
)
# Example for presto sources markers
seurat_markers <- dplyr::filter(
presto::wilcoxauc(
X = sce,
group_by = "Cell_type",
seurat_assay = "RNA"
),
padj < 0.05, logFC > 0.5
)
Markers_list_Seurat <- Read_seurat_markers(seurat_markers,
sources = "presto",
sort_by = "logFC",
gene_filter = 20
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.