scTrends: automated classification and strength quantification of gene expression trends along pseudotime in single-cell RNA-seq.
The 3 matches
- [1] § Implementation › Adaptive parameter selection › Feature extraction from fitted trajectories ↔ scTrends-Test.R, lines 60–129 · score 0.59 · scPS, autocorrelation, CV, ratio, variance, slopes
- [2] § Results › Automatic, dataset-specific calibration of scTrends parameters ↔ scTrends-Test.R, lines 60–129 · score 0.55 · CV threshold, scPS, autocorrelation, slope, prominence, cells
- [3] § Results › Pseudotime analysis and binning ↔ scTrends-Test.R, lines 1–58 · score 0.52 · CD4 TCM, UMAP, PCA, PBMC, positioned, cell
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
R · 237 lines · 7 KB · CC-BY-4.0 · 3 matches
- library(SeuratData)
- library(Seurat)
- library(scTrends)
- AvailableData()
- data("pbmcMultiome")
- data("pbmc3k", package = "SeuratData")
- pbmc3k=UpdateSeuratObject(pbmc3k)
- table(pbmc3k$seurat_annotations)
- SeuratData::InstallData("pbmcMultiome")
- PBMC=pbmc.rna
- table(PBMC$seurat_annotations)
- DimPlot(PBMC)
- PBMC <- FindVariableFeatures(PBMC,selection.method = "vst", nfeatures = 3000)
- PBMC <- ScaleData(PBMC,verbose = T)
- PBMC <- RunPCA(PBMC,npcs = 50, verbose = T)
- PBMC=RunUMAP(PBMC,dim = 1:50)
- Idents(PBMC)="seurat_annotations"
- sceT=subset(PBMC, idents=c("CD4 Naive","CD4 TCM"))
- sceT <- ScaleData(sceT,verbose = T)
- sceT <- RunPCA(sceT,npcs = 50, verbose = T)
- sceT=RunUMAP(sceT,dim = 1:50)
- DimPlot(sceT)
- print(sceT)
- sceT=PBMC
- #Figure 2A
- CellDimPlot(
- sceT,
- group.by = "seurat_annotations",
- reduction = "UMAP",
- palcolor = c("#FB9A99","#B2DF8A"),
- pt.size = 2,
- label = F,
- label.size= 5,
- theme_use = "theme_blank",
- legend.position = "none"
- )
- library(CytoTRACE2)
- cytotrace2 <- cytotrace2(sceT,
- is_seurat = TRUE,
- slot_type = "counts",
- species = "human",
- seed =5201314)
- df=[email hidden]
- df$cellID=row.names(df)
- UMAP=cytotrace2@reductions[["umap"]]@cell.embeddings
- UMAP=as.data.frame(UMAP)
- UMAP$cellID=row.names(UMAP)
- head(df)
- # 替换df$cellID中的"."为"-"
- df$cellID <- gsub("\\.", "-", df$cellID)
- df$UMAP_1 <- UMAP[df$cellID, "umap_1"]
- df$UMAP_2 <- UMAP[df$cellID, "umap_2"]
- head(df)
- #Figure 2B
- plotthis::FeatureDimPlot(df, dims = 11:12,features = c("CytoTRACE2_Relative"), palcolor = (RColorBrewer::brewer.pal(11, "Spectral")),
- pt_size = 2,theme = "theme_blank",hex = TRUE,hex_bins = 30,theme_args = list(
- legend.text = element_text(size = 20), # 设置图注文本字体大小
- legend.title = element_text(size = 14) # 设置图注标题字体大小
- ))
- result=scBin(
- cytotrace2,
- pseudotime_col="CytoTRACE2_Relative",
- assay = "RNA",
- slot = "data",
- n_bins = 20,
- overlap_ratio = 0,
- pseudotime_order ="decreasing",
- x_range = c(0, 1),
- filter_genes = TRUE,
- max_zero_bins_pct = 0,
- min_expression = 0,
- min_cells_per_bin = 20,
- verbose = TRUE
- )
- bin_means <- result$bin_means
- x <- result$x
- head(bin_means)
- str(bin_means)
- mat20 <- bin_means[1:20,]
- #Figure 2c
- pheatmap(
- mat20,
- scale = "row",
- show_rownames = TRUE,
- show_colnames = TRUE,
- cluster_rows = FALSE,
- cluster_cols = FALSE,
- border_color = "white",
- fontsize = 12,
- fontsize_row = 20,
- fontsize_col = 20,
- color = colorRampPalette(
- rev(brewer.pal(n = 11, name = "Spectral"))
- )(100)
- )
- ps <- scPS(result, test_genes =9702, sample_method = "none")
- Tcell=scTrends(result,
- min_cells = 4,
- peak_position_margin = 0.15,
- max_sign_changes_mono = 1,
- gam_k = 8,
- stable_cv_threshold = 0.168,
- stable_range_threshold = 0.100,
- stable_autocorr_threshold = 0.750,
- min_peak_prominence = 0.200,
- min_slope_ratio = 0.100,
- total_change_up = 0.991,
- total_change_down = -0.793,
- monotone_consistency = 0.750,
- min_sign_changes_complex = 3,
- complex_variance_threshold = 0.350,
- compute_pvalue = T,
- n_perm = 1000,
- adjust_method = "BH",
- alpha = 0.05,
- n_cores = 16,
- use_parallel = TRUE,
- return_details = FALSE,
- verbose = TRUE)
- data=Tcell$results
- write.xlsx(data,"E:/足细胞应激/函数/data.xlsx")
- #Figure 3A-F
- plot_trends(
- trend_result = data,
- bin_means = bin_means,
- x = x,
- trend_type = "Complex",
- max_genes = 30,
- sig_metric = "p_value",
- sig_cutoff = 1,
- show_individual = TRUE,
- show_mean = TRUE,
- show_se = TRUE,
- individual_color = "gray80",
- individual_alpha = 0.3,
- individual_size = 0.5,
- mean_color ="#999999",
- mean_size = 1.5,
- se_fill = "#F5D2A8",
- se_alpha = 0.3,
- se_scale = 1.96
- )+
- labs(
- title = "Down-Up (Top 30)",
- x = "Pseudotime (0 = Early, 1 = Late)",
- y = "Expression Level"
- ) +
- theme_minimal() +
- theme(
- plot.title = element_text(face = "bold", size = 24, hjust = 0.5),
- axis.title = element_blank(),
- axis.text = element_text(size = 20),
- panel.grid.major = element_line(color = "gray90", linewidth = 0.3),
- panel.grid.minor = element_blank(),
- panel.border = element_rect(color = "black", fill = NA, linewidth = 1),
- panel.background = element_rect(fill = "white", color = NA))+coord_cartesian(
- xlim = c(0, 1),
- ylim = c(0, 0.5),
- expand = FALSE
- )
- colors <- c(
- "#FB9A99", "#377EB8", "#4DAF4A", "#F781BF", "#BC9DCC", "#A65628", "#54B0E4", "#F5D2A8",
- "#222F75","#B2DF8A", "#E3BE00", "#E7298A", "#E41A1C", "#D2EBC8", "#00CDD1",
- "#5E4FA2", "#8CA77B", "#1B9E77","#8DD3C7", "#7DBFC7", "#B3DE69", "#999999", "#FCED82",
- "#F5CFE4", "#F5D2A8", "#B383B9", "#EE934E", "#BBDD78"
- )
- #Figure 3G
- my_genes=c("LEF1","TCF7","CD27","CD28")
- plot_genes(bin_means, x, genes = my_genes, color = colors, size = 1.2, alpha = 0.5) +
- labs(
- x = "Pseudotime (0 = Early, 1 = Late)",
- y = "Expression Level"
- ) +
- theme_minimal() +
- theme(
- plot.title = element_text(face = "bold", size = 24, hjust = 0.5),
- axis.title = element_text(size = 24),
- axis.text = element_text(size = 24),
- legend.text = element_text(size = 24),
- legend.title = element_text(size = 24),
- panel.grid.major = element_line(color = "gray90", linewidth = 0.3),
- panel.grid.minor = element_blank(),
- legend.position = "right",
- panel.border = element_rect(color = "black", fill = NA, linewidth = 1),
- panel.background = element_rect(fill = "white", color = NA)
- ) +
- coord_cartesian(
- xlim = c(0, 1),
- ylim = c(0, 5),
- expand = FALSE
- ) +
- guides(color = guide_legend(override.aes = list(size = 5)))
- genes_remove <- c("SCAMP2", "FAM13A", "RAD51-AS1", "MRPL38", "IDH3B")
- top_genes <- top_genes %>%
- filter(!gene %in% genes_remove)
- top_genes <- data %>%
- group_by(trend) %>%
- arrange(p_value) %>%
- slice_head(n = 5) %>%
- ungroup()
- genes_use <- top_genes$gene
- bin_sub <- bin_means[genes_use, ]
- #Figure 3H
- pheatmap(
- bin_sub,
- scale = "row",
- show_rownames = TRUE,
- show_colnames = TRUE,
- cluster_rows = FALSE,
- cluster_cols = FALSE,
- border_color = "white",
- fontsize = 12,
- fontsize_row = 24,
- fontsize_col = 20,
- color = colorRampPalette(
- rev(brewer.pal(n = 11, name = "Spectral"))
- )(100)
- )
- saveRDS(sceT,"E:/足细胞应激/函数/投稿/PBMC.rds")
scTrends-Test.R, under CC-BY-4.0 · at the source
Overview
- Department of Nephrology, Sir Run Run Shaw Hospital, Zhejiang University School of Medicine,Hangzhou, 310000 China
- Core Laboratory, Sir Run Run Shaw Hospital, Zhejiang University School of Medicine,Hangzhou, 310000 China
Abstract
The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.
Repository
Its files are read in the Code ↔ Paper reader above, with 3 matches between paragraphs and lines of code.
figshare 32325834
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
- 28 September 2026: the link answers (HTTP 200)
1 file
- scTrends-Test.R, R, 237 lines, 3 matches
The paper's code and data availability statement is in the Data section.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 1 script, each with its path and the digest of its content;
- 3 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
Code and data availability statement
The paper has a code and data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to the authors' code: figshare 32325834
Read it in the paper: doi.org/10.1186/s12864-026-12987-2.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 28 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 4 authors, 5 keywords, 10 MeSH terms, 2 funders, 41 references.
Cite
This paper
Qing, J., Hu, J., Wang, X., & Wu, J. (2026). scTrends: automated classification and strength quantification of gene expression trends along pseudotime in single-cell RNA-seq. BMC genomics, 27(1), 649. https://
BibTeX
@article{qing2026sctrend
author = {Qing, Jianbo and Hu, Jiaying and Wang, Xiao and Wu, Junnan},
title = {{scTrends: automated classification and strength quantification of gene expression trends along pseudotime in single-cell RNA-seq}},
journal = {BMC genomics},
year = {2026},
month = may,
volume = {27},
number = {1},
pages = {649},
publisher = {BMC},
issn = {1471-2164},
doi = {10.1186/
url = {https://
pmid = {42218405},
pmcid = {PMC13435386}
}
RIS
TY - JOUR
AU - Qing, Jianbo
AU - Hu, Jiaying
AU - Wang, Xiao
AU - Wu, Junnan
TI - scTrends: automated classification and strength quantification of gene expression trends along pseudotime in single-cell RNA-seq
T2 - BMC genomics
J2 - BMC Genomics
PY - 2026
DA - 2026/
VL - 27
IS - 1
SP - 649
SN - 1471-2164
PB - BMC
DO - 10.1186/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1186/
"type": "article-journal",
"title": "scTrends: automated classification and strength quantification of gene expression trends along pseudotime in single-cell RNA-seq",
"container-title": "BMC genomics",
"author": [
{
"family": "Qing",
"given": "Jianbo"
},
{
"family": "Hu",
"given": "Jiaying"
},
{
"family": "Wang",
"given": "Xiao"
},
{
"family": "Wu",
"given": "Junnan"
}
],
"container-title-short":
"volume": "27",
"issue": "1",
"page": "649",
"DOI": "10.1186/
"PMID": "42218405",
"PMCID": "PMC13435386",
"ISSN": "1471-2164",
"publisher": "BMC",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
30
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1038/s41467-026-75722-1 [code]
- Single-nucleus analysis of the adult human olfactory epithelium uncovers shared neurogenesis programs with the brain.Journal: Nature communicationsIn common: Seurat, genetics / omics, 3 references
- [2] doi:10.1093/bioinformatics/btag652 [code]
- mmVelo: a deep generative model for estimating cell state-dependent dynamics across multiple modalities.Journal: Bioinformatics (Oxford, England)In common: genetics / omics, mouse, 3 references
- [3] doi:10.1038/s41588-026-02737-1 [code]
- Human and mouse adrenal glands are characterized by species-specific steroidogenic states and tissue turnover.Journal: Nature geneticsIn common: Seurat, genetics / omics, mouse, cellular / molecular, 2 references
- [4] doi:10.1038/s41467-026-70523-y [code]
- mist: a hierarchical Bayesian framework for detecting differential DNA methylation dynamics in single-cell data.Journal: Nature communicationsIn common: Seurat, genetics / omics, mouse, 2 references
- [5] doi:10.1038/s41380-026-03585-5 [code]
- Multiomics analysis identifies VPA-induced changes in neural progenitor cells, ventricular-like regions, and cellular microenvironment in dorsal forebrain organoids.Journal: Molecular psychiatryIn common: Seurat, genetics / omics, mouse, 2 references
- [6] doi:10.1016/j.xcrm.2026.102766 [code]
- A longitudinal single-cell and spatial multiomic atlas of pediatric high-grade glioma.Journal: Cell reports. MedicineIn common: Seurat, genetics / omics, cellular / molecular, 2 references
- [7] doi:10.1038/s42003-026-09915-1
- Single cell and spatial sequencing analysis of cancer associated fibroblasts in the brain metastasis tumor microenvironment.Journal: Communications biologyIn common: genetics / omics, cellular / molecular, 3 references
- [8] doi:10.1038/s41586-026-10797-w [code]
- A global molecular code for birth order and neuronal identity in Drosophila.Journal: NatureIn common: Seurat, genetics / omics, cellular / molecular, 2 references
- [9] doi:10.1038/s41586-026-10629-x [code]
- Whole-genome duplication shaped cell-type evolution in the vertebrate brain.Journal: NatureIn common: Seurat, genetics / omics, mouse, cellular / molecular, 1 reference
- [10] doi:10.1038/s41593-026-02367-0 [code]
- A reproducible three-dimensional model of human brain tissue to investigate physiological and disease-associated microglia phenotypes.Journal: Nature neuroscienceIn common: Seurat, cellular / molecular, 2 references
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 1 script, and 3 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:c554c9f757544f6e…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[.
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
