lasastrips.blogg.se

Recreating lodash tutorial
Recreating lodash tutorial









recreating lodash tutorial

To cluster the cells, we next apply modularity optimization techniques such as the Louvain algorithm (default) or SLM, to iteratively group cells together, with the goal of optimizing the standard modularity function. This step is performed using the FindNeighbors() function, and takes as input the previously defined dimensionality of the dataset (first 10 PCs).

recreating lodash tutorial

Briefly, these methods embed cells in a graph structure - for example a K-nearest neighbor (KNN) graph, with edges drawn between cells with similar feature expression patterns, and then attempt to partition this graph into highly interconnected ‘quasi-cliques’ or ‘communities’.Īs in PhenoGraph, we first construct a KNN graph based on the euclidean distance in PCA space, and refine the edge weights between any two cells based on the shared overlap in their local neighborhoods (Jaccard similarity). Our approach was heavily inspired by recent manuscripts which applied graph-based clustering approaches to scRNA-seq data and CyTOF data. However, our approach to partitioning the cellular distance matrix into clusters has dramatically improved. Importantly, the distance metric which drives the clustering analysis (based on previously identified PCs) remains the same. Seurat v3 applies a graph-based clustering approach, building upon initial strategies in ( Macosko et al). For example, performing downstream analyses with only 5 PCs does significantly and adversely affect results. We advise users to err on the higher side when choosing this parameter.As you will observe, the results often do not differ dramatically. We encourage users to repeat downstream analyses with a different number of PCs (10, 15, or even 50!).However, these groups are so rare, they are difficult to distinguish from background noise for a dataset of this size without prior knowledge. Dendritic cell and NK aficionados may recognize that genes strongly associated with PCs 12 and 13 define rare immune subsets (i.e. MZB1 is a marker for plasmacytoid DCs).We chose 10 here, but encourage users to consider the following:

Recreating lodash tutorial Pc#

In this example, all three approaches yielded similar results, but we might have been justified in choosing anything between PC 7-12 as a cutoff.

recreating lodash tutorial recreating lodash tutorial

The third is a heuristic that is commonly used, and can be calculated instantly. The second implements a statistical test based on a random null model, but is time-consuming for large datasets, and may not return a clear PC cutoff. The first is more supervised, exploring PCs to determine relevant sources of heterogeneity, and could be used in conjunction with GSEA for example. We therefore suggest these three approaches to consider. Identifying the true dimensionality of a dataset – can be challenging/uncertain for the user.

  • Interoperability between single-cell object formats.
  • Demultiplexing with hashtag oligos (HTOs).
  • Integrating scRNA-seq and scATAC-seq data.
  • Fast integration using reciprocal PCA (RPCA).
  • Analysis, visualization, and integration of spatial datasets with Seurat.










  • Recreating lodash tutorial