The impact of package selection and versioning on single-cell RNA-seq analysis

Most single-cell RNA-seq analyses use Seurat or Scanpy across a multistep workflow. Package implementations and versions can silently change results and downstream interpretation. Seurat and Scanpy differed across multiple workflow stages by amounts comparable to using 5% of reads or 20% of cells, while version changes particularly altered differential-expression results.

Citations
53
Relations
292
Publication versions, figures, software and downstream uses

Citable versions

Figures and source captions

  1. Figure 1 — Seurat and Scanpy show considerable differences in scRNA-seq workflow results with default function arguments. (A) Filtering and HVG selection analysis UpSet plots consisting of overlap of sets of cells, genes, and HVGs. (B) PCA analysis through projection onto first 2 PCs, Scree plot comparison of proportion of variance explained, and sine of eigenvectors. Black lines = point mapping between conditions. (C) KNN/SNN analysis through SNN neighborhood Jaccard index and degree ratio (Seurat/Scanpy) per cell. (D) Clustering and UMAP analysis through UMAP plots of each condition, with alluvial plot showing cluster assignment mapping and degree of agreement. Numbers at the bottom of each alluvial plot show the total number of clusters in each group. (E) Differential expression analysis UpSet plot through overlap of all significant (p < 0.05) marker genes across all clusters. Original figure · Rich et al. (2024) · bioRxiv v2 · License
  2. Figure 2 — (A) Read and (B) cell downsampling retain most information compared to Seurat vs. Scanpy down to small fractions of dataset size. A minimum downsampled fraction of 0.01 was used as a lower bound. Orange = Seurat; blue = Scanpy. Original figure · Rich et al. (2024) · bioRxiv v2 · License
  3. Figure 3 — Package versioning has significant implications on DE analysis. (A-C) Seurat v5 vs. v4 differences in (A) significant marker and marker selection, (B) logFC, and (C) Adjusted p-value calculation. (D-F) Scanpy v1.9 vs. v1.4 differences in (D) significant marker and marker selection, (E) logFC, and (F) Adjusted p-value calculation. (G-I) Cell Ranger v7 vs. v6 differences in (G) significant marker and marker selection, (H) logFC, and (I) Adjusted p-value calculation. Original figure · Rich et al. (2024) · bioRxiv v2 · License
  4. Supplementary Figure 1 — scRNA-seq matrix generation and analysis overview. Red = sources of variability explored in this study; Blue = plots and metrics used to assess function similarity Original figure · Rich et al. (2024) · bioRxiv v2 · License
  5. Supplementary Figure 2 — Seurat vs. Scanpy, aligned function arguments (Seurat-like), sequential analysis. (A) Filtering and HVG selection analysis UpSet plots consisting of overlap of sets of cells, genes, and HVGs. (B) PCA analysis through projection onto first 2 PCs, Scree plot eigenvalue comparison, and sine of eigenvectors. Black lines = point mapping between conditions. (C) KNN/SNN analysis through SNN neighborhood Jaccard index and degree ratio (Seurat/Scanpy) per cell. (D) Clustering and UMAP analysis through UMAP plots of each condition, with alluvial plot showing cluster assignment mapping and degree of agreement. (E) Differential expression analysis UpSet plot through overlap of all significant (p < 0.05) marker genes across all clusters. Original figure · Rich et al. (2024) · bioRxiv v2 · License
  6. Supplementary Figure 3 — Seurat vs. Scanpy, default function arguments, controlled anal- ysis. (A) Filtering and HVG selection analysis UpSet plots consisting of overlap of sets of cells, genes, and HVGs. (B) PCA analysis through projection onto first 2 PCs, Scree plot eigenvalue comparison, and sine of eigenvectors. Black lines = point mapping between con- ditions. (C) KNN/SNN analysis through SNN neighborhood Jaccard index and degree ratio (Seurat/Scanpy) per cell. (D) Clustering and UMAP analysis through UMAP plots of each condition, with alluvial plot showing cluster assignment mapping and degree of agreement. (E) Differential expression analysis through overlap of all significant (p < 0.05) marker genes across all clusters. (F) Differential expression analysis with aligned clusters of overlap of all markers. (G) Differential expression analysis with aligned clusters of logFC similarity. (H) Differential expression analysis with aligned clusters of adjusted p-value similarity. Original figure · Rich et al. (2024) · bioRxiv v2 · License
  7. Supplementary Figure 4 — Seurat vs. Scanpy, aligned function arguments (Seurat-like), controlled analysis. (A) Filtering and HVG selection analysis UpSet plots consisting of overlap of sets of cells, genes, and HVGs. (B) PCA analysis through projection onto first 2 PCs, Scree plot eigenvalue comparison, and sine of eigenvectors. Black lines = point mapping between conditions. (C) KNN/SNN analysis through SNN neighborhood Jaccard index and degree ratio (Seurat/Scanpy) per cell. (D) Clustering and UMAP analysis through UMAP plots of each condition, with alluvial plot showing cluster assignment mapping and degree of agreement. (E) Differential expression analysis through overlap of all significant (p < 0.05) marker genes across all clusters. (F) Differential expression analysis with aligned clusters of overlap of all markers. (G) Differential expression analysis with aligned clusters of logFC similarity. (H) Differential expression analysis with aligned clusters of adjusted p-value similarity. Original figure · Rich et al. (2024) · bioRxiv v2 · License
  8. Supplementary Figure 5 — Seurat vs. Scanpy, aligned function arguments (Scanpy-like), controlled analysis. (A) Filtering and HVG selection analysis UpSet plots consisting of overlap of sets of cells, genes, and HVGs. (B) PCA analysis through projection onto first 2 PCs, Scree plot eigenvalue comparison, and sine of eigenvectors. Black lines = point mapping between conditions. (C) KNN/SNN analysis through SNN neighborhood Jaccard index and degree ratio (Seurat/Scanpy) per cell. (D) Clustering and UMAP analysis through UMAP plots of each condition, with alluvial plot showing cluster assignment mapping and degree of agreement. (E) Differential expression analysis through overlap of all significant (p < 0.05) marker genes across all clusters. (F) Differential expression analysis with aligned clusters of overlap of all markers. (G) Differential expression analysis with aligned clusters of logFC similarity. (H) Differential expression analysis with aligned clusters of adjusted p-value similarity. Original figure · Rich et al. (2024) · bioRxiv v2 · License
  9. Supplementary Figure 6 — Extended UMAP analysis for Seurat vs. Scanpy showing density plot of UMAP-derived KNN graph neighborhood Jaccard indices, alluvial plot of leiden clus- tering performed on UMAP-derived KNN graph, and UMAP projection of UMAP-derived KNN graph colored with leiden clustering results. (A) Default methods, sequential analysis. (B) Aligned methods, sequential analysis. (C) Default methods, controlled analysis. (D) Aligned methods, controlled analysis. Original figure · Rich et al. (2024) · bioRxiv v2 · License
  10. Supplementary Figure 7 — Read downsampling to 4% of original size vs. full dataset in Seurat, with a fraction that displays variation comparable to Seurat vs. Scanpy. (A) Filtering and HVG selection analysis UpSet plots consisting of overlap of sets of cells, genes, and HVGs. (B) PCA analysis through projection onto first 2 PCs, Scree plot eigenvalue comparison, and sine of eigenvectors. Black lines = point mapping between conditions. (C) KNN/SNN analysis through SNN neighborhood Jaccard index and degree ratio (full/downsampled) per cell. (D) Clustering and UMAP analysis through UMAP plots of each condition, with alluvial plot showing cluster assignment mapping and degree of agreement. (E) Differential expression analysis through overlap of all significant (p < 0.05) marker genes across all clusters. (F) Differential expression analysis with aligned clusters of overlap of all markers. (G) Differential expression analysis with aligned clusters of logFC similarity. (H) Differential expression analysis with aligned clusters of adjusted p-value similarity. Original figure · Rich et al. (2024) · bioRxiv v2 · License
  11. Supplementary Figure 8 — Read downsampling to 4% of original size vs. full dataset in Scanpy, with a fraction that displays variation comparable to Seurat vs. Scanpy. (A) Fil- tering and HVG selection analysis UpSet plots consisting of overlap of sets of cells, genes, and HVGs. (B) PCA analysis through projection onto first 2 PCs, Scree plot eigenvalue comparison, and sine of eigenvectors. Black lines = point mapping between conditions. (C) KNN/SNN analysis through SNN neighborhood Jaccard index and degree ratio (full/- downsampled) per cell. (D) Clustering and UMAP analysis through UMAP plots of each condition, with alluvial plot showing cluster assignment mapping and degree of agreement. (E) Differential expression analysis through overlap of all significant (p < 0.05) marker genes across all clusters. (F) Differential expression analysis with aligned clusters of overlap of all markers. (G) Differential expression analysis with aligned clusters of logFC similarity. (H) Differential expression analysis with aligned clusters of adjusted p-value similarity. Original figure · Rich et al. (2024) · bioRxiv v2 · License
  12. Supplementary Figure 9 — Cell downsampling to 16% of original size vs. full dataset in Seurat, with a fraction that displays variation comparable to Seurat vs. Scanpy. (A) Filtering and HVG selection analysis UpSet plots consisting of overlap of sets of cells, genes, and HVGs. (B) PCA analysis through projection onto first 2 PCs, Scree plot eigenvalue comparison, and sine of eigenvectors. Black lines = point mapping between conditions. (C) KNN/SNN analysis through SNN neighborhood Jaccard index and degree ratio (full/downsampled) per cell. (D) Clustering and UMAP analysis through UMAP plots of each condition, with alluvial plot showing cluster assignment mapping and degree of agreement. (E) Differential expression analysis UpSet plot through overlap of all significant (p < 0.05) marker genes across all clusters. Original figure · Rich et al. (2024) · bioRxiv v2 · License
  13. Supplementary Figure 10 — Cell downsampling to 16% of original size vs. full dataset in Scanpy, with a fraction that displays variation comparable to Seurat vs. Scanpy. (A) Fil- tering and HVG selection analysis UpSet plots consisting of overlap of sets of cells, genes, and HVGs. (B) PCA analysis through projection onto first 2 PCs, Scree plot eigenvalue comparison, and sine of eigenvectors. Black lines = point mapping between conditions. (C) KNN/SNN analysis through SNN neighborhood Jaccard index and degree ratio (full/- downsampled) per cell. (D) Clustering and UMAP analysis through UMAP plots of each condition, with alluvial plot showing cluster assignment mapping and degree of agreement. (E) Differential expression analysis UpSet plot through overlap of all significant (p < 0.05) marker genes across all clusters. Original figure · Rich et al. (2024) · bioRxiv v2 · License
  14. Supplementary Figure 11 — Metrics vs. fraction of reads downsampled. (A) Jaccard index of cell overlap. (B) Jaccard index of gene overlap. (C) Jaccard index of HVG overlap. (D) Mean of difference in corresponding PC loadings for PCs 1-3. (E) Median log(SNN degree ratio). (F) Adjusted Rand Index of clusters. (G) Median Jaccard index of UMAP-derived KNN graphs for each cell. (H) Jaccard index of sets of significant (p < 0.05) marker genes across all clusters. (I) Jaccard index of all markers. (J) CCC of logFC scatterploz. (K) Fraction of adjusted p-value that flipped across p=0.05 threshold. Orange = Seurat; Blue = Scanpy; lighter lines = replicates of downsampling across random seeds; dashed line = value recorded by Seurat vs. Scanpy with default settings. Original figure · Rich et al. (2024) · bioRxiv v2 · License
  15. Supplementary Figure 12 — Metrics vs. fraction of cells downsampled. (A) Jaccard index of cell overlap. (B) Jaccard index of gene overlap. (C) Jaccard index of HVG overlap. (D) Mean of difference in corresponding PC loadings for PCs 1-3. (E) Median log(SNN degree ratio). (F) Adjusted Rand Index of clusters. (G) Median Jaccard index of UMAP-derived KNN graphs for each cell. (H) Jaccard index of sets of significant (p < 0.05) marker genes across all clusters. (I) Jaccard index of all markers. (J) CCC of logFC scatterplot. (K) Fraction of adjusted p-value that flipped across p=0.05 threshold. Orange = Seurat; Blue = Scanpy; lighter lines = replicates of downsampling across random seeds; dashed line = value recorded by Seurat vs. Scanpy with default settings. Original figure · Rich et al. (2024) · bioRxiv v2 · License
  16. Supplementary Figure 13 — Cell Ranger version control (v7 vs. v6). (A) Filtering and HVG selection analysis UpSet plots consisting of overlap of sets of cells, genes, and HVGs. (B) PCA analysis through projection onto first 2 PCs, Scree plot eigenvalue comparison, and sine of eigenvectors. (C) KNN/SNN analysis through SNN neighborhood Jaccard index and degree ratio (v7/v6) per cell. (D) Clustering and UMAP analysis through UMAP plots of each condition, with alluvial plot showing cluster assignment mapping and degree of agreement. (E) Differential expression analysis through overlap of all significant (p < 0.05) marker genes across all clusters. Original figure · Rich et al. (2024) · bioRxiv v2 · License
  17. Supplementary Figure 14 — UMI counts pre-filtering and number of features under different conditions. (A) Cell Ranger v7 vs. v6. (B) Full size dataset vs. downsampled reads to 4%. Original figure · Rich et al. (2024) · bioRxiv v2 · License
  18. Supplementary Figure 15 — Variability introduced by differences in random seeds for func- tions involving randomness. (A) Seurat SNN graph generation (Annoy), with different seeds for KNN graph generation. (B) Seurat clustering (Louvain), with different seeds for Lou- vain; and UMAP-projection (uwot), with different seeds for UMAP projection. (C) Seurat KNN graph generation from UMAP space, with different seeds for UMAP projection. (D) Seurat clustering (Leiden) and UMAP projection from UMAP space, with different seeds for UMAP projection. (E) Scanpy SNN graph generation (NNDescent), with different seeds for KNN graph generation. (F) Scanpy clustering (Leiden), with different seeds for Leiden; and UMAP-projection (UMAP-learn), with different seeds for UMAP projection. (G) Scanpy KNN graph generation from UMAP space, with different seeds for UMAP projection. (H) Scanpy clustering (Leiden) and UMAP projection from UMAP space, with different seeds for UMAP projection. Original figure · Rich et al. (2024) · bioRxiv v2 · License
  19. Supplementary Figure 16 — Comparison of KNN and SNN graphs. (A) KNN graph (k=3) constructed with the approximate Annoy algorithm (directedness not shown). Black = incorrectly added edges; Green = incorrectly omitted edges. (B) SNN graph with Seurat’s pruning method. An example hub node is marked with *. An example peripheral node is marked with **. Note: the SNN graph with Scanpy’s method is simply the undirected KNN graph. Original figure · Rich et al. (2024) · bioRxiv v2 · License
  20. Supplementary Figure 17 — Schematic of protocol describing generation and downstream use of KNN and SNN graphs. Top is for Seurat, bottom is for Scanpy. KNN(i) refers to the full set of k-nearest neighbors for cell i. Bold = function/method name; Italics = outside package utilized. Original figure · Rich et al. (2024) · bioRxiv v2 · License

Documented downstream uses

Explore the complete record: JSON · Markdown.

Relations