OSCR

Single-cell trajectory inference for detecting transient events in biological processes.

Code ↔ Paper

10 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 10 matches
  1. [1] § Methods › Cell cycle ↔ cellcycle.ipynb, lines 112–186 · score 0.90 · n_neighbors, n_pcs, score_genes_cell_cycle, Scanpy, ARPACK, PCA
  2. [2] § Methods › Comparison against other methods › tradeSeq ↔ method_evaluations/method_eval.py, lines 138–188 · score 0.83 · associationTest, cellWeights, evaluateK, tradeSeq, eigen, Signal genes
  3. [3] § Results › Induced neuron dataset ↔ sctransient_ineuron.ipynb, lines 775–886 · score 0.72 · cumulative recovery, TES ranked, pathway leading, diagonal, GSEA, fraction
  4. [4] § Results › Cell cycle dataset ↔ cellcycle.ipynb, lines 724–798 · score 0.69 · Leiden clustering, cell cycle phase, Scanpy, 1–3, G2, G1
  5. [5] § Methods › Synthetic data parameters ↔ method_evaluations/method_execution.py, lines 27–116 · score 0.61 · noise genes, Signal genes, Autocorrelation, uniform, amplitude, density
  6. [6] § Methods › Synthetic data parameters ↔ method_evaluations/params.py, lines 10–28 · score 0.61 · noise genes, Signal genes, Autocorrelation, uniform, amplitude, density
  7. [7] § Methods › Transient-event score ↔ cellcycle.ipynb, lines 112–186 · score 0.60 · wavelet transform, scoring genes, pseudotime signal, modified, Gene expression, transient
  8. [8] § Results › Comparison with other methods ↔ method_evaluations/method_exectime_plot.ipynb, lines 93–111 · score 0.53 · GPfates, tradeSeq, scTransient, execution, log
  9. [9] § Methods › Comparison against other methods ↔ method_evaluations/method_execution.py, lines 27–116 · score 0.51 · signal genes, amplitudes, GPfates, widths, noise, Gaussian
  10. [10] § Results › Cell cycle dataset ↔ cellcycle.ipynb, lines 724–798 · score 0.50 · Cell cycle phase, UMAP, Leiden, G2, G1, Clusters

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

Jupyter notebook · 878 lines · 30 KB · no license · 4 matches

  1. # %% [markdown]
  2. # # Cell cycle dataset
  3. #
  4. # This notebook is part of the paper titled, "Single-Cell Trajectory Inference for Detecting Transient Events in Biological Processes" by Hutton and Meyer. The data is from the 2025 Bubis et al. paper titled, "[Challenging the Astral mass analyzer to quantify up to 5,300 proteins per single cell at unseen accuracy to uncover cellular heterogeneity](https://doi.org/10.1038/s41592-024-02559-1)".
  5. # %%
  6. import numpy as np
  7. import pandas as pd
  8. from importlib import reload
  9. from matplotlib import pyplot as plt
  10. import scanpy as sc
  11. import anndata as ad
  12. import pypsupertime
  13. from pypsupertime import Psupertime
  14. from typing import Union
  15. from anndata import AnnData
  16. import os
  17. import pickle as pkl
  18. from datetime import datetime
  19. date_str = datetime.now().strftime("%Y_%m_%d")
  20. r_dir = f"{date_str}_cellcycle_unsup"
  21. if not os.path.exists(r_dir):
  22. os.mkdir(r_dir)
  23. # %%
  24. import scTransient
  25. from scTransient.windowing import Window
  26. from scTransient.wavelets import get_scored_wavelet_across_sigs, WaveletTransform
  27. from scTransient.metrics import modified_z_score
  28. # %%
  29. def load_astral(filepath: str = "astral-scp-report.pg_matrix.tsv"):
  30. df = pd.read_csv(filepath, index_col=2, sep='\t')
  31. df = df.iloc[:, 3:] # Drop the first three columns
  32. # Check the structure of the AnnData object
  33. df.fillna(0, inplace=True)
  34. return sc.AnnData(df.T)
  35. # %%
  36. def _normalize_to_endtime(x):
  37. return (x - np.min(x)) / (np.max(x) - np.min(x))
  38. def window_trajectory(adata: AnnData,
  39. trajectory: list,
  40. normalize_to_endtime: bool = True,
  41. window: Union[str] = "gaussian",
  42. window_params: dict = None,
  43. pseudotime_col: str = "dpt_pseudotime",
  44. node_col: str = "leiden",
  45. exclude_minimum: bool = False,
  46. exclude_ends: int = None):
  47. # initialize window
  48. window = _init_window(window, window_params)
  49. # Get pseudotime positions; limit to nodes in trajectory
  50. if trajectory is not None:
  51. retain_idx = adata.obs[node_col].isin(trajectory)
  52. else:
  53. retain_idx = np.ones(adata.shape[0], dtype=bool)
  54. pseudotime = adata.obs.loc[retain_idx, pseudotime_col]
  55. if normalize_to_endtime:
  56. pseudotime = _normalize_to_endtime(pseudotime)
  57. # print(sum(retain_idx))
  58. if exclude_ends is None:
  59. return window.apply(positions=pseudotime,
  60. values=adata.X[retain_idx, :],
  61. exclude_minimum=exclude_minimum)
  62. pseudotime_signals = window.apply(positions=pseudotime,
  63. values=adata.X[retain_idx, :],
  64. exclude_minimum=exclude_minimum)
  65. return pseudotime_signals[exclude_ends:-exclude_ends, :]
  66. def _init_window(window: Union[str, Window],
  67. window_params: dict = None):
  68. if issubclass(window.__class__, str):
  69. if window.lower() == "gaussian":
  70. if window_params is None:
  71. window_params = {"n_windows": 25, "sigma": 0.2}
  72. window = GaussianWindow(**window_params)
  73. elif window.lower() == "rect":
  74. if window_params is None:
  75. window_params = {"n_windows": 25, "width": 0.1}
  76. window = RectWindow(**window_params)
  77. else:
  78. raise ValueError(f"Unrecognized window type: {window}")
  79. return window
  80. def std_from_median(coefs):
  81. """Compute the number of standard deviations from the median of the wavelet coefficients."""
  82. s = np.std(coefs)
  83. if s > 0:
  84. return (coefs - np.median(coefs)) / s
  85. else:
  86. return None
  87. def modified_z_score_with_scaletime(coefs, get_st: bool = False):
  88. zmod = std_from_median(coefs)
  89. if zmod is None:
  90. if not get_st:
  91. return 0
  92. else:
  93. return 0, [None, None]
  94. else:
  95. scale, time = np.unravel_index(np.argmax(zmod), zmod.shape)
  96. if not get_st:
  97. return np.abs(coefs[scale,time] * zmod[scale,time])
  98. else:
  99. return np.abs(coefs[scale,time] * zmod[scale,time]), [scale, time]
  100. # %%
  101. def pipeline_astral_cellcycle(data_loader,
  102. window=None,
  103. window_params: dict = None,
  104. trajectory: list = None,
  105. scoring_threshold: float = 1,
  106. exclude_pt_ends: tuple = (0.05, 0.95),
  107. repeat: bool = False,
  108. save_name: str = None,
  109. coverage_threshold: float = 0.0,
  110. ) -> sc.AnnData:
  111. if save_name is not None:
  112. if os.path.exists(save_name) and not repeat:
  113. adata = sc.read_h5ad(save_name)
  114. else:
  115. adata = data_loader()
  116. print("Preprocessing...")
  117. sc.pp.filter_cells(adata, min_genes=2000, inplace=True)
  118. sc.pp.filter_genes(adata, min_cells=3, inplace=True)
  119. sc.pp.normalize_total(adata, inplace=True, target_sum=1e4)
  120. sc.pp.log1p(adata)
  121. sc.pp.regress_out(adata, ['n_genes'])
  122. sc.pp.scale(adata, max_value=10)
  123. sc.pp.pca(adata, svd_solver="arpack")
  124. sc.pp.neighbors(adata, n_neighbors=10, n_pcs=40)
  125. sc.tl.leiden(adata, resolution=1)
  126. print("Computing pseudotime...")
  127. f = open("regev_lab_cell_cycle_genes.txt", "r")
  128. cell_cycle_genes = [x.strip() for x in f]
  129. f.close()
  130. s_genes = cell_cycle_genes[:43]
  131. g2m_genes = cell_cycle_genes[43:]
  132. cell_cycle_genes = [x for x in cell_cycle_genes if x in adata.var_names]
  133. sc.tl.score_genes_cell_cycle(adata, s_genes=s_genes, g2m_genes=g2m_genes)
  134. phase_order = {'G1': 1, 'S': 2, 'G2M': 3}
  135. # phase_order = {"G1": 1, "S": 3, "G2M": 2}
  136. adata.obs['phase_ordinal'] = adata.obs['phase'].map(phase_order)
  137. psuper = Psupertime()
  138. # Fit the model
  139. psuper.run(adata, 'phase_ordinal')
  140. # psuper.plot_labels_over_psupertime(adata, "phase_ordinal")
  141. psuper.predict_psuper(adata)
  142. if save_name is not None:
  143. adata.write_h5ad(save_name)
  144. print("Computing gene expression along pseudotime...")
  145. # Do windowing
  146. if window is None:
  147. if window_params is None:
  148. window_params = {"n_windows": 30, "sigma": 0.03, "max_distance": 0.1}
  149. window = scTransient.windowing.ConfinedGaussianWindow(**window_params)
  150. n_windows = window.n_windows
  151. qmin = adata.obs['psupertime'].quantile(exclude_pt_ends[0])
  152. qmax = adata.obs['psupertime'].quantile(exclude_pt_ends[1])
  153. adata = adata[(adata.obs["psupertime"] > qmin) & (adata.obs["psupertime"] < qmax), :].copy()
  154. if trajectory is None: # take all
  155. node_col = "phase"
  156. path = list(np.unique(adata.obs[node_col]))
  157. pseudotime_signals_array = window_trajectory(adata,
  158. trajectory=path,
  159. node_col=node_col,
  160. window=window,
  161. pseudotime_col='psupertime',
  162. exclude_minimum=False)
  163. pseudotime_signals_dict = {}
  164. for idx, g in enumerate(adata.var_names):
  165. pseudotime_signals_dict[g] = pseudotime_signals_array[:, idx]
  166. wt = WaveletTransform(scales=np.arange(1, 5), wavelet="mexh")
  167. waves, scores = get_scored_wavelet_across_sigs(pseudotime_signals_dict,
  168. wt,
  169. modified_z_score_with_scaletime,
  170. score_threshold=scoring_threshold,
  171. normalize_signal=False)
  172. return waves, scores, pseudotime_signals_dict, adata, psuper
  173. # %%
  174. # %%
  175. thresh = 4
  176. window_params = {"n_windows": 30, "sigma": 0.03, "max_distance": 0.11}
  177. wr, scoresr, psdr, adata, psuper = pipeline_astral_cellcycle(load_astral,
  178. window_params=window_params,
  179. scoring_threshold=thresh,
  180. coverage_threshold=0.0,
  181. save_name=None,
  182. exclude_pt_ends=(0.1,0.9),
  183. repeat=True)
  184. # %%
  185. gene_df = adata.to_df()
  186. # %%
  187. wt = scTransient.wavelets.WaveletTransform(scales=np.arange(1, 5), wavelet="mexh")
  188. # %%
  189. tes, p, tes_all = scTransient.utils.permutation_dist(gene_df,
  190. adata.obs["psupertime"],
  191. wavelet_transform=wt,
  192. n_permutations=2)
  193. # %%
  194. # %%
  195. tes_np = np.array(tes_all)
  196. tes_vals = np.where(tes > 10)[0]
  197. tes_sig = np.where(p < 0.05)[0]
  198. # %%
  199. # %%
  200. olap = set(tes_vals).intersection(tes_sig)
  201. # %%
  202. # %%
  203. g = adata.var_names
  204. for i in tes_sig:
  205. print(g[i])
  206. # %%
  207. # %%
  208. # f = open("tes_all.pkl", "wb")
  209. # pkl.dump(tes_all, f)
  210. # f.close()
  211. # %%
  212. p_vals = np.zeros(adata.shape[1])
  213. for i in range(adata.shape[1]):
  214. p_vals[i] = np.sum(tes[i] < tes_np[:,i]) / tes_np.shape[0]
  215. # %%
  216. p_vals
  217. # %%
  218. # %%
  219. v, bins, _ = plt.hist(p_vals, bins=100, density=True);
  220. plt.xlabel("p-value")
  221. plt.ylabel("Prob dens.")
  222. plt.title("Distribution of p-values across gene TES")
  223. # %%
  224. sig = np.where(p_vals < 0.01)[0]
  225. # %%
  226. tes_max = tes.copy()
  227. ss = np.argsort(tes_max)
  228. # %%
  229. olap = set(sig).intersection(ss[-16:])
  230. # %%
  231. olap
  232. # %%
  233. num_bins = 20
  234. # Compute bin edges and assign bins
  235. adata.obs['psupertime_bin'], bin_edges = pd.qcut(adata.obs['psupertime'], q=num_bins, labels=False, retbins=True)
  236. # compute bin midpoints for correct x-axis scaling
  237. bin_midpoints = (bin_edges[:-1] + bin_edges[1:]) / 2
  238. phase_proportions = adata.obs.groupby(['psupertime_bin', 'phase']).size().unstack(fill_value=0)
  239. phase_proportions = phase_proportions.div(phase_proportions.sum(axis=1), axis=0)
  240. # for use in large figure at end of notebook
  241. fig9_x = bin_midpoints
  242. fig9_y = phase_proportions.T.values
  243. fig9_labels=phase_proportions.columns
  244. # Replot with original psupertime values on x-axis
  245. plt.figure(figsize=(8, 5))
  246. plt.stackplot(bin_midpoints, phase_proportions.T.values, labels=phase_proportions.columns, alpha=0.8)
  247. # Formatting
  248. plt.xlabel("Psupertime") # Change x-axis label
  249. plt.ylabel("Proportion of Cells")
  250. plt.title("Stacked Cell Cycle Phase Proportions Across Psupertime")
  251. plt.legend(title="Phase", bbox_to_anchor=(1.05, 1), loc='upper left')
  252. plt.grid(False)
  253. # %%
  254. phase_proportions
  255. # %%
  256. last_g1_idx = np.where(phase_proportions["G1"] <= 0.5)[0][0] # 5
  257. last_s_idx = np.where(phase_proportions["S"][last_g1_idx+1:] <= 0.5)[0][0] + last_g1_idx # 11
  258. last_g1_idx /= phase_proportions.shape[0] # get fraction along pt (this is bad variable naming, I know)
  259. last_s_idx /= phase_proportions.shape[0] # get fraction along pt
  260. pt_min = 0
  261. pt_max = 29
  262. last_g1 = (pt_max - pt_min) * last_g1_idx + pt_min
  263. last_s = (pt_max-pt_min) * last_s_idx + pt_min
  264. # %%
  265. adata.obs["phase"].value_counts()
  266. # %%
  267. thresh = 7
  268. g_above_thresh = [k for k, v in scoresr.items() if v > thresh]
  269. print(len(g_above_thresh))
  270. # %%
  271. thresh = 7
  272. g_above_thresh = [k for k, v in scoresr.items() if v > thresh]
  273. print(len(g_above_thresh))
  274. pt_above_thresh = []
  275. for g in g_above_thresh:
  276. pt_above_thresh.append(psdr[g])
  277. # %%
  278. all_scores = list(scoresr.values())
  279. plt.hist(all_scores, bins=500);
  280. plt.xlabel("Score")
  281. plt.ylabel("Frequency")
  282. plt.title("Score distribution for genes in cell cycle dataset")
  283. # %%
  284. import matplotlib.pyplot as plt
  285. from sklearn.cluster import KMeans
  286. from sklearn.metrics import silhouette_score
  287. import numpy as np
  288. from collections import defaultdict as dd
  289. kmeans = KMeans(n_clusters=5, random_state=0)
  290. labels = kmeans.fit_predict(pt_above_thresh)
  291. # %%
  292. c = dd(list)
  293. for idx_g, g in enumerate(g_above_thresh):
  294. c[labels[idx_g]].append(g)
  295. # %%
  296. for idx in range(5):
  297. fig, ax = plt.subplots()
  298. for g in c[idx]:
  299. ax.plot(psdr[g])
  300. ax.axvline(last_g1, linestyle="--")
  301. ax.axvline(last_s, linestyle="--")
  302. ax.set_title(f"Cluster {idx}")
  303. ax.set_xticks([5,15,25])
  304. ax.set_xticklabels(["G1", "S", "G2M"])
  305. fig.savefig(f"{r_dir}/cluster_{idx}.png")
  306. # %%
  307. # write out genes in each cluster
  308. # for idx in range(5):
  309. # f = open(f"{r_dir}/genes_group_{idx}.txt", "w")
  310. # for g in c[idx]:
  311. # f.write(f"{g}\n")
  312. # f.close()
  313. # %%
  314. ## For writing out all genes
  315. # f = open(f"{r_dir}/astral_genes.txt", "w")
  316. # for g in g_above_thresh:
  317. # print(g)
  318. # f.write(f"{g}\n")
  319. # f.close()
  320. # %%
  321. # Compute G1 and S to be in PT instead of by index
  322. last_g1_idx = np.where(phase_proportions["G1"] <= 0.5)[0][0] # 5
  323. last_s_idx = np.where(phase_proportions["S"][last_g1_idx+1:] <= 0.5)[0][0] + last_g1_idx # 11
  324. last_g1_idx /= phase_proportions.shape[0] # get fraction along pt
  325. last_s_idx /= phase_proportions.shape[0] # get fraction along pt
  326. pt_min = np.min(adata.obs["psupertime"])
  327. pt_max = np.max(adata.obs["psupertime"])
  328. last_g1_pt = (pt_max - pt_min) * last_g1_idx + pt_min
  329. last_s_pt = (pt_max-pt_min) * last_s_idx + pt_min
  330. # %%
  331. g = "AK6"
  332. x = np.linspace(np.min(adata.obs["psupertime"]), np.max(adata.obs["psupertime"]), len(psdr[g]))
  333. plt.plot(x, psdr[g])
  334. plt.plot(adata.obs["psupertime"], adata[:, "AK6"].X[:, 0], ".")
  335. plt.axvline(last_g1_pt, linestyle=":", label="Transition to S")
  336. plt.axvline(last_s_pt, linestyle="--", label="Transition to G2/M")
  337. plt.legend()
  338. plt.title(f"{g} expression along pseudotime")
  339. plt.xlabel("Pseudotime")
  340. plt.ylabel("Gene expression")
  341. plt.savefig(f"{r_dir}/{g}_expression.png")
  342. # %%
  343. g = "ATL2"
  344. x = np.linspace(np.min(adata.obs["psupertime"]), np.max(adata.obs["psupertime"]), len(psdr[g]))
  345. plt.plot(x, psdr[g])
  346. plt.plot(adata.obs["psupertime"], adata[:, g].X[:, 0], ".")
  347. plt.axvline((pt_max - pt_min)*5/20 + pt_min, linestyle=":", label="Transition to S")
  348. plt.axvline((pt_max-pt_min)*11/20 + pt_min, linestyle="--", label="Transition to G2/M")
  349. plt.legend()
  350. plt.title(f"{g} expression along pseudotime")
  351. plt.xlabel("Pseudotime")
  352. plt.ylabel("Gene expression")
  353. plt.savefig(f"{r_dir}/{g}_expression.png")
  354. # %% [markdown]
  355. # # Known cell cycle markers
  356. # %%
  357. f = open('regev_lab_cell_cycle_genes.txt', "r")
  358. cell_cycle_genes = [x.strip() for x in f]
  359. f.close()
  360. s_genes = cell_cycle_genes[:43]
  361. g2m_genes = cell_cycle_genes[43:]
  362. cell_cycle_genes = [x for x in cell_cycle_genes if x in adata.var_names]
  363. # %%
  364. # %%
  365. # For some reason, some of the adata.var_names can be NaN
  366. idx_list = []
  367. for idx, v in enumerate(adata.var_names):
  368. if isinstance(v, float):
  369. idx_list.append(idx)
  370. if len(idx_list) > 0:
  371. buf = list(adata.var_names)
  372. for idx in idx_list:
  373. buf[idx] = ""
  374. adata.var_names = buf
  375. # %%
  376. # which S genes are in our data?
  377. s_in_data = set([s.lower() for s in s_genes]).intersection(set([v.lower() for v in adata.var_names]))
  378. s_in_data = [s.upper() for s in s_in_data]
  379. s_in_data.sort()
  380. # which g2 genes are in our data?
  381. g2_in_data = set([s.lower() for s in g2m_genes]).intersection(set([v.lower() for v in adata.var_names]))
  382. g2_in_data = [s.upper() for s in g2_in_data]
  383. g2_in_data.sort()
  384. # %%
  385. print(f"Number of S-related genes in the dataset: {len(s_in_data)}")
  386. # %%
  387. print(f"Number of G2-related genes in the dataset: {len(g2_in_data)}")
  388. # %%
  389. fig, axs = plt.subplots(8,3)
  390. fig.set_figheight(12)
  391. fig.set_figwidth(8)
  392. for idx, g in enumerate(s_in_data):
  393. i, j = np.unravel_index(idx, axs.shape)
  394. ax = axs[i,j]
  395. x = np.linspace(np.min(adata.obs["psupertime"]), np.max(adata.obs["psupertime"]), len(psdr[g]))
  396. ax.plot(x, psdr[g], label="Windowed signal")
  397. ax.plot(adata.obs["psupertime"], adata[:, g].X[:, 0], ".", label="Cell data")
  398. ax.axvline((pt_max - pt_min)*5/20 + pt_min, linestyle=":", label="Transition to S")
  399. ax.axvline((pt_max-pt_min)*11/20 + pt_min, linestyle="--", label="Transition to G2/M")
  400. # ax.legend()
  401. ax.set_title(f"{g}")
  402. # ax.set_xlabel("Pseudotime")
  403. # ax.set_ylabel("Gene expression")
  404. if idx == 11:
  405. ax.legend(bbox_to_anchor=(1,1))
  406. fig.tight_layout(rect=[0, 0.03, 1, 0.95])
  407. fig.suptitle("S genes along pseudotime")
  408. # plt.savefig(f"{r_dir}/s_gene_expression.png")
  409. # %%
  410. num_plots = len(g2_in_data)
  411. num_columns = 3
  412. num_rows = num_plots // num_columns
  413. if num_plots % num_columns != 0:
  414. num_rows += 1
  415. fig, axs = plt.subplots(num_rows, num_columns)
  416. fig.set_figheight(4/3*num_rows)
  417. fig.set_figwidth(8)
  418. for idx, g in enumerate(g2_in_data):
  419. i, j = np.unravel_index(idx, axs.shape)
  420. ax = axs[i,j]
  421. x = np.linspace(np.min(adata.obs["psupertime"]), np.max(adata.obs["psupertime"]), len(psdr[g]))
  422. ax.plot(x, psdr[g], label="Windowed signal")
  423. ax.plot(adata.obs["psupertime"], adata[:, g].X[:, 0], ".", label="Cell data")
  424. ax.axvline((pt_max - pt_min)*5/20 + pt_min, linestyle=":", label="Transition to S")
  425. ax.axvline((pt_max-pt_min)*11/20 + pt_min, linestyle="--", label="Transition to G2/M")
  426. # ax.legend()
  427. ax.set_title(f"{g}")
  428. # ax.set_xlabel("Pseudotime")
  429. # ax.set_ylabel("Gene expression")
  430. if idx == 11:
  431. ax.legend(bbox_to_anchor=(1,1))
  432. fig.tight_layout(rect=[0, 0.03, 1, 0.95])
  433. fig.suptitle("G2M genes along pseudotime")
  434. # plt.savefig(f"{r_dir}/g2m_gene_expression.png")
  435. # %%
  436. from gprofiler import GProfiler
  437. for idx in range(4):
  438. gp = GProfiler(return_dataframe=True)
  439. results = gp.profile(organism="hsapiens", query=c[idx], sources=['GO:BP', 'GO:MF', 'GO:CC'])
  440. results.sort_values(by="p_value", ascending=True)
  441. sig_res = results[results["p_value"] < 0.05]
  442. break
  443. sig_res[["source", "native", "name", "p_value", "intersection_size"]].to_csv(f"{r_dir}/astral_enrichment_cluster{idx}.csv")
  444. # %%
  445. def plot_df(df: pd.DataFrame, title: str = None, save=None, ax=None, pmin=None, pmax=None, sources=None, annotated_names: list[str] = None
  446. ) -> None:
  447. """
  448. Plots each row of the DataFrame as a circle grouped by the 'source' column.
  449. The horizontal axis displays -log10(p_value) and the vertical positions
  450. are arranged based on the source group with added jitter.
  451. A legend is added for both the source groups and the circle size scale (intersection_size).
  452. Parameters:
  453. df (pd.DataFrame): A DataFrame containing the columns:
  454. - 'source': categorical column with 3 categories.
  455. - 'p_value': continuous values.
  456. - 'intersection_size': integers (will be used to scale circle sizes).
  457. - 'name': a descriptor for the row (unused in the plot).
  458. """
  459. # Compute the horizontal position: -log10(p_value)
  460. # (Make sure there are no p_value values equal to 0)
  461. df = df.copy() # Avoid modifying the original DataFrame
  462. fontsize=16
  463. if ax is None:
  464. fig, ax = plt.subplots()
  465. if (df["p_value"] <= 0).any():
  466. raise ValueError("All p_value entries must be positive so that -log10 can be computed.")
  467. df["neg_log10"] = -np.log10(df["p_value"])
  468. # Create a mapping for each unique source to a base y-position.
  469. if sources is None:
  470. unique_sources = sorted(df["source"].unique())
  471. else:
  472. unique_sources = sorted(np.unique(sources))
  473. source_to_index = {source: idx for idx, source in enumerate(unique_sources, start=1)}
  474. # Map sources to base y positions.
  475. df["base_y"] = df["source"].map(source_to_index)
  476. # Add vertical jitter to separate the circles
  477. np.random.seed(0) # For reproducibility
  478. jitter = np.random.uniform(-0.2, 0.2, size=len(df))
  479. df["y_pos"] = df["base_y"] + jitter
  480. # Create the plot
  481. # Plot each group with its own color and label.
  482. for source in unique_sources:
  483. subset = df[df["source"] == source]
  484. ax.scatter(
  485. subset["neg_log10"],
  486. subset["y_pos"],
  487. s=subset["intersection_size"] * 10, # Scale circle sizes; adjust factor as needed.
  488. alpha=0.7,
  489. label=source, # This will be used in the legend for sources.
  490. edgecolors="w"
  491. )
  492. ax.set_xlabel("-log10(p_value)", fontsize=fontsize)
  493. ax.set_yticks(list(source_to_index.values()), list(source_to_index.keys()), fontsize=fontsize)
  494. ax.set_ylim([0,4])
  495. # plt.ylabel("Source Group")
  496. if title is None:
  497. ax.set_title("Function Enrichment Analysis", fontsize=fontsize)
  498. else:
  499. ax.set_title(title, fontsize=fontsize)
  500. # First, add the legend for the source groups.
  501. # source_legend = plt.legend(title="Source", loc="upper right")
  502. # plt.gca().add_artist(source_legend)
  503. # Now, create a legend for the circle sizes corresponding to 'intersection_size'.
  504. # Use three representative sizes: min, median, and max.
  505. size_min = df["intersection_size"].min()
  506. # size_median = int(df["intersection_size"].median())
  507. size_max = df["intersection_size"].max()
  508. size_median = int((size_min + size_max)/2) #int(df["intersection_size"].median())
  509. size_scale = 10 # This is the factor applied to intersection_size for the marker size
  510. sizes = [size_min, size_median, size_max]
  511. markers = [
  512. ax.scatter([], [], s=size * size_scale, color="gray", alpha=0.7, edgecolors="w")
  513. for size in sizes
  514. ]
  515. labels = [f"{size}" for size in sizes]
  516. if annotated_names:
  517. # You could adjust the base offsets for arrow text.
  518. offset_x = 0.5
  519. offset_y = 0.5
  520. for i, row in df.iterrows():
  521. if row["name"] in annotated_names:
  522. x_point = row["neg_log10"]
  523. y_point = row["y_pos"]
  524. x_text = x_point + offset_x
  525. y_text = y_point + offset_y
  526. ax.annotate(
  527. row["name"],
  528. xy=(x_point, y_point),
  529. xytext=(x_text, y_text),
  530. arrowprops=dict(facecolor="black", arrowstyle="->"),
  531. fontsize=10,
  532. bbox=dict(boxstyle="round,pad=0.3", fc="yellow", alpha=0.5)
  533. )
  534. ax.legend(markers, labels, title="Intersection Size", bbox_to_anchor=(1.05, 1), loc="upper left", borderaxespad=0)
  535. ax.grid()
  536. if pmin is not None and pmax is not None:
  537. ax.set_xlim([pmin, pmax])
  538. plt.tight_layout()
  539. if save is not None:
  540. plt.savefig(save)
  541. # %%
  542. results = []
  543. sources=['GO:BP', 'GO:MF', 'GO:CC']
  544. for idx in range(5):
  545. gp = GProfiler(return_dataframe=True)
  546. results.append(gp.profile(organism="hsapiens", query=c[idx], sources=sources))
  547. results[-1].sort_values(by="p_value", ascending=True)
  548. sig_res = results[-1][results[-1]["p_value"] < 0.05]
  549. # break
  550. if sig_res.shape[0] == 0:
  551. continue
  552. sig_res[["source", "native", "name", "p_value", "intersection_size"]].to_csv(f"paper_figures/astral_enrichment_cluster{idx}.csv")
  553. # %%
  554. # %%
  555. fig, axs = plt.subplots(3)
  556. fig.set_figheight(8)
  557. fig_idx = 0
  558. fontsize=16
  559. p_min = np.inf
  560. p_max = -np.inf
  561. annot_lists = []
  562. annot_lists.append(["fatty acid catabolic process", "phagocytic vesicle membrane"])
  563. annot_lists.append(["DNA replication", "nuclear chromosome"])
  564. annot_lists.append(["N-acylsphingosine amidohydrolase activity", "tertiary granule lumen"])
  565. for r2 in results:
  566. r = r2[r2["p_value"] < 0.05]
  567. if r.shape[0] == 0:
  568. continue
  569. mmin = np.min(r["p_value"])
  570. mmax = np.max(r["p_value"])
  571. p_min = np.min([mmin, p_min])
  572. p_max = np.max([mmax, p_max])
  573. p_min *= 0.8
  574. p_max *= 1.3
  575. for idx in range(3):
  576. # gp = GProfiler(return_dataframe=True)
  577. # results = gp.profile(organism="hsapiens", query=c[idx], sources=['GO:BP', 'GO:MF', 'GO:CC'])
  578. # results.sort_values(by="p_value", ascending=True)
  579. sig_res = results[idx][results[idx]["p_value"] < 0.05]
  580. # break
  581. if sig_res.shape[0] == 0:
  582. continue
  583. # sig_res[["source", "native", "name", "p_value", "intersection_size"]].to_csv(f"paper_figures/astral_enrichment_cluster{idx}.csv")
  584. plot_df(sig_res, title=f"Enrichment for Cluster {idx}", ax=axs[fig_idx], pmin = -np.log10(p_max), pmax=-np.log10(p_min), sources=sources, annotated_names=annot_lists[idx])
  585. # break
  586. fig_idx += 1
  587. # print(results)
  588. plt.savefig(f"{r_dir}/fig9_cellcycle_enrichment.png")
  589. plt.savefig(f"{r_dir}/fig9_cellcycle_enrichment.svg")
  590. # %% [markdown]
  591. # # Figure assembly
  592. # %%
  593. import matplotlib.gridspec as gridspec
  594. from string import ascii_uppercase
  595. # %%
  596. adata
  597. # %%
  598. sc.tl.umap(adata)
  599. sc.pl.umap(adata)
  600. # %%
  601. from collections import defaultdict as dd
  602. adata_pscs = sc.read_h5ad("pscs_cellcycle.h5ad")
  603. cluster_genes = {}
  604. pt_signals = dd(list)
  605. var_list = list(adata_pscs.var_names)
  606. for idx in range(4):
  607. cluster_genes[idx] = list(adata_pscs.uns["te_cluster"].loc[(adata_pscs.uns["te_cluster"] == idx).values].index)
  608. print(len(cluster_genes[idx]))
  609. for g in cluster_genes[idx]:
  610. g_idx = var_list.index(g)
  611. pt_signals[idx].append(adata_pscs.uns["pseudotime_signals"][:, g_idx])
  612. sc.tl.umap(adata_pscs)
  613. sc.pl.umap(adata_pscs)
  614. # %%
  615. fig = plt.figure(figsize=(10, 12))
  616. gs = gridspec.GridSpec(4, 2, figure=fig)
  617. fontsize=16
  618. ax = fig.add_subplot(gs[1,1])
  619. psupertime_figure = psuper.plot_identified_gene_coefficients(adata, n_top=10, ax=ax)
  620. ax.set_title("Genes for psupertime", fontsize=fontsize)
  621. ax.text(0.05, 0.15, ascii_uppercase[3], transform=ax.transAxes,
  622. fontsize=16, fontweight='bold', va='top', ha='left')
  623. ax = fig.add_subplot(gs[2, :])
  624. # Replot with original psupertime values on x-axis
  625. ax.stackplot(bin_midpoints, phase_proportions.T.values, labels=phase_proportions.columns, alpha=0.8)
  626. # Formatting
  627. ax.set_xlabel("Pseudotime", fontsize=fontsize) # Change x-axis label
  628. ax.set_ylabel("Proportion of Cells", fontsize=fontsize)
  629. ax.set_title("Cell Cycle Phase Proportions Across Pseudotime", fontsize=fontsize)
  630. ax.legend(title="Phase", loc='upper right')
  631. ax.grid(False)
  632. ax.set_xlim(bin_midpoints[0], bin_midpoints[-1])
  633. # Remove all margins from both axes.
  634. ax.margins(x=0, y=0)
  635. # Adjust subplot parameters to use all the figure area.
  636. plt.subplots_adjust(left=0, right=1, top=1, bottom=0)
  637. ax.text(0.025, 0.95, ascii_uppercase[4], transform=ax.transAxes,
  638. fontsize=16, fontweight='bold', va='top', ha='left')
  639. for idx in [1,3]:
  640. if idx == 1:
  641. plot_idx = 0
  642. else:
  643. plot_idx = 1
  644. ax = fig.add_subplot(gs[3, plot_idx])
  645. for ii in range(len(pt_signals[idx])):
  646. ax.plot(pt_signals[idx][ii])
  647. ax.axvline(last_g1, linestyle="--")
  648. ax.axvline(last_s, linestyle="--")
  649. ax.set_title(f"Cluster {idx}", fontsize=fontsize)
  650. g1_tick = last_g1/2
  651. s_tick = (last_s + last_g1)/2
  652. g2_tick = (len(psdr[g]) + last_s)/2
  653. ax.set_xticks([g1_tick, s_tick, g2_tick])
  654. ax.set_xticklabels(["G1", "S", "G2M"], fontsize=fontsize-2)
  655. ax.set_xlabel("Pseudotime", fontsize=fontsize)
  656. ax.text(0.05, 0.95, ascii_uppercase[plot_idx+5], transform=ax.transAxes,
  657. fontsize=16, fontweight='bold', va='top', ha='left')
  658. ax_sc = fig.add_subplot(gs[0,0])
  659. sc.pl.umap(adata, color=["leiden"], ax=ax_sc, show=False, s=800)
  660. ax_sc.set_title("Leiden clusters", fontsize=fontsize)
  661. ax_sc.text(0.05, 0.95, ascii_uppercase[0], transform=ax_sc.transAxes,
  662. fontsize=16, fontweight='bold', va='top', ha='left')
  663. ax_sc = fig.add_subplot(gs[1,0])
  664. sc.pl.umap(adata, color=["phase"], ax=ax_sc, show=False, s=800)
  665. ax_sc.set_title("Cell cycle phase", fontsize=fontsize)
  666. ax_sc.text(0.05, 0.95, ascii_uppercase[2], transform=ax_sc.transAxes,
  667. fontsize=16, fontweight='bold', va='top', ha='left')
  668. ax_sc = fig.add_subplot(gs[0,1])
  669. sc.pl.umap(adata, color=["n_genes"], ax=ax_sc, show=False, s=800)
  670. ax_sc.text(0.05, 0.95, ascii_uppercase[1], transform=ax_sc.transAxes,
  671. fontsize=16, fontweight='bold', va='top', ha='left')
  672. fig.tight_layout()
  673. plt.savefig(f"{r_dir}/fig7.png")
  674. plt.savefig(f"{r_dir}/fig7.svg")
  675. plt.savefig(f"{r_dir}/fig7.eps")
  676. # %%
  677. fig, axs = plt.subplots(1,2)
  678. fig.set_figheight(4)
  679. fig.set_figwidth(8)
  680. mmin = np.min(adata.obs["psupertime"])
  681. mmax = np.max(adata.obs["psupertime"])
  682. pt = np.linspace(mmin, mmax, len(psdr["PCNA"]))
  683. last_g1_pt = (mmax-mmin)*last_g1/30 + mmin
  684. last_s_pt = (mmax-mmin)*last_s/30 + mmin
  685. for idx, g in enumerate(["PCNA", "UNG"]):
  686. ax = axs[np.unravel_index(idx, axs.shape)]
  687. ax.plot(pt, psdr[g])
  688. ax.plot(adata.obs["psupertime"], adata[:, g].X[:,0], ".")
  689. ax.axvline(last_g1_pt, linestyle="--")
  690. ax.axvline(last_s_pt, linestyle="--")
  691. ax.set_title(f"{g}")
  692. # ax.set_xlabel("Pseudotime")
  693. g1_tick = (mmin+last_g1_pt)/2
  694. s_tick = (last_s_pt + last_g1_pt)/2
  695. g2_tick = (mmax + last_s_pt)/2
  696. # ax.set_xticks([5,12,25])
  697. ax.set_xticks([g1_tick, s_tick, g2_tick])
  698. ax.set_xticklabels(["G1", "S", "G2M"])
  699. if idx == 0:
  700. ax.set_ylabel("Protein Quant.")
  701. # ax.set_title(f"{g} - {adata[:, g].var['coverage'][g]}")
  702. fig.tight_layout()
  703. # fig.savefig(f"{r_dir}/pcna_ung_pseudotimecourses.png")
  704. # fig.savefig(f"{r_dir}/pcna_ung_pseudotimecourses.svg")
  705. # %% [markdown]
  706. # ### Cell cycle genes
  707. #
  708. # Since we are using supervised pseudotime to determine cell cycle phase, it is possible that the clusters we are identifying are simply groups of those same genes. This section clusters the pseudotimecourses of those genes and shows that they do not exhibit the same behavior as those identified by scTransient.
  709. # %%
  710. from sklearn.cluster import KMeans
  711. # %%
  712. cell_cycle_genes_in_data = set(cell_cycle_genes).intersection(set(adata.var_names))
  713. cell_cycle_genes_in_data = list(cell_cycle_genes_in_data)
  714. # %%
  715. psdr_mat = np.zeros((len(cell_cycle_genes_in_data), len(psdr["UNG"])))
  716. regev_gene_to_idx = {}
  717. idx_to_regev_gene = {}
  718. for idx, g in enumerate(cell_cycle_genes_in_data):
  719. psdr_mat[idx, :] = psdr[g]
  720. regev_gene_to_idx[g] = idx
  721. idx_to_regev_gene[idx] = g
  722. # %%
  723. k=5
  724. km = KMeans(n_clusters=k, random_state=42, n_init=10)
  725. clusters = km.fit_predict(psdr_mat)
  726. # %%
  727. genes_per_cluster = dd(list)
  728. pt_range = np.linspace(mmin, mmax, len(psdr["UNG"]))
  729. fig, axs = plt.subplots(3,2)
  730. for idx in range(5):
  731. ax = axs[np.unravel_index(idx, axs.shape)]
  732. for gidx, c in enumerate(clusters):
  733. if c == idx:
  734. ax.plot(pt_range, psdr_mat[gidx, :])
  735. genes_per_cluster[idx].append(cell_cycle_genes_in_data[gidx])
  736. ax.set_title(f"Cluster {idx}")
  737. ax.axvline(last_g1_pt, linestyle="--")
  738. ax.axvline(last_s_pt, linestyle="--")
  739. g1_tick = (mmin+last_g1_pt)/2
  740. s_tick = (last_s_pt + last_g1_pt)/2
  741. g2_tick = (mmax + last_s_pt)/2
  742. ax.set_xticks([g1_tick, s_tick, g2_tick])
  743. ax.set_xticklabels(["G1", "S", "G2M"])
  744. fig.tight_layout()
  745. fig.delaxes(axs[2,1])
  746. # plt.savefig(f"{r_dir}/clustered_cell_cycle_genes.png")
  747. # plt.savefig(f"{r_dir}/clustered_cell_cycle_genes.svg")

cellcycle.ipynb at commit 92b95ae, no license · at the source

Overview

  1. Department of Computational Biomedicine, Board of Governors Innovation Center, Cedars Sinai Medical Center, Los Angeles CA 90048, United States
Institutions: Cedars-Sinai Medical Center (United States)
Journal: Nucleic acids research, volume 54, issue 8, article gkag368
Dates: received 8 May 2025; accepted 20 March 2026; published online 25 April 2026; in print April 2026
Type: Research article · Language: English
License: CC BY-NC
Identifiers: DOI 10.1093/nar/gkag368 · PMID 42033223 · PMCID PMC13109726 · OpenAlex W4410336708
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: genetics / omics (modality), human (organism), cellular / molecular (subfield)
Methods: Statistics, Smoothing, state filtering, decompositions, Spectral & time-frequency, Physiology & signal measures
MeSH: Gene Expression Profiling*, Single-Cell Analysis*, Algorithms, Animals, Cell Cycle, Humans, Neurogenesis, Neurons, Single-Cell Gene Expression Analysis, Wavelet Analysis (* major topic)
Topic: Gene Regulatory Network Analysis (Molecular Biology, Biochemistry, Genetics and Molecular Biology), according to OpenAlex
Citations: cited by 1 paper (Europe PMC); 58 references in the paper

Abstract

Transient changes in gene or protein expression often mark the key regulatory checkpoints that propel cells from one functional state to the next, yet they are easy to miss in sparse, noisy single-cell omics data. We introduce scTransient, which transforms single-cell expression profiles into continuous pseudotime signals and uses wavelet-based signal processing to isolate short-lived but biologically meaningful bursts of gene activity. After ordering cells with supervised pseudotime, scTransient windows expression values with supervised pseudotime, applies a continuous wavelet transform, and assigns every gene a transient-event score (TES) that rewards sharp, isolated coefficients while penalizing background fluctuations. Synthetic benchmarks demonstrate that TES robustly recovers transient events (TE) across a wide range of parameters, including cell numbers, signal-to-noise ratios, and event widths. Applying scTransient to two real datasets—induced neuron development and single-cell cell cycle—demonstrates scTransient’s ability to detect TEs along pseudotime and identify proteins known to be related to the biological process under study. These include stem cell regulators in induced neuronal development and S-phase DNA replication factors in A549 cells. By extending trajectory inference from descriptive ordering to quantitative detection of fleeting regulatory programs, scTransient offers a practical route to uncover transient molecular events that drive development, differentiation, and disease.

Reproduced under the paper's license (CC BY-NC), from the paper cited above.

Repository

Its files are read in the Code ↔ Paper reader above, with 10 matches between paragraphs and lines of code.

xomicsdatascience/scTransient_notebooks

License: none: the authors keep all their rights
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: 92b95ae198e621a450e4acec48aaf2171d37f570, 6 February 2026
Languages: Jupyter (3), Python (3), Shell (1)
Size: 16 files, 7 scripts
Software Heritage: not archived
Found in: “Data availability”
Holds: README, environment (requirements.txt), 3 notebooks
Not found: license file, CITATION.cff, tests, continuous integration, documentation
Tools: NumPy (6 files), Matplotlib (4 files), anndata (3 files), pandas (3 files), scikit-learn (2 files), PyWavelets (1 file), rpy2 (1 file), Scanpy (1 file), SciPy (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
8 files

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;
  • 7 scripts, each with its path and the digest of its content;
  • 10 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.

Data availability

Datasets were downloaded from external sources: the cell cycle dataset [46] is available through the ProteomeXchange Consortium [20] via PRIDE [21] with ID PXD049412. The iNeuron raw and processed data is available on massive under ID MSV000100760 with DOI: https://doi.org/doi:10.25345/C5FQ9QK2G. The synthetic data generation code is available from: https://github.com/xomicsdatascience/scTransient_notebooks.

The scTransient code is available from Zenodo and the PSCS [19] interface includes scTransient analysis capabilities. The notebooks for data analysis to produce the figures in this paper are on Zenodo.

Reproduced under the paper's license (CC BY-NC), from the paper cited above.

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, 3 authors, 10 MeSH terms, 2 funders, 53 references.

Cite

This paper

Hutton, A., Muñoz-Estrada, J., & Meyer, J. G. (2026). Single-cell trajectory inference for detecting transient events in biological processes. Nucleic acids research, 54(8), gkag368. https://doi.org/10.1093/nar/gkag368

BibTeX

@article{hutton2026single,
author = {Hutton, Alexandre and Muñoz-Estrada, Jesús and Meyer, Jesse G},
title = {{Single-cell trajectory inference for detecting transient events in biological processes}},
journal = {Nucleic acids research},
year = {2026},
month = apr,
volume = {54},
number = {8},
pages = {gkag368},
publisher = {Oxford University Press},
issn = {0305-1048},
doi = {10.1093/nar/gkag368},
url = {https://doi.org/10.1093/nar/gkag368},
pmid = {42033223},
pmcid = {PMC13109726}
}

RIS

TY - JOUR
AU - Hutton, Alexandre
AU - Muñoz-Estrada, Jesús
AU - Meyer, Jesse G
TI - Single-cell trajectory inference for detecting transient events in biological processes
T2 - Nucleic acids research
J2 - Nucleic Acids Res
PY - 2026
DA - 2026/04/01
VL - 54
IS - 8
SP - gkag368
SN - 0305-1048
PB - Oxford University Press
DO - 10.1093/nar/gkag368
UR - https://doi.org/10.1093/nar/gkag368
LA - en
ER -

CSL-JSON

{
"id": "10.1093/nar/gkag368",
"type": "article-journal",
"title": "Single-cell trajectory inference for detecting transient events in biological processes",
"container-title": "Nucleic acids research",
"author": [
{
"family": "Hutton",
"given": "Alexandre"
},
{
"family": "Muñoz-Estrada",
"given": "Jesús"
},
{
"family": "Meyer",
"given": "Jesse G"
}
],
"container-title-short": "Nucleic Acids Res",
"volume": "54",
"issue": "8",
"page": "gkag368",
"DOI": "10.1093/nar/gkag368",
"PMID": "42033223",
"PMCID": "PMC13109726",
"ISSN": "0305-1048",
"publisher": "Oxford University Press",
"URL": "https://doi.org/10.1093/nar/gkag368",
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
1
]
]
}
}

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.1016/j.mcpro.2026.101604 [code]
Optimizing NGN2 Dosage Enhances the Neuronal Enrichment of iPSC-Derived Neuronal Cultures.
Journal: Molecular & cellular proteomics : MCP
In common: anndata, Scanpy, scikit-learn, 4 other tools, genetics / omics, cellular / molecular, 3 references, author Jesse G Meyer
[2] doi:10.21203/rs.3.rs-9676637/v1 [code]
A Comprehensive Benchmarking of Spatial Deconvolution and Domain Detection Methods across Diverse Tissues and Spatial Transcriptomic Technologies
Journal: Research Square (preprint)
In common: rpy2, anndata, Scanpy, 5 other tools, genetics / omics, 2 references
[3] doi:10.1016/j.xcrm.2026.102766 [code]
A longitudinal single-cell and spatial multiomic atlas of pediatric high-grade glioma.
Journal: Cell reports. Medicine
In common: rpy2, anndata, Scanpy, 5 other tools, genetics / omics, cellular / molecular, 1 reference
[4] 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 communications
In common: anndata, Scanpy, scikit-learn, 4 other tools, genetics / omics, 3 references
[5] doi:10.1371/journal.pcbi.1014346 [code]
StPedf: Cell trajectory inference of spatial transcriptomics via spatial proximity embedding and spatial density-adaptive fusion.
Journal: PLoS computational biology
In common: rpy2, anndata, Scanpy, 5 other tools, genetics / omics, 1 reference
[6] doi:10.1093/bib/bbag298 [code]
Empowering multifaceted analysis of spatial transcriptomics data with RGAST.
Journal: Briefings in bioinformatics
In common: rpy2, anndata, Scanpy, 5 other tools, genetics / omics, 1 reference
[7] doi:10.1016/j.stem.2026.05.005 [code]
Generation of human appetite-regulating neurons and tanycytes from pluripotent stem cells.
Journal: Cell stem cell
In common: rpy2, anndata, Scanpy, 5 other tools, cellular / molecular, 1 reference
[8] doi:10.1002/advs.77003 [code]
SemanticST: A Scalable Multi-Contextual Graph Learning Framework for Uncovering Spatial Niches and Robust Multi-Sample Integration in Spatial Transcriptomics.
Journal: Advanced science (Weinheim, Baden-Wurttemberg, Germany)
In common: rpy2, anndata, Scanpy, 5 other tools, genetics / omics, 1 reference
[9] doi:10.3390/ijms27167275 [code]
Integrative Multi-Omics Analysis of Multiple Sclerosis Reveals Cell-Type-Specific Regulatory Landscapes and Discordant Methylation-Expression Coupling.
Journal: International journal of molecular sciences
In common: anndata, Scanpy, scikit-learn, 4 other tools, genetics / omics, cellular / molecular, 2 references
[10] doi:10.1016/j.xgen.2026.101217 [code]
ProtoCloud: A prototypical self-explaining model for single-cell analysis.
Journal: Cell genomics
In common: anndata, Scanpy, scikit-learn, 4 other tools, genetics / omics, 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.

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: 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.