Neighborhood-informed positional information for precise cell identity specification.
6 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 10 matches · 2 of them tie a paragraph to a whole file without given lines: weak matches, whose lines are not tinted
- [1] § Methods › Description of Drosophila data ↔ data/WildTypeDrosophila.py, lines 7 to 133 · score 0.89 · 40–44 min, 38–48 min, WT Drosophila, 40 min, 38 min, gap genes · block
oscr:b:TAM7AR1AFPD0S-O· Report a mismatch - [2] § Methods › Quantifying the error in the prediction of the location ↔ test_results_analysis/TestResults.py, the whole file · a weak match · score 0.69 · predicted location, ground truth, MAP positions, position prediction, error, decoding · block
oscr:b:18W9T5RWG8WVT-G· Report a mismatch - [3] § Methods › Description of Drosophila data ↔ src/_constants.py, lines 16 to 85 · score 0.61 · bcdE1, WT embryos, double, osk, neighborhood informed, cell independent · block
oscr:b:GGJG3AF59KARZ-1· Report a mismatch - [4] § Methods › Description of Drosophila data ↔ data/WildTypeDrosophila.py, lines 7 to 133 · score 0.60 · 38–48 min, 38 min, gap gene, Drosophila, embryos · block
oscr:b:TAM7AR1AFPD0S-O· Report a mismatch - [5] § Results › Prediction of pair-rule gene expression ↔ src/_figures.py, lines 30 to 42 · score 0.58 · reconstruction error, neighborhood informed decoding, prediction error, AP axis, schematic, Eve · block
oscr:b:WZ94PS0EGCMCW-N· Report a mismatch - [6] § Methods › Description of Drosophila data ↔ src/_constants.py, lines 16 to 85 · score 0.57 · bcdE1, Nos, Tsl, 55 min, 45 min, pair rule gene · block
oscr:b:GGJG3AF59KARZ-1· Report a mismatch - [7] § Results › Prediction of pair-rule gene expression ↔ src/_figures.py, lines 30 to 42 · score 0.56 · qualitative comparison, prediction error, AP axis, Eve, Prd, neighborhood informed · block
oscr:b:WZ94PS0EGCMCW-N· Report a mismatch - [8] § Methods › Quantifying the error in the prediction of the location ↔ test_results_analysis/TestResults.py, the whole file · a weak match · score 0.56 · positional prediction error, ground truth, absolute, location, MAP, embryos · block
oscr:b:18W9T5RWG8WVT-G· Report a mismatch - [9] § Results › Short-range gene expression correlations close the positional information gap in the Drosophila embryo ↔ src/_figures.py, lines 2 to 26 · score 0.55 · schematic diagram, pairwise correlation, decoding maps, Hb, Kr, bits · block
oscr:b:ECY2M7KM737AX-J· Report a mismatch - [10] § Results › Decoding position and predicting pair-rule stripes in mutant embryos ↔ src/_figures.py, lines 44 to 56 · score 0.53 · osk mutants, binned positions, Gap gene, prediction, Decoding, embryos · block
oscr:b:NCBYMW91ZTPAK-3· 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
Python · 148 lines · 7.2 KB · no license · 4 matches
- from src._visualizations import *
- def plot_figure1_panels():
- """
- This figure presents the positional information encoded in neighboring positions in wild type Drosophila embryos
- This functions plots panels b,c,d,e,f,h, and i. Panels a and g are schematic diagrams drawn in biorender.com
- """
- ##panels b and c: gene expression correlations
- gene_expression_pairwise_correlation_plots()
- #panel d: positional information in bits
- plot_positional_information_in_bits()
- #
- # #panel e: decoding neighborhood-informed and cell independent given Kr expression
- plot_decoding_maps_comparison_wt(ONE_GENE_EXAMPLE_GENE, VMAXS_ONE_GENE, xlim=False) #True
- #
- # #panel f: decoding neighborhood-informed and cell independent give Kr, Gt, and Hb expression
- plot_decoding_maps_comparison_wt(THREE_GENES_EXAMPLE_GENES, VMAXS_THREE_GENES, xlim=False)
- #
- # #aggregated results - mean MAP error over positions and over wild type embryos, mean per number of genes used
- # #for decoding
- # #panel h:
- plot_position_MAP_error_all_gene_subsets()
- # # #same aggregation , but looking at the standard deviation of the position posterior distribution
- # # #neighborhood-informed vs cell-independent
- # # #panel i:
- plot_position_posterior_std_all_gene_subsets()
- def plot_figure2_and_related_supp_panels():
- """
- This figure presents pair-rule expression profile prediction given the position probabilistic decoder.
- We show both qualitatively, quantitivately across the AP axis, and aggregated summary results
- comparing neighborhood-informed decoding based vs cell-independent decoding based pair-rule expression profile predictions
- This function plots panels b,c,and d. Panel a is schematic and was drawn in biorender.com
- """
- ##pair rule prediction across AP axis - qualitative comparison
- #figure 2 panel b - Prd prediction and supplementary Run and Eve prediction
- pair_rule_prediction_across_positions()
- #figure 2 panel c -reconstruction error across AP axis, d - summary results - mean prediction error per pair-rule gene:
- plot_all_pr_genes_mean_prediction_error()
- def plot_figure3_panels():
- """
- This figure presents position decoding and pair-rule expression prediction results
- for Osk mutant background embryos
- :return:
- """
- plot_wt_gap_gene()
- plot_all_mutant_results(mutant_type='osk')
- ##mutant pair-rule prediction and errors:
- plot_mutant_pr_predictions_and_errors(mutant_type='osk', plot_binned_position_errors=True)
- plot_one_mutation_expression_correlation()
- def plot_figure5_panels():
- for mutant_type in MUTANT_TYPES:
- print(mutant_type)
- plot_all_mutant_results(mutant_type)
- def plot_figure6_panels():
- for mutant_type in MUTANT_TYPES:
- print(mutant_type)
- fig, axes = plt.subplots(1, 6, figsize=(
- 24, 5)) # 1 row, 6 columns, wider width (sharex=False and sharey=False by default)
- handles = [] # Store handles for the legend
- labels = []
- mean_wt_pr_exp = get_mean_wt_pr_per_position(EDGE_TRIM)
- mutant_pr = get_mutant_pr_data(mutant_type)
- mutant_pr_arr = reformat_exp_data_to_arr(mutant_pr)[:, EDGE_TRIM:-EDGE_TRIM, :]
- min_vals = np.min(mutant_pr_arr, axis=1, keepdims=True)
- max_vals = np.max(mutant_pr_arr, axis=1, keepdims=True)
- # Normalize the data
- mutant_pr_arr_normed = (mutant_pr_arr - min_vals) / (max_vals - min_vals)
- mean_pr_exp_per_gene = np.mean(mutant_pr_arr_normed, axis=0)[1:-1, :]
- std_pr_exp_per_gene = np.std(mutant_pr_arr_normed, axis=0)[1:-1, :]
- wn_map = TestResults.from_pickle(DROSO_RES_DIR, f'{mutant_type}_wn', GAP_GENES)
- sc_map = TestResults.from_pickle(DROSO_RES_DIR, f'{mutant_type}_sc', GAP_GENES)
- sc_pr_pred = sc_map.expected_pr_exp(mean_wt_pr_exp)[:, 1:-1, :]
- wn_pr_pred = wn_map.expected_pr_exp(mean_wt_pr_exp[1:-1, :])
- positions = np.linspace(0.1, 0.9, sc_pr_pred.shape[1])
- mean_wn_pred = np.mean(wn_pr_pred, axis=0)
- std_wn_pred = np.std(wn_pr_pred, axis=0)
- mean_sc_pred = np.mean(sc_pr_pred, axis=0)
- std_sc_pred = np.std(sc_pr_pred, axis=0)
- for i, gene in enumerate(PAIR_RULE_GENES[:3]):
- # WN plot
- ax_wn = axes[2 * i]
- ax_wn.fill_between(positions, mean_pr_exp_per_gene[:, i] - std_pr_exp_per_gene[:, i],
- mean_pr_exp_per_gene[:, i] + std_pr_exp_per_gene[:, i], color='grey', alpha=0.3)
- ax_wn.fill_between(positions, mean_wn_pred[:, i] - std_wn_pred[:, i],
- mean_wn_pred[:, i] + std_wn_pred[:, i], color=DECODER_TYPE_COLOR['wn'], alpha=0.3)
- line_wn = ax_wn.plot(positions, mean_wn_pred[:, i], color=DECODER_TYPE_COLOR['wn'])[0]
- line_pr = ax_wn.plot(positions, mean_pr_exp_per_gene[:, i], color='grey')[0]
- if i == 0:
- ax_wn.set_ylabel('Gene Expression')
- ax_wn.set_yticks(np.arange(0, 1.05, .2)) # Set yticks for leftmost plot
- else:
- ax_wn.set_yticks([]) # Remove yticks for the other plots
- # SC plot
- ax_sc = axes[2 * i + 1]
- ax_sc.fill_between(positions, mean_pr_exp_per_gene[:, i] - std_pr_exp_per_gene[:, i],
- mean_pr_exp_per_gene[:, i] + std_pr_exp_per_gene[:, i], color='grey', alpha=0.3)
- ax_sc.fill_between(positions, mean_sc_pred[:, i] - std_sc_pred[:, i],
- mean_sc_pred[:, i] + std_sc_pred[:, i], color=DECODER_TYPE_COLOR['sc'], alpha=0.3)
- line_sc = ax_sc.plot(positions, mean_sc_pred[:, i], color=DECODER_TYPE_COLOR['sc'])[0]
- ax_sc.plot(positions, mean_pr_exp_per_gene[:, i], color='grey', linewidth=2) # Add grey line here
- ax_sc.set_yticks([]) # Remove yticks for SC plot
- # Add gene name in the bottom-right corner of each subplot (larger and bold)
- # ax_sc.text(0.95, 0.05, f'{gene}', transform=ax_sc.transAxes, ha='right', va='bottom', fontsize=22,
- # fontweight='bold')
- # ax_wn.text(0.95, 0.05, f'{gene}', transform=ax_wn.transAxes, ha='right', va='bottom', fontsize=22,
- # fontweight='bold')
- ax_sc.text(0.5, 0.85, f'{gene}', transform=ax_sc.transAxes, ha='center', va='bottom', fontsize=22,
- fontweight='bold')
- ax_wn.text(0.5, 0.85, f'{gene}', transform=ax_wn.transAxes, ha='center', va='bottom', fontsize=22,
- fontweight='bold')
- # Collect handles and labels for the legend
- if i == 0:
- handles.extend([line_pr, line_wn, line_sc])
- labels.extend([f'Pair Rule Gene Mean Expression', DECODER_NAMES["wn"]+" Prediction", DECODER_NAMES["sc"]+" Prediction"])
- # Add a single legend for all subplots outside of the plots
- fig.legend(handles, labels, loc='upper center', bbox_to_anchor=(0.5, 1.03), ncol=3)
- for ax in axes:
- ax.set_xlabel('Position (x/L)')
- # Adjust layout to make more space and remove excess white space
- plt.subplots_adjust(top=0.85, bottom=0.2, left=0.05, right=0.97, hspace=0.05, wspace=0.05)
- plt.show()
_figures.py at commit ee57cd5, no license · at the source
Overview
- School of Computer Science and Engineering, The Hebrew University,Jerusalem, Israel
- Racah Institute of Physics, The Hebrew University,Jerusalem, Israel
- Faculty of Medicine, The Hebrew University,Jerusalem, Israel
Abstract
During development, cells reliably establish their identities, a process that is enabled in part by positional information encoded in gene expression patterns. Previous works showed that cells in Drosophila embryos can utilize this information to decode their position along the anterior-posterior axis with a 1% embryo-length positional precision. However, this precision is insufficient to uniquely determine position, leading to a positional information gap. Here, we propose a neighborhood-informed information-theoretic framework which allows to quantitatively estimate the amount of information regarding position which exists in the microenvironment of each cell. We formulate how much additional information exists in neighboring cells as a function of spatial variation in gene expression. We show that the additional information encoded by local neighborhoods is sufficient to uniquely specify cell identities, closing the information gap on average across major patterning axes in Drosophila embryos, gastruloids, and the developing neural tube. Furthermore, neighborhood-informed decoders predict cell positions and downstream gene expression patterns more accurately than cell-independent decoders, resulting in lower decoding variability, which is maintained in mutant Drosophila embryos. Our results provide a basis for the analysis of cellular decision-making in the context of their microenvironments.
Reproduced under the paper's license (CC BY), 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.
nitzanlab/Neighborhood-Informed-Positional-Information
ee57cd5673b5a6c0aae81d49241e87d49c764ac9, 22 January 2025Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
13 files
- data/
Data.py , Python, 137 lines - data/
WildTypeDrosophila.py , Python, 149 lines, 2 matches - data/
_data.py , Python, 153 lines - data/
_preprocessing.py , Python, 90 lines - main.py, Python, 28 lines
- src/
_constants.py , Python, 98 lines, 2 matches - src/
_create_datasets.py , Python, 64 lines - src/
_figures.py , Python, 148 lines, 4 matches - src/
_imports.py , Python, 21 lines - src/
_utils.py , Python, 183 lines - src/
_visualizations.py , Python, 864 lines - test_results_analysis/
TestResults.py , Python, 116 lines, 2 matches - README, Text, 59 lines
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;
- 12 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
Data links
- ebi.ac.uk/
biostudies/ , EMBL-EBI; found in the notessourcedata
Data availability
The computer code produced in this study is available on GitHub (https://
The source data of this paper are collected in the following database record: biostudies:S-SCDT-10_103
Reproduced under the paper's license (CC BY), 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, 3 keywords, 7 MeSH terms, 1 funder, 36 references.
Cite
This paper
Erez, M., Friedman, R., & Nitzan, M. (2026). Neighborhood-informed positional information for precise cell identity specification. Molecular systems biology, 22(7), 1118-1131. https://
BibTeX
@article{erez2026neighbo
author = {Erez, Michal and Friedman, Roy and Nitzan, Mor},
title = {{Neighborhood-informed positional information for precise cell identity specification}},
journal = {Molecular systems biology},
year = {2026},
month = may,
volume = {22},
number = {7},
pages = {1118--1131},
publisher = {Nature Publishing Group},
issn = {1744-4292},
doi = {10.1038/
url = {https://
pmid = {42086862},
pmcid = {PMC13328375}
}
RIS
TY - JOUR
AU - Erez, Michal
AU - Friedman, Roy
AU - Nitzan, Mor
TI - Neighborhood-informed positional information for precise cell identity specification
T2 - Molecular systems biology
J2 - Mol Syst Biol
PY - 2026
DA - 2026/
VL - 22
IS - 7
SP - 1118
EP - 1131
SN - 1744-4292
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Neighborhood-informed positional information for precise cell identity specification",
"container-title": "Molecular systems biology",
"author": [
{
"family": "Erez",
"given": "Michal"
},
{
"family": "Friedman",
"given": "Roy"
},
{
"family": "Nitzan",
"given": "Mor"
}
],
"container-title-short":
"volume": "22",
"issue": "7",
"page": "1118-1131",
"DOI": "10.1038/
"PMID": "42086862",
"PMCID": "PMC13328375",
"ISSN": "1744-4292",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
5
]
]
}
}
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.1098/rsif.2024.0414 [code]
- Dynamics of positional information in the vertebrate neural tube.Journal: Journal of the Royal Society, InterfaceIn common: 5 references
- [2] doi:10.1038/s41586-024-08453-2 [code]
- Mapping cells through time and space with moscot.Journal: NatureIn common: pandas, SciPy, Matplotlib, 1 other tool, author Mor Nitzan
- [3] doi:10.1038/s41587-023-01663-5 [code]
- scPrisma infers, filters and enhances topological signals in single-cell data using spectral template matching.Journal: Nature biotechnologyIn common: pandas, SciPy, Matplotlib, 1 other tool, author Mor Nitzan
- [4] doi:10.1371/journal.pcbi.1012508 [code]
- Dynamics of morphogen source formation in a growing tissue.Journal: PLoS computational biologyIn common: pandas, SciPy, Matplotlib, 1 other tool, 2 references
- [5] doi:10.1016/j.devcel.2022.02.020 [code]
- Force-generating apoptotic cells orchestrate avian neural tube bending.Journal: Developmental cellIn common: pandas, SciPy, Matplotlib, 1 other tool, 2 references
- [6] doi:10.1242/dev.204591 [code]
- An in vivo CRISPR screen in chick embryos reveals a role for MLLT3 in specification of neural cells from the caudal epiblast.Journal: Development (Cambridge, England)In common: pandas, SciPy, Matplotlib, 1 other tool, 2 references
- [7] doi:10.1038/s41592-024-02380-w [code]
- Inferring pattern-driving intercellular flows from single-cell and spatial transcriptomics.Journal: Nature methodsIn common: pandas, SciPy, Matplotlib, 1 other tool, 2 references
- [8] doi:10.1016/j.isci.2023.108398 [code]
- Information integration during bioelectric regulation of morphogenesis of the embryonic frog brain.Journal: iScienceIn common: pandas, SciPy, Matplotlib, 1 other tool, 2 references
- [9] doi:10.1371/journal.pcbi.1012473 [code]
- AI-powered simulation-based inference of a genuinely spatial-stochastic gene regulation model of early mouse embryogenesis.Journal: PLoS computational biologyIn common: SciPy, Matplotlib, NumPy, 2 references
- [10] doi:10.7554/elife.96980 [code]
- Heterogeneity of Sonic Hedgehog response dynamics and fate specification in single neural progenitors.Journal: eLifeIn common: 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: 1 repository of the authors' code, each at its verified commit and with its license, 12 scripts, and 10 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:28addf6892a6aee4…
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.1038/s44320-026-00211-y)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1038/s44320-026-00211-y.svg
:target: https://openscicode.org/badge/doi/10.1038/s44320-026-00211-y
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s44320-026-00211-y"><img src="https://openscicode.org/badge/doi/10.1038/s44320-026-00211-y.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".
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)
Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
