Korean, Edit

Comparison of Seurat and scanpy

Recommended post: 【Bioinformatics】 Bioinformatics Analysis Table of Contents


1. General Seurat data input

2. General scanpy data input


a. Seurat pipeline

b. Scanpy pipeline



1. General Seurat data input

⑴ Overview: Seurat is R-based (recently, R has been becoming less prominent compared to Python)

Case 1. When there is an .h5 file


library(dplyr)
library(Seurat)
pbmc.data <- Read10X(data.dir = "filtered_gene_bc_matrices/hg19/")


Case 2. When there are barcodes.tsv, genes.tsv, and matrix.mtx files


library(dplyr)
library(Seurat)
pbmc.data <- Read10X(data.dir = "filtered_gene_bc_matrices/hg19/")


① If a problem occurs because there is features.tsv instead of genes.tsv, rename that file to genes.tsv

Case 3. When the input file is not an .mtx file but an .rds file


library(dplyr)
library(Seurat)
data <- readRDS("C:/Users/sun/Desktop/GSM4557327_555_1_cell.counts.matrices.rds", refhook = NULL)



2. General scanpy data input

⑴ Overview: scanpy is Python-based. Some functions, such as read_visium, tend to be outsourced to packages such as squidpy

⑵ Main functions

scanpy.read

scanpy.read_10x_h5

scanpy.read_10x_mtx

scanpy.read_visium

scanpy.read_h5ad

scanpy.read_csv

scanpy.read_excel

scanpy.read_hdf

scanpy.read_loom

scanpy.read_mtx

scanpy.read_text

scanpy.read_umi_tools

⑶ Inputting open scRNA-seq datasets

⑷ Inputting open ST datasets



Input: 2023.11.10 17:23

Modified: 2026.05.08 00:02

results matching ""

    No results matching ""