SpaDC enables sequence-based integrative analysis and regulatory inference of spatial chromatin accessibility data.
The 12 matches · 2 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
- [1] § Results and discussion › SpaDC accurately detects brain structures and reveals spatial domain specific regulatory networks ↔ Tutorials/Tutorial_P22.ipynb, lines 128–157 · score 0.81 · 23687043–23687913, 25317719–25318626, 70998671–70999544, 83126754–83127607, chr14, chr18
- [2] § Results and discussion › SpaDC accurately captures spatial structures of the mouse embryonic brain ↔ Tutorials/Tutorial_MISAR.ipynb, lines 86–115 · score 0.81 · Cerebellar Vermis, DPallm, DPallv, Diencephalon, Hindbrain, Midbrain
- [3] § Methods › Graph regularized convolutional neural network ↔ SpaDC/model.py, lines 18–88 · score 0.79 · ReLU, sigmoid, flattened, kernel, tower, Linear
- [4] § Methods › GRN inference ↔ GRN_R/get_peak_motif_perturbation.R, lines 1–57 · score 0.72 · matched motif, DNA sequence, perturbed, positions, bp, genome
- [5] § Results and discussion › Overview of SpaDC ↔ SpaDC/train_SpaDC_bc.py, lines 114–179 · score 0.67 · binary cross entropy, triplet loss, BCE, anchors, trained, nearest
- [6] § Methods › Benchmarking metrics › Batch entropy mixing score ↔ SpaDC/utils.py, lines 328–389 · score 0.63 · batch entropy mixing, Iteratively, score, cell
- [7] § Results and discussion › Overview of SpaDC ↔ SpaDC/train_SpaDC.py, the whole file · a weak match · score 0.60 · binary cross entropy, BCE, shuffled, trained, loss, graph
- [8] § Methods › GRN inference ↔ Tutorials/Inferring_GRN_on_P22.ipynb, lines 134–237 · score 0.60 · XGBoost, functional CREs, regression, Shapley, gene, denoised
- [9] § Methods › Multiple spatial epigenomics data alignment ↔ SpaDC/train_SpaDC_bc.py, lines 114–179 · score 0.58 · Triplet loss, cell embeddings, margin, anchor, batch
- [10] § Results and discussion › SpaDC accurately captures spatial structures of the mouse embryonic brain ↔ Tutorials/Tutorial_MISAR.ipynb, lines 86–115 · score 0.55 · DPallm, DPallv, Mesenchyme, Subpallium, SpaDC
- [11] § Methods › Graph regularized convolutional neural network ↔ SpaDC/train_SpaDC.py, the whole file · a weak match · score 0.52 · BCE loss, optimized, weight, graph, neighbor, matrix
- [12] § Methods › Benchmarking metrics ↔ SpaDC/utils.py, lines 328–389 · score 0.50 · batch entropy mixing, score, clustering
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 · 213 lines · 6.5 KB · MIT · 2 matches
- # %% [markdown]
- # # Run SpaDC on spatial ATAC-seq data of E15.5 mouse embryonic brain
- # %% [markdown]
- # ### The data is available at: https://doi.org/10.6084/m9.figshare.30739373
- # %%
- import scanpy as sc
- import pandas as pd
- import SpaDC
- import torch
- import os
- # %% [markdown]
- # # Preparation of data
- # %% [markdown]
- # ##### The mm10.fa.gz reference genome file is not included in this repository due to its large file size. Please download it from the UCSC Genome Browser:
- #
- # https://hgdownload.soe.ucsc.edu/goldenPath/mm10/bigZips/mm10.fa.gz
- #
- # After downloading, decompress the file and place mm10.fa under the ./SpaDC/ directory before running the pipeline.
- # %% [markdown]
- # # Importing the data
- # %%
- # Load adata
- DATA_DIR = "./SpaDC/MISAR_seq"
- adata_path = os.path.join(DATA_DIR, "MISAR_seq_mouse_E15_brain_ATAC_data.h5ad") ### The adata is processed with EpiScanpy, just remove the low quality peaks and spots with min_features=10 and min_cells=10
- adata = sc.read_h5ad(adata_path)
- # %% [markdown]
- # ##### Note: The required information in adata are: spatial coordinates, peak-by-spot data, peaks
- # %% [markdown]
- # # Converting chromosome names to UCSC format
- # %% [markdown]
- # ##### If you would like to use the method quickly, you may skip the following section.
- # %% [markdown]
- # ##### You can directly load the preprocessed sequence data from our dataset using the "Loading standard sequencing" part.
- # %%
- index = adata.var_names
- index = pd.DataFrame(x.split('-') for x in index)
- seq, _ = SpaDC.make_bed_seqs_from_df(index, './SpaDC/mm10.fa', 1344)
- file = open(os.path.join(DATA_DIR, "seqs.txt"),'a')
- file.write('seq\n')
- for i in range(len(seq)):
- s = seq[i] + '\n'
- file.write(s)
- file.close()
- # %% [markdown]
- # #### Loading standard sequencing
- # %%
- seq_path = os.path.join(DATA_DIR, "seqs.txt")
- seq = pd.read_csv(seq_path, sep='\t')
- # %% [markdown]
- # # Running SpaDC
- # %% [markdown]
- # ##### After running SpaDC, the learned spot embeddings will be stored in adata.obsm['SpaDC']
- # %% [markdown]
- # ##### The trained model parameters will be saved as model.pt in the current working directory.
- # %%
- adata = SpaDC.train_SpaDC(adata, seq, n_epochs=200, batch_size=256, save_model=True, out_dir='', device=torch.device('cuda:8'))
- # %% [markdown]
- # # Clustering on SpaDC's embedding
- # %%
- sc.pp.neighbors(adata, use_rep='SpaDC')
- res, _ = SpaDC.getNClusters(adata, 14)
- sc.tl.leiden(adata, key_added='SpaDC', resolution=res)
- # %%
- # Visualization
- import matplotlib.pyplot as plt
- plt.rcParams['font.sans-serif'] = 'Arial'
- plt.rcParams['font.family'] = 'sans-serif'
- # Map SpaDC clusters to annotated spot types
- cluster_annotation = {
- '0':'1-Hindbrain',
- '1':'2-Skull',
- '2':'3-Cartilage',
- '3':'4-Diencephalon',
- '4':'5-Mesenchyme',
- '5':'6-DPallm',
- '6':'7-Midbrain',
- '7':'8-Cartilage',
- '8':'9-Subpallium',
- '9':'10-Cerebellar vermis',
- '10':'11-Thalamus',
- '11':'12-DPallv',
- '12':'13-Muscle',
- '13':'14-Hindbrain',
- }
- adata.obs['SpaDC'] = adata.obs['SpaDC'].map(cluster_annotation).astype('category')
- f, ax = plt.subplots(figsize=(6, 4))
- sc.pl.embedding(adata, basis='spatial1', color='SpaDC', size=100, ax=ax, show=False)
- plt.tight_layout()
- plt.show()
- # %% [markdown]
- # # Visualizing the denosing performance of SpaDC
- # %% [markdown]
- # ### before denoising
- # %%
- import episcanpy as epi
- epi.pp.binarize(adata)
- epi.pp.normalize_total(adata)
- epi.pp.log1p(adata)
- f, ax = plt.subplots(1, 4, figsize=(14, 3))
- sc.pl.embedding(adata, basis='spatial1', color='chr1-120602010-120602510', vmin=0, size=60, vmax=1.5, ax=ax[0], show=False, colorbar_loc=None)
- sc.pl.embedding(adata, basis='spatial1', color='chr12-6638859-6639359', vmin=0, size=60, vmax=1.5, ax=ax[1], show=False, colorbar_loc=None)
- sc.pl.embedding(adata, basis='spatial1', color='chr13-59971685-59972185', vmin=0, size=60, vmax=1.5, ax=ax[2], show=False, colorbar_loc=None)
- sc.pl.embedding(adata, basis='spatial1', color='chr5-131596826-131597326', vmin=0, size=60, vmax=1.5, ax=ax[3], show=False, colorbar_loc=None)
- ax[0].set_xlabel('')
- ax[1].set_xlabel('')
- ax[2].set_xlabel('')
- ax[3].set_xlabel('')
- ax[0].set_ylabel('Raw', fontsize=12)
- ax[1].set_ylabel('')
- ax[2].set_ylabel('')
- ax[3].set_ylabel('')
- plt.show()
- # %% [markdown]
- # ### after denoising
- # %%
- import squidpy as sq
- adata = sc.read_h5ad(adata_path)
- model_state_dict = './model.pt'
- # get denoise adata
- adata_denoise = SpaDC.get_denoise_adata(adata, seq, model_state_dict)
- adata_denoise.obsm['spatial'] = adata.obsm['spatial1']
- sc.pp.normalize_total(adata, target_sum=1e4)
- sc.pp.log1p(adata)
- sc.tl.pca(adata)
- sc.pp.neighbors(adata, n_neighbors=15, n_pcs=30)
- sq.gr.spatial_neighbors(adata, coord_type='grid', spatial_key='spatial1')
- adata.obsp['connectivities'] = (0.5 * adata.obsp['connectivities'] + 0.5 * adata.obsp['spatial_connectivities'])
- res1, _ = SpaDC.getNClusters(adata, 14)
- sc.tl.leiden(adata, key_added='Raw_clusters', resolution=res1)
- sc.pp.normalize_total(adata_denoise, target_sum=1e4)
- sc.pp.log1p(adata_denoise)
- sc.tl.pca(adata_denoise)
- sc.pp.neighbors(adata_denoise, n_neighbors=15, n_pcs=30)
- sq.gr.spatial_neighbors(adata_denoise, coord_type='grid', spatial_key='spatial')
- adata_denoise.obsp['connectivities'] = (0.5 * adata_denoise.obsp['connectivities'] + 0.5 * adata_denoise.obsp['spatial_connectivities'])
- res2, _ = SpaDC.getNClusters(adata_denoise, 14)
- sc.tl.leiden(adata_denoise, key_added='Denoise_clusters', resolution=res2)
- f, ax = plt.subplots(1, 2, figsize=(9, 4))
- sc.pl.embedding(adata, basis='spatial1', color='Raw_clusters', size=100, ax=ax[0], show=False)
- sc.pl.embedding(adata_denoise, basis='spatial', color='Denoise_clusters', size=100, ax=ax[1], show=False)
- ax[0].set_xlabel('')
- ax[1].set_xlabel('')
- ax[0].set_ylabel('')
- ax[1].set_ylabel('')
- plt.tight_layout()
- plt.show()
- # %%
- adata.X = adata_denoise.X
- f, ax = plt.subplots(1, 4, figsize=(14, 3))
- sc.pl.embedding(adata, basis='spatial1', color='chr1-120602010-120602510', vmin=0, size=60, ax=ax[0], show=False, colorbar_loc=None)
- sc.pl.embedding(adata, basis='spatial1', color='chr12-6638859-6639359', vmin=0, size=60, ax=ax[1], show=False, colorbar_loc=None)
- sc.pl.embedding(adata, basis='spatial1', color='chr13-59971685-59972185', vmin=0, size=60, ax=ax[2], show=False, colorbar_loc=None)
- sc.pl.embedding(adata, basis='spatial1', color='chr5-131596826-131597326', vmin=0, size=60, ax=ax[3], show=False, colorbar_loc=None)
- ax[0].set_xlabel('')
- ax[1].set_xlabel('')
- ax[2].set_xlabel('')
- ax[3].set_xlabel('')
- ax[0].set_ylabel('Denoise', fontsize=12)
- ax[1].set_ylabel('')
- ax[2].set_ylabel('')
- ax[3].set_ylabel('')
- plt.show()
Tutorial_MISAR.ipynb at commit bcf4ad8, under MIT · at the source
Overview
- School of Cyber Science and Engineering, Wuhan University,Wuhan, China
- School of Artificial Intelligence, Wuhan University,Wuhan, China
- School of Computer Science, Wuhan University,Wuhan, 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.
Repositories
Its files are read in the Code ↔ Paper reader above, with 12 matches between paragraphs and lines of code.
mcllllllll/SpaDC
bcf4ad8c408282a1954d10222c7a93fb16a56039, 10 May 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
15 files
- GRN_R/
get_peak_motif_perturbat , R, 110 lines, 1 matchion.R - GRN_R/
get_shuffled_peaks.R , R, 63 lines - GRN_R/
get_shuffled_peaks_motif , R, 40 liness.R - SpaDC/
__init__.py , Python, 4 lines - SpaDC/
model.py , Python, 93 lines, 1 match - SpaDC/
train_SpaDC.py , Python, 130 lines, 2 matches - SpaDC/
train_SpaDC_bc.py , Python, 179 lines, 2 matches - SpaDC/
utils.py , Python, 539 lines, 2 matches - Tutorials/
Inferring_GRN_on_P22.ipy , Jupyter, 365 lines, 1 matchnb - Tutorials/
Tutorial_MISAR.ipynb , Jupyter, 213 lines, 2 matches - Tutorials/
Tutorial_P22.ipynb , Jupyter, 191 lines, 1 match - Tutorials/
Tutorial_integrate.ipynb , Jupyter, 143 lines - setup.py, Python, 25 lines
- LICENSE.txt, License, 21 lines
- README.md, Text, 44 lines
Zenodo 20300757
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
15 files
- GRN_R/
get_peak_motif_perturbat , R, 110 linesion.R - GRN_R/
get_shuffled_peaks.R , R, 63 lines - GRN_R/
get_shuffled_peaks_motif , R, 40 liness.R - SpaDC/
__init__.py , Python, 4 lines - SpaDC/
model.py , Python, 93 lines - SpaDC/
train_SpaDC.py , Python, 130 lines - SpaDC/
train_SpaDC_bc.py , Python, 179 lines - SpaDC/
utils.py , Python, 539 lines - Tutorials/
Inferring_GRN_on_P22.ipy , Jupyter, 365 linesnb - Tutorials/
Tutorial_MISAR.ipynb , Jupyter, 213 lines - Tutorials/
Tutorial_P22.ipynb , Jupyter, 191 lines - Tutorials/
Tutorial_integrate.ipynb , Jupyter, 143 lines - setup.py, Python, 25 lines
- LICENSE.txt, License, 21 lines
- README.md, Text, 44 lines
Code availability statement
The paper has a code 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: mcllllllll/
SpaDC , Zenodo 20300757
Read it in the paper: doi.org/10.1038/s42003-026-10462-y.
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:
- 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 26 scripts, each with its path and the digest of its content;
- 12 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
Datasets cited
- figshare:30739373, at figshare; found in “Data availability”
Data availability statement
The paper has a 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 a dataset: figshare 30739373
Read it in the paper: doi.org/10.1038/s42003-026-10462-y.
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, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 6 authors, 2 keywords, 7 MeSH terms, 1 funder, 57 references.
Cite
This paper
Ma, C., Yang, C., Zhen, C., He, Z., Luo, Y., & Zhang, L. (2026). SpaDC enables sequence-based integrative analysis and regulatory inference of spatial chromatin accessibility data. Communications biology, 9(1), 1196. https://
BibTeX
@article{ma2026spadc,
author = {Ma, Chuanlong and Yang, Chenghui and Zhen, Caiwei and He, Zhentao and Luo, Yong and Zhang, Lihua},
title = {{SpaDC enables sequence-based integrative analysis and regulatory inference of spatial chromatin accessibility data}},
journal = {Communications biology},
year = {2026},
month = jun,
volume = {9},
number = {1},
pages = {1196},
publisher = {Nature Publishing Group},
issn = {2399-3642},
doi = {10.1038/
url = {https://
pmid = {42251185},
pmcid = {PMC13575232}
}
RIS
TY - JOUR
AU - Ma, Chuanlong
AU - Yang, Chenghui
AU - Zhen, Caiwei
AU - He, Zhentao
AU - Luo, Yong
AU - Zhang, Lihua
TI - SpaDC enables sequence-based integrative analysis and regulatory inference of spatial chromatin accessibility data
T2 - Communications biology
J2 - Commun Biol
PY - 2026
DA - 2026/
VL - 9
IS - 1
SP - 1196
SN - 2399-3642
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "SpaDC enables sequence-based integrative analysis and regulatory inference of spatial chromatin accessibility data",
"container-title": "Communications biology",
"author": [
{
"family": "Ma",
"given": "Chuanlong"
},
{
"family": "Yang",
"given": "Chenghui"
},
{
"family": "Zhen",
"given": "Caiwei"
},
{
"family": "He",
"given": "Zhentao"
},
{
"family": "Luo",
"given": "Yong"
},
{
"family": "Zhang",
"given": "Lihua"
}
],
"container-title-short":
"volume": "9",
"issue": "1",
"page": "1196",
"DOI": "10.1038/
"PMID": "42251185",
"PMCID": "PMC13575232",
"ISSN": "2399-3642",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
6
]
]
}
}
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/s41592-026-03057-2 [code]
- CREsted: modeling genomic and synthetic cell-type-specific enhancers across tissues and species.Journal: Nature methodsIn common: pysam, Biopython, BEDTools, 8 other tools, genetics / omics, mouse, 12 references
- [2] doi:10.1186/s13059-026-04177-w [code]
- Genomic sequence evolution underlying human neocortical interareal diversification.Journal: Genome biologyIn common: Squidpy, pysam, BEDTools, 8 other tools, genetics / omics, mouse, 7 references
- [3] doi:10.1038/s41467-026-73171-4 [code]
- Dissecting epigenetic heterogeneity in single-cell DNA methylomes with a unified framework.Journal: Nature communicationsIn common: pysam, BEDTools, anndata, 7 other tools, genetics / omics, 7 references
- [4] doi:10.1038/s41467-026-71803-3 [code]
- Charting the transition from in vitro gliogenesis to the in vivo maturation of human glial progenitor cells transplanted into the hypomyelinated mouse brain.Journal: Nature communicationsIn common: Squidpy, BEDTools, anndata, 8 other tools, genetics / omics, mouse, 5 references
- [5] 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: pysam, BEDTools, anndata, 7 other tools, genetics / omics, mouse, 5 references
- [6] doi:10.1038/s41592-026-03194-8 [code]
- Beyond benchmarking: an expert-guided consensus approach to spatially aware clustering.Journal: Nature methodsIn common: Squidpy, anndata, Scanpy, 7 other tools, genetics / omics, 5 references
- [7] doi:10.1016/j.celrep.2026.117073 [code]
- Single-cell epigenomics uncovers heterochromatin instability and transcription factor dysfunction during mouse brain aging.Journal: Cell reportsIn common: pysam, BEDTools, anndata, 7 other tools, genetics / omics, mouse, 4 references
- [8] doi:10.1038/s41467-026-71759-4 [code]
- CellNiche represents cellular microenvironments in atlas-scale spatial omics data with contrastive learning.Journal: Nature communicationsIn common: Squidpy, anndata, Scanpy, 7 other tools, mouse, 5 references
- [9] doi:10.1038/s41592-026-03211-w [code]
- Spatial isoform sequencing at single-cell resolution reveals cell-type-specific spatial isoform variability in multiple brain cell types.Journal: Nature methodsIn common: pysam, Biopython, BEDTools, 8 other tools, genetics / omics, mouse, 2 references
- [10] doi:10.64898/2026.03.30.714220 [code]
- An integrated single cell and spatial omics atlas of human prenatal developmentJournal: bioRxiv (preprint)In common: Squidpy, Biopython, anndata, 8 other tools, 3 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: 2 repositories of the authors' code, each at its verified commit and with its license, 26 scripts, and 12 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:dd287135933c6f71…
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
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
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.
