You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vignettes/SCWorkflow-Annotations.Rmd
+42-30Lines changed: 42 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,11 @@ library(dplyr)
21
21
library(ggplot2)
22
22
library(tibble)
23
23
24
-
Comb_SO=readRDS("./images/CN_SO.rds")
24
+
Comb_SO=list()
25
+
Comb_SO$object=readRDS("./images/CN_SO.rds")
26
+
evalChunk=F
27
+
28
+
25
29
```
26
30
27
31
@@ -32,7 +36,7 @@ This function automates cell type annotation in single-cell RNA sequencing data
32
36
SingleR is an automatic annotation method for single-cell RNA sequencing data that uses a given reference dataset of samples (single-cell or bulk) with known labels to label new cells from a test dataset based on similarity to the reference. Two mouse reference datasets (MouseRNAseqData and ImmGenData) and two human reference datasets (HumanPrimaryCellAtlasData and BlueprintEncodeData) from CellDex R package [2] are currently available.
@@ -228,7 +232,7 @@ This function enables users to visualize the association between two selected ge
228
232
229
233
Furthermore, the tool allows for the application of filters to the data, setting thresholds, and providing annotations to notify users if cells meet the established thresholds. The visualization can be improved by omitting extreme values. The tool also facilitates the creation of a heatmap to represent the density distribution of cells and exhibit the raw gene/protein expression values.
@@ -334,23 +340,29 @@ This function can be used to quantify the expression of marker sets in each indi
334
340
335
341
This function aids in identifying cell types based on average gene expression. It uses a feature of the Seurat software known as the AddModuleScore function. This function calculates the gene expression of specific sets and records them within a designated area of the Seurat object. The program then forecasts cell identities by comparing these recorded scores across various gene sets. You have the ability to adjust the identification process by designating cutoff points for a bimodal distribution in a parameter known as manual threshold. Any thresholds below this cutoff will not be considered during the identification process.
336
342
337
-
**Inputs:** The program takes several inputs. These include the single-cell RNA sequencing (scRNA-seq) object, a selection of samples for analysis, a table of gene markers for different cell types, and optionally, a hierarchical table for directing the order of cell classification.
338
-
**Data Preparation:** The program prepares the scRNA-seq object, assigns names to the samples, and selects data based on your specified samples.
339
-
**Module Score Calculation:** The program calculates module scores, a measure of gene set activity or expression [1], for each cell type based on your provided marker table.
343
+
**Inputs:** The program takes several inputs. These include the single-cell RNA sequencing (scRNA-seq) object, a selection of samples for analysis, a table of gene markers for different cell types, and optionally, a hierarchical table for directing the order of cell classification.
344
+
345
+
**Data Preparation:** The program prepares the scRNA-seq object, assigns names to the samples, and selects data based on your specified samples.
346
+
347
+
**Module Score Calculation:** The program calculates module scores, a measure of gene set activity or expression [1], for each cell type based on your provided marker table.
348
+
340
349
**Visualization:** Density distribution plots and colored reduction plots will be generated to help you visualize the module scores, their relationship with cell types, and sample identities.
341
-
**Thresholding:** Users can select threshold values to aid in the classification of cells. Cells with scores below your designated threshold will be labeled as "unknown".
350
+
351
+
**Thresholding:** Users can select threshold values to aid in the classification of cells. Cells with scores below your designated threshold will be labeled as "unknown".
352
+
342
353
Subclass Identification: If desired, the program can identify subclasses within cell types by further analyzing subpopulations.
343
-
**Updating Cell Type Labels:** The program appends a "Likely_CellType" column to the metadata of the scRNA-seq object, based on the results of the module score analysis.
354
+
**Updating Cell Type Labels:** The program appends a "Likely_CellType" column to the metadata of the scRNA-seq object, based on the results of the module score analysis.
355
+
344
356
**Output:** An updated scRNA-seq object with new cell type labels.
@@ -377,9 +389,10 @@ This function creates a dot plot visualization of cell types by metadata categor
377
389
It also generates a dot plot using Seurat's Dotplot function [3], providing a visual representation of the percentage of various cell types within each cluster. Typically, a cluster can be more distinctively named by the predominant cell type as seen in the dotplot. The plot's order can be customized for the clusters and cell types. If no specific order is provided, the function uses a default order.
378
390
An optional parameter allows the user to make the plot interactive. The function returns the updated Seurat object and the plot.
@@ -421,13 +434,12 @@ In addition to the plot, the function provides the tabular format of the dot plo
421
434
This function can be useful for exploratory data analysis and visualizing the differences in gene expression across different conditions or groups of cells.
0 commit comments