scTrends: automated classification and strength quantification of gene expression trends along pseudotime in single-cell RNA-seq.
2 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.
The 3 matches
- [1] § Implementation › Adaptive parameter selection › Feature extraction from fitted trajectories ↔ scTrends-Test.R, lines 60 to 129 · score 0.59 · scPS, autocorrelation, CV, ratio, variance, slopes · block
oscr:b:K4NFPHDHNJM76-Q· Report a mismatch - [2] § Results › Automatic, dataset-specific calibration of scTrends parameters ↔ scTrends-Test.R, lines 60 to 129 · score 0.55 · CV threshold, scPS, autocorrelation, slope, prominence, cells · block
oscr:b:K4NFPHDHNJM76-Q· Report a mismatch - [3] § Results › Pseudotime analysis and binning ↔ scTrends-Test.R, lines 1 to 58 · score 0.52 · CD4 TCM, UMAP, PCA, PBMC, positioned, cell · block
oscr:b:1XV79DT62W1NV-D· Report a mismatch
Paper
Loaded from Europe PMC by your browser; OSCR does not store it: 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.1073/pnas.2316256121 [code]
- Joint trajectory inference for single-cell genomics using deep learning with a mixture prior.Journal: Proceedings of the National Academy of Sciences of the United States of AmericaIn common: Seurat, genetics / omics, mouse, cellular / molecular, 5 references
- [2] doi:10.1186/s12864-025-11946-7 [code]
- GNODEVAE: a graph-based ODE-VAE enhances clustering for single-cell data.Journal: BMC genomicsIn common: Seurat, genetics / omics, 5 references
- [3] doi:10.1038/s41586-023-06824-9 [code]
- Single-cell analysis of chromatin accessibility in the adult mouse brain.Journal: NatureIn common: Seurat, genetics / omics, mouse, cellular / molecular, 4 references
- [4] doi:10.3389/fcell.2022.884748 [code]
- Single-cell and single-nuclei RNA sequencing as powerful tools to decipher cellular heterogeneity and dysregulation in neurodegenerative diseases.Journal: Frontiers in cell and developmental biologyIn common: genetics / omics, cellular / molecular, 4 references
- [5] doi:10.1073/pnas.2303647120 [code]
- Quantifying common and distinct information in single-cell multimodal data with Tilted Canonical Correlation Analysis.Journal: Proceedings of the National Academy of Sciences of the United States of AmericaIn common: Seurat, genetics / omics, cellular / molecular, 3 references
- [6] doi:10.1038/s41467-025-67779-1 [code]
- An in vivo and in vitro spatiotemporal profile of human midbrain development.Journal: Nature communicationsIn common: Seurat, genetics / omics, cellular / molecular, 3 references
- [7] doi:10.1038/s41467-023-43120-6 [code]
- Robust mapping of spatiotemporal trajectories and cell-cell interactions in healthy and diseased tissues.Journal: Nature communicationsIn common: Seurat, genetics / omics, cellular / molecular, 3 references
- [8] 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
- [9] doi:10.1186/s13059-023-02850-y [code]
- siVAE: interpretable deep generative models for single-cell transcriptomes.Journal: Genome biologyIn common: Seurat, genetics / omics, cellular / molecular, 2 references
- [10] doi:10.1016/j.celrep.2021.110140
- Single-cell transcriptomic analysis of zebrafish cranial neural crest reveals spatiotemporal regulation of lineage decisions during development.Journal: Cell reportsIn common: genetics / omics, 4 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:08f8d545862b50fa…
Add the badge to the code's README
If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.
Markdown
<!-- oscr-badge:start -->
[](https://openscicode.org/badge/doi/10.1186/s12864-026-12987-2)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1186/s12864-026-12987-2.svg
:target: https://openscicode.org/badge/doi/10.1186/s12864-026-12987-2
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1186/s12864-026-12987-2"><img src="https://openscicode.org/badge/doi/10.1186/s12864-026-12987-2.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.
Report a mismatch between the code and the paper · Report a code error (signed in)
Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.
Report a reproduction failure (signed in)
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
