OSCR

Neighborhood-informed positional information for precise cell identity specification.

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 · 2 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
  1. [1] § Methods › Description of Drosophila data ↔ data/WildTypeDrosophila.py, lines 7–133 · score 0.89 · 40–44 min, 38–48 min, WT Drosophila, 40 min, 38 min, gap genes
  2. [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
  3. [3] § Methods › Description of Drosophila data ↔ src/_constants.py, lines 16–85 · score 0.61 · bcdE1, WT embryos, double, osk, neighborhood informed, cell independent
  4. [4] § Methods › Description of Drosophila data ↔ data/WildTypeDrosophila.py, lines 7–133 · score 0.60 · 38–48 min, 38 min, gap gene, Drosophila, embryos
  5. [5] § Results › Prediction of pair-rule gene expression ↔ src/_figures.py, lines 30–42 · score 0.58 · reconstruction error, neighborhood informed decoding, prediction error, AP axis, schematic, Eve
  6. [6] § Methods › Description of Drosophila data ↔ src/_constants.py, lines 16–85 · score 0.57 · bcdE1, Nos, Tsl, 55 min, 45 min, pair rule gene
  7. [7] § Results › Prediction of pair-rule gene expression ↔ src/_figures.py, lines 30–42 · score 0.56 · qualitative comparison, prediction error, AP axis, Eve, Prd, neighborhood informed
  8. [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
  9. [9] § Results › Short-range gene expression correlations close the positional information gap in the Drosophila embryo ↔ src/_figures.py, lines 2–26 · score 0.55 · schematic diagram, pairwise correlation, decoding maps, Hb, Kr, bits
  10. [10] § Results › Decoding position and predicting pair-rule stripes in mutant embryos ↔ src/_figures.py, lines 44–56 · score 0.53 · osk mutants, binned positions, Gap gene, prediction, Decoding, embryos

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

Python · 148 lines · 7.2 KB · no license · 4 matches

  1. from src._visualizations import *
  2. def plot_figure1_panels():
  3. """
  4. This figure presents the positional information encoded in neighboring positions in wild type Drosophila embryos
  5. This functions plots panels b,c,d,e,f,h, and i. Panels a and g are schematic diagrams drawn in biorender.com
  6. """
  7. ##panels b and c: gene expression correlations
  8. gene_expression_pairwise_correlation_plots()
  9. #panel d: positional information in bits
  10. plot_positional_information_in_bits()
  11. #
  12. # #panel e: decoding neighborhood-informed and cell independent given Kr expression
  13. plot_decoding_maps_comparison_wt(ONE_GENE_EXAMPLE_GENE, VMAXS_ONE_GENE, xlim=False) #True
  14. #
  15. # #panel f: decoding neighborhood-informed and cell independent give Kr, Gt, and Hb expression
  16. plot_decoding_maps_comparison_wt(THREE_GENES_EXAMPLE_GENES, VMAXS_THREE_GENES, xlim=False)
  17. #
  18. # #aggregated results - mean MAP error over positions and over wild type embryos, mean per number of genes used
  19. # #for decoding
  20. # #panel h:
  21. plot_position_MAP_error_all_gene_subsets()
  22. # # #same aggregation , but looking at the standard deviation of the position posterior distribution
  23. # # #neighborhood-informed vs cell-independent
  24. # # #panel i:
  25. plot_position_posterior_std_all_gene_subsets()
  26. def plot_figure2_and_related_supp_panels():
  27. """
  28. This figure presents pair-rule expression profile prediction given the position probabilistic decoder.
  29. We show both qualitatively, quantitivately across the AP axis, and aggregated summary results
  30. comparing neighborhood-informed decoding based vs cell-independent decoding based pair-rule expression profile predictions
  31. This function plots panels b,c,and d. Panel a is schematic and was drawn in biorender.com
  32. """
  33. ##pair rule prediction across AP axis - qualitative comparison
  34. #figure 2 panel b - Prd prediction and supplementary Run and Eve prediction
  35. pair_rule_prediction_across_positions()
  36. #figure 2 panel c -reconstruction error across AP axis, d - summary results - mean prediction error per pair-rule gene:
  37. plot_all_pr_genes_mean_prediction_error()
  38. def plot_figure3_panels():
  39. """
  40. This figure presents position decoding and pair-rule expression prediction results
  41. for Osk mutant background embryos
  42. :return:
  43. """
  44. plot_wt_gap_gene()
  45. plot_all_mutant_results(mutant_type='osk')
  46. ##mutant pair-rule prediction and errors:
  47. plot_mutant_pr_predictions_and_errors(mutant_type='osk', plot_binned_position_errors=True)
  48. plot_one_mutation_expression_correlation()
  49. def plot_figure5_panels():
  50. for mutant_type in MUTANT_TYPES:
  51. print(mutant_type)
  52. plot_all_mutant_results(mutant_type)
  53. def plot_figure6_panels():
  54. for mutant_type in MUTANT_TYPES:
  55. print(mutant_type)
  56. fig, axes = plt.subplots(1, 6, figsize=(
  57. 24, 5)) # 1 row, 6 columns, wider width (sharex=False and sharey=False by default)
  58. handles = [] # Store handles for the legend
  59. labels = []
  60. mean_wt_pr_exp = get_mean_wt_pr_per_position(EDGE_TRIM)
  61. mutant_pr = get_mutant_pr_data(mutant_type)
  62. mutant_pr_arr = reformat_exp_data_to_arr(mutant_pr)[:, EDGE_TRIM:-EDGE_TRIM, :]
  63. min_vals = np.min(mutant_pr_arr, axis=1, keepdims=True)
  64. max_vals = np.max(mutant_pr_arr, axis=1, keepdims=True)
  65. # Normalize the data
  66. mutant_pr_arr_normed = (mutant_pr_arr - min_vals) / (max_vals - min_vals)
  67. mean_pr_exp_per_gene = np.mean(mutant_pr_arr_normed, axis=0)[1:-1, :]
  68. std_pr_exp_per_gene = np.std(mutant_pr_arr_normed, axis=0)[1:-1, :]
  69. wn_map = TestResults.from_pickle(DROSO_RES_DIR, f'{mutant_type}_wn', GAP_GENES)
  70. sc_map = TestResults.from_pickle(DROSO_RES_DIR, f'{mutant_type}_sc', GAP_GENES)
  71. sc_pr_pred = sc_map.expected_pr_exp(mean_wt_pr_exp)[:, 1:-1, :]
  72. wn_pr_pred = wn_map.expected_pr_exp(mean_wt_pr_exp[1:-1, :])
  73. positions = np.linspace(0.1, 0.9, sc_pr_pred.shape[1])
  74. mean_wn_pred = np.mean(wn_pr_pred, axis=0)
  75. std_wn_pred = np.std(wn_pr_pred, axis=0)
  76. mean_sc_pred = np.mean(sc_pr_pred, axis=0)
  77. std_sc_pred = np.std(sc_pr_pred, axis=0)
  78. for i, gene in enumerate(PAIR_RULE_GENES[:3]):
  79. # WN plot
  80. ax_wn = axes[2 * i]
  81. ax_wn.fill_between(positions, mean_pr_exp_per_gene[:, i] - std_pr_exp_per_gene[:, i],
  82. mean_pr_exp_per_gene[:, i] + std_pr_exp_per_gene[:, i], color='grey', alpha=0.3)
  83. ax_wn.fill_between(positions, mean_wn_pred[:, i] - std_wn_pred[:, i],
  84. mean_wn_pred[:, i] + std_wn_pred[:, i], color=DECODER_TYPE_COLOR['wn'], alpha=0.3)
  85. line_wn = ax_wn.plot(positions, mean_wn_pred[:, i], color=DECODER_TYPE_COLOR['wn'])[0]
  86. line_pr = ax_wn.plot(positions, mean_pr_exp_per_gene[:, i], color='grey')[0]
  87. if i == 0:
  88. ax_wn.set_ylabel('Gene Expression')
  89. ax_wn.set_yticks(np.arange(0, 1.05, .2)) # Set yticks for leftmost plot
  90. else:
  91. ax_wn.set_yticks([]) # Remove yticks for the other plots
  92. # SC plot
  93. ax_sc = axes[2 * i + 1]
  94. ax_sc.fill_between(positions, mean_pr_exp_per_gene[:, i] - std_pr_exp_per_gene[:, i],
  95. mean_pr_exp_per_gene[:, i] + std_pr_exp_per_gene[:, i], color='grey', alpha=0.3)
  96. ax_sc.fill_between(positions, mean_sc_pred[:, i] - std_sc_pred[:, i],
  97. mean_sc_pred[:, i] + std_sc_pred[:, i], color=DECODER_TYPE_COLOR['sc'], alpha=0.3)
  98. line_sc = ax_sc.plot(positions, mean_sc_pred[:, i], color=DECODER_TYPE_COLOR['sc'])[0]
  99. ax_sc.plot(positions, mean_pr_exp_per_gene[:, i], color='grey', linewidth=2) # Add grey line here
  100. ax_sc.set_yticks([]) # Remove yticks for SC plot
  101. # Add gene name in the bottom-right corner of each subplot (larger and bold)
  102. # ax_sc.text(0.95, 0.05, f'{gene}', transform=ax_sc.transAxes, ha='right', va='bottom', fontsize=22,
  103. # fontweight='bold')
  104. # ax_wn.text(0.95, 0.05, f'{gene}', transform=ax_wn.transAxes, ha='right', va='bottom', fontsize=22,
  105. # fontweight='bold')
  106. ax_sc.text(0.5, 0.85, f'{gene}', transform=ax_sc.transAxes, ha='center', va='bottom', fontsize=22,
  107. fontweight='bold')
  108. ax_wn.text(0.5, 0.85, f'{gene}', transform=ax_wn.transAxes, ha='center', va='bottom', fontsize=22,
  109. fontweight='bold')
  110. # Collect handles and labels for the legend
  111. if i == 0:
  112. handles.extend([line_pr, line_wn, line_sc])
  113. labels.extend([f'Pair Rule Gene Mean Expression', DECODER_NAMES["wn"]+" Prediction", DECODER_NAMES["sc"]+" Prediction"])
  114. # Add a single legend for all subplots outside of the plots
  115. fig.legend(handles, labels, loc='upper center', bbox_to_anchor=(0.5, 1.03), ncol=3)
  116. for ax in axes:
  117. ax.set_xlabel('Position (x/L)')
  118. # Adjust layout to make more space and remove excess white space
  119. plt.subplots_adjust(top=0.85, bottom=0.2, left=0.05, right=0.97, hspace=0.05, wspace=0.05)
  120. plt.show()

_figures.py at commit ee57cd5, no license · at the source

Overview

Authors: Michal Erez1, Roy Friedman1, Mor Nitzan1,2,3
  1. School of Computer Science and Engineering, The Hebrew University,Jerusalem, Israel
  2. Racah Institute of Physics, The Hebrew University,Jerusalem, Israel
  3. Faculty of Medicine, The Hebrew University,Jerusalem, Israel
Institutions: Hebrew University of Jerusalem (Israel)
Journal: Molecular systems biology, volume 22, issue 7, pages 1118-1131
Dates: received 10 February 2025; accepted 15 April 2026; published online 5 May 2026; in print July 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1038/s44320-026-00211-y · PMID 42086862 · PMCID PMC13328375 · OpenAlex W4408608044
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: drosophila (organism)
Methods: Connectivity, Machine learning
Keywords: Chromatin, Transcription & Genomics, Computational Biology, Development
MeSH: Body Patterning*, Drosophila melanogaster*, Animals, Drosophila, Drosophila Proteins, Embryo, Nonmammalian, Gene Expression Regulation, Developmental (* major topic)
Topic: Cell Image Analysis Techniques (Biophysics, Biochemistry, Genetics and Molecular Biology), according to OpenAlex
Citations: not cited yet (Europe PMC); 37 references in the paper

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

License: none: the authors keep all their rights
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: ee57cd5673b5a6c0aae81d49241e87d49c764ac9, 22 January 2025
Languages: Python (12)
Size: 13 files, 12 scripts
Software Heritage: not archived
Found in: “Data availability”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: Matplotlib (2 files), NumPy (1 file), pandas (1 file), SciPy (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
13 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;
  • 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

Data availability

The computer code produced in this study is available on GitHub (https://github.com/nitzanlab/Neighborhood-Informed-Positional-Information).

The source data of this paper are collected in the following database record: biostudies:S-SCDT-10_1038-S44320-026-00211-y (https://www.ebi.ac.uk/biostudies/sourcedata/studies/S-SCDT-10_1038-S44320-026-00211-y).

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://doi.org/10.1038/s44320-026-00211-y

BibTeX

@article{erez2026neighborhood,
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/s44320-026-00211-y},
url = {https://doi.org/10.1038/s44320-026-00211-y},
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/05/05
VL - 22
IS - 7
SP - 1118
EP - 1131
SN - 1744-4292
PB - Nature Publishing Group
DO - 10.1038/s44320-026-00211-y
UR - https://doi.org/10.1038/s44320-026-00211-y
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s44320-026-00211-y",
"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": "Mol Syst Biol",
"volume": "22",
"issue": "7",
"page": "1118-1131",
"DOI": "10.1038/s44320-026-00211-y",
"PMID": "42086862",
"PMCID": "PMC13328375",
"ISSN": "1744-4292",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s44320-026-00211-y",
"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.7554/elife.96980 [code]
Heterogeneity of Sonic Hedgehog response dynamics and fate specification in single neural progenitors.
Journal: eLife
In common: 3 references
[2] doi:10.1371/journal.pbio.3003960 [code]
Brachyury expression levels predict lineage potential and axis-forming ability of in vitro-derived neuromesodermal progenitors.
Journal: PLoS biology
In common: pandas, SciPy, Matplotlib, 1 other tool, 1 reference
[3] doi:10.1093/pnasnexus/pgag055 [code]
Comparative transcriptomics reveals differences in cortical cell type organization between metatherian and eutherian mammals.
Journal: PNAS nexus
In common: pandas, SciPy, Matplotlib, 1 other tool, 1 reference
[4] doi:10.1038/s41586-026-10214-2 [code]
Multidimensional profiling of heterogeneity in supratentorial ependymomas.
Journal: Nature
In common: pandas, SciPy, Matplotlib, 1 other tool, 1 reference
[5] 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: pandas, SciPy, Matplotlib, 1 other tool, 1 reference
[6] doi:10.1093/bib/bbag298 [code]
Empowering multifaceted analysis of spatial transcriptomics data with RGAST.
Journal: Briefings in bioinformatics
In common: pandas, SciPy, Matplotlib, 1 other tool, 1 reference
[7] doi:10.1101/gad.353090.125 [code]
Neural stem cell epigenomes and fate bias are temporally coordinated during mouse cortical development.
Journal: Genes & development
In common: SciPy, Matplotlib, NumPy, 1 reference
[8] doi:10.1371/journal.pbio.3003953 [code]
Dynamic Landscape Analysis of cell fate decisions provides predictive models of neural development from single-cell data.
Journal: PLoS biology
In common: pandas, Matplotlib, NumPy, 1 reference
[9] doi:10.1371/journal.pbio.3003959 [code]
Recurrent synapses between CO2-sensitive olfactory sensory neurons enable robust CO2 detection in Aedes aegypti mosquitoes.
Journal: PLoS biology
In common: pandas, SciPy, Matplotlib, 1 other tool, drosophila
[10] doi:10.1371/journal.pcbi.1014657 [code]
Population morphology implies a common developmental blueprint for Drosophila motion detectors.
Journal: PLoS computational biology
In common: pandas, SciPy, Matplotlib, 1 other tool, drosophila

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.