Dimorphic neural network architecture prioritizes sexual-related behaviors in male <i>Caenorhabditis elegans</i>.
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 · 175 lines · 7.5 KB · no license
- import copy
- # 线虫及突触
- nematode_type = 'hermaphrodite' # 'hermaphrodite' 或 'male'
- synapse_type = 'all' # 'chemical' 或 'gap_symmetric' 或 'all'
- if nematode_type == 'hermaphrodite':
- neuron_list = []
- with open('./connection_data/hermaphrodite_neuron_list.csv') as file_object:
- for line in file_object:
- neuron_list.append(line.replace('\n', ''))
- neuron_number = len(neuron_list)
- pharynx_neuron = neuron_list[0:14]
- sensory_neuron = neuron_list[14:53]
- inter_neuron = neuron_list[53:98]
- motor_neuron = neuron_list[98:122]
- neuron_connection = [[0 for _ in range(neuron_number)] for _ in range(neuron_number)]
- if synapse_type == 'chemical':
- with open('./connection_data/hermaphrodite_chemical_connection.csv') as file_object:
- i = 0
- for line in file_object:
- a = line.split(',')
- for j in range(neuron_number):
- neuron_connection[i][j] = int(a[j].replace('\n', ''))
- i += 1
- elif synapse_type == 'gap_symmetric':
- with open('./connection_data/hermaphrodite_gap_symmetric_connection.csv') as file_object:
- i = 0
- for line in file_object:
- a = line.split(',')
- for j in range(neuron_number):
- neuron_connection[i][j] = int(a[j].replace('\n', ''))
- i += 1
- elif synapse_type == 'all':
- with open('./connection_data/hermaphrodite_all_connection.csv') as file_object:
- i = 0
- for line in file_object:
- a = line.split(',')
- for j in range(neuron_number):
- neuron_connection[i][j] = int(a[j].replace('\n', ''))
- i += 1
- else:
- raise ValueError(
- '未定义的连接类型。允许输入的连接类型为chemical或gap_symmetric或all,但实际的输入为{}'.format(synapse_type)
- )
- elif nematode_type == 'male':
- neuron_list = []
- with open('./connection_data/male_neuron_list.csv') as file_object:
- for line in file_object:
- neuron_list.append(line.replace('\n', ''))
- neuron_number = len(neuron_list)
- pharynx_neuron = neuron_list[0:14]
- sensory_neuron = neuron_list[14:53] + neuron_list[120:121] + neuron_list[122:149]
- inter_neuron = neuron_list[53:98] + neuron_list[121:122] + neuron_list[149:161]
- motor_neuron = neuron_list[98:120]
- neuron_connection = [[0 for _ in range(neuron_number)] for _ in range(neuron_number)]
- if synapse_type == 'chemical':
- with open('./connection_data/male_chemical_connection.csv') as file_object:
- i = 0
- for line in file_object:
- a = line.split(',')
- for j in range(neuron_number):
- neuron_connection[i][j] = int(a[j].replace('\n', ''))
- i += 1
- elif synapse_type == 'gap_symmetric':
- with open('./connection_data/male_gap_symmetric_connection.csv') as file_object:
- i = 0
- for line in file_object:
- a = line.split(',')
- for j in range(neuron_number):
- neuron_connection[i][j] = int(a[j].replace('\n', ''))
- i += 1
- elif synapse_type == 'all':
- with open('./connection_data/male_all_connection.csv') as file_object:
- i = 0
- for line in file_object:
- a = line.split(',')
- for j in range(neuron_number):
- neuron_connection[i][j] = int(a[j].replace('\n', ''))
- i += 1
- else:
- raise ValueError(
- '未定义的连接类型。允许输入的连接类型为chemical或gap_symmetric或all,但实际的输入为{}'.format(synapse_type)
- )
- else:
- raise ValueError(
- '未定义的线虫类型。允许输入的线虫类型为hermaphrodite或male,但实际的输入为{}'.format(nematode_type)
- )
- # 神经元参数
- c = 1.0 # 细胞膜电容
- g_l = 0.03 # 泄漏电导
- e_l = -54.387 # 泄漏反转电位
- g_na = 120. # 钠离子通道电导
- e_na = 50. # 钠离子通道反转电位
- g_k = 36. # 钾离子通道电导
- e_k = -77. # 钾离子通道反转电位
- # 神经元膜电位
- syn_rate = 100.
- # 模拟时间及步长
- total_time = 10
- each_step = 0.01
- total_step = int(total_time / each_step)
- # 输入电压
- volt_set = 60.
- for neuron in range(neuron_number):
- neuron_potential = [-60. for _ in range(neuron_number)]
- neuron_potential[neuron] = volt_set
- # 运行
- with open('./d/{}_{}_output.csv'.format(neuron_list[neuron], nematode_type), 'a') as file_object:
- for i in range(total_step):
- # 导出数据
- for j in range(neuron_number):
- if j == neuron_number - 1:
- file_object.write(str(neuron_potential[j]) + '\n')
- else:
- file_object.write(str(neuron_potential[j]) + ',')
- neuron_potential_cash = copy.deepcopy(neuron_potential)
- for j in range(neuron_number):
- if j == neuron:
- neuron_potential_cash[j] = volt_set
- continue
- sy_current = 0
- for k in range(neuron_number):
- if neuron_connection[k][j] != 0:
- sy_current = sy_current + neuron_connection[k][j] * syn_rate * (
- neuron_potential[k] - neuron_potential[j])
- k1 = (-1 * g_l * (neuron_potential[j] - e_l) - g_k * (neuron_potential[j] - e_k) - g_na * (
- neuron_potential[j] - e_na) + sy_current) / c
- neuron_potential[j] = neuron_potential_cash[j] + k1 * each_step * 0.5
- sy_current = 0
- for k in range(neuron_number):
- if neuron_connection[k][j] != 0:
- sy_current = sy_current + neuron_connection[k][j] * syn_rate * (
- neuron_potential[k] - neuron_potential[j])
- k2 = (-1 * g_l * (neuron_potential[j] - e_l) - g_k * (neuron_potential[j] - e_k) - g_na * (
- neuron_potential[j] - e_na) + sy_current) / c
- neuron_potential[j] = neuron_potential_cash[j] + k2 * each_step * 0.5
- sy_current = 0
- for k in range(neuron_number):
- if neuron_connection[k][j] != 0:
- sy_current = sy_current + neuron_connection[k][j] * syn_rate * (
- neuron_potential[k] - neuron_potential[j])
- k3 = (-1 * g_l * (neuron_potential[j] - e_l) - g_k * (neuron_potential[j] - e_k) - g_na * (
- neuron_potential[j] - e_na) + sy_current) / c
- neuron_potential[j] = neuron_potential_cash[j] + k3 * each_step
- sy_current = 0
- for k in range(neuron_number):
- if neuron_connection[k][j] != 0:
- sy_current = sy_current + neuron_connection[k][j] * syn_rate * (
- neuron_potential[k] - neuron_potential[j])
- k4 = (-1 * g_l * (neuron_potential[j] - e_l) - g_k * (neuron_potential[j] - e_k) - g_na * (
- neuron_potential[j] - e_na) + sy_current) / c
- neuron_potential[j] = neuron_potential_cash[j]
- neuron_potential_cash[j] = neuron_potential_cash[j] + (k1 + 2 * k2 + 2 * k3 + k4) * each_step / 6.
- neuron_potential = copy.deepcopy(neuron_potential_cash)
- print(neuron_list[neuron] + '完成' + str(round(i / total_step * 100, 2)) + '%')
Source code 1.py, no license · at the source
Overview
- Department of Systems Science, Faculty of Arts and Sciences, Beijing Normal University, Zhuhai, China
- International Academic Center of Complex Systems, Beijing Normal University, Zhuhai, China
- School of Systems Science, Beijing Normal University, Beijing, China
- Huitong College, Beijing Normal University, Zhuhai, China
- Department of Physiology, West China School of Basic Medical Sciences and Forensic Medicine, Sichuan University, Chengdu, China
- Department of Neuroscience, City University of Hong Kong, Hong Kong, China
Abstract
Neural network architecture determines its functional output. However, the detailed mechanisms are not well characterized. In this study, we focused on the neural network architectures of male and hermaphrodite Caenorhabditis elegans and the association with sexually dimorphic behaviors. We applied graph theory and computational neuroscience methods to systematically discern the features of these two neural networks. Our findings revealed that a small percentage of sexual-specific neurons exerted dominance throughout the entire male neural network, suggesting males prioritized sexual-related behavior outputs. Based on the structural and dynamical characteristics of two complete neural networks, sub-networks containing sex-specific neurons and their immediate neighbors, or sub-networks exclusively comprising sex-shared neurons, we predicted dimorphic behavioral outcomes for males and hermaphrodites. To verify the prediction, we performed behavioral and calcium imaging experiments and dissected a circuit that is specific for the increased spontaneous local search in males for mate-searching. Our research sheds light on the neural circuits that underlie sexually dimorphic behaviors in C. elegans and provides significant insights into the interconnected relationship between network architecture and functional outcomes at the whole-brain level.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above.
supp:PMC13095209/elife-102309-code1.zip
Availability: 1 check, the latest on 29 September 2026: the link answers (HTTP 200)
- 29 September 2026: the link answers (HTTP 200)
1 file
- eLife-VOR-RA-2024-102309
/ , Python, 175 linesSource code 1.py
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 1 script, each with its path and the digest of its content;
- no match between paragraphs and code yet;
- 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
All data supporting the findings of this study are available within the article and its Supplementary Information files.
The following previously published dataset was used:
Cook SJ, Jarrell TA, Brittin CA, Wang Y, Bloniarz AE, Yakovlev MA, Nguyen KCQ, Tang LTH, Bayer EA, Duerr JS, Büow HZ, Hobert O, Hall DH, Emmons SW. 2019. Adult hermaphrodite and adult male Data. WormWiring. emmonslab
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, 29 September 2026: the first record
Recorded: type, language, journal, volume, pages, dates, 15 authors, 1 keyword, 6 MeSH terms, 1 funder, 89 references.
Cite
This paper
Wang, X., Liu, H., Yang, W., Yang, J., Sun, X., Liu, Q., Zhu, Y., Sun, Y., Liu, C., Shi, G., Liu, Q., Zhang, K., Di, Z., Yang, W., & Liu, H. (2026). Dimorphic neural network architecture prioritizes sexual-related behaviors in male &
BibTeX
@article{wang2026dimorph
author = {Wang, Xuebin and Liu, Hanzhang and Yang, Wenjing and Yang, Jingxuan and Sun, Xuehong and Liu, Qiuhan and Zhu, Ying and Sun, Yinghao and Liu, Chunxiuzi and Shi, Guiyuan and Liu, Qiang and Zhang, Ke and Di, Zengru and Yang, Wenxing and Liu, He},
title = {{Dimorphic neural network architecture prioritizes sexual-related behaviors in male \&
journal = {eLife},
year = {2026},
month = apr,
volume = {14},
pages = {RP102309},
publisher = {eLife Sciences Publications, Ltd},
issn = {2050-084X},
doi = {10.7554/
url = {https://
pmid = {42007675},
pmcid = {PMC13095209}
}
RIS
TY - JOUR
AU - Wang, Xuebin
AU - Liu, Hanzhang
AU - Yang, Wenjing
AU - Yang, Jingxuan
AU - Sun, Xuehong
AU - Liu, Qiuhan
AU - Zhu, Ying
AU - Sun, Yinghao
AU - Liu, Chunxiuzi
AU - Shi, Guiyuan
AU - Liu, Qiang
AU - Zhang, Ke
AU - Di, Zengru
AU - Yang, Wenxing
AU - Liu, He
TI - Dimorphic neural network architecture prioritizes sexual-related behaviors in male &
T2 - eLife
J2 - eLife
PY - 2026
DA - 2026/
VL - 14
SP - RP102309
SN - 2050-084X
PB - eLife Sciences Publications, Ltd
DO - 10.7554/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.7554/
"type": "article-journal",
"title": "Dimorphic neural network architecture prioritizes sexual-related behaviors in male &
"container-title": "eLife",
"author": [
{
"family": "Wang",
"given": "Xuebin"
},
{
"family": "Liu",
"given": "Hanzhang"
},
{
"family": "Yang",
"given": "Wenjing"
},
{
"family": "Yang",
"given": "Jingxuan"
},
{
"family": "Sun",
"given": "Xuehong"
},
{
"family": "Liu",
"given": "Qiuhan"
},
{
"family": "Zhu",
"given": "Ying"
},
{
"family": "Sun",
"given": "Yinghao"
},
{
"family": "Liu",
"given": "Chunxiuzi"
},
{
"family": "Shi",
"given": "Guiyuan"
},
{
"family": "Liu",
"given": "Qiang"
},
{
"family": "Zhang",
"given": "Ke"
},
{
"family": "Di",
"given": "Zengru"
},
{
"family": "Yang",
"given": "Wenxing"
},
{
"family": "Liu",
"given": "He"
}
],
"container-title-short":
"volume": "14",
"page": "RP102309",
"DOI": "10.7554/
"PMID": "42007675",
"PMCID": "PMC13095209",
"ISSN": "2050-084X",
"publisher": "eLife Sciences Publications, Ltd",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
20
]
]
}
}
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.1126/sciadv.adv9106
- Decoding sexual dimorphism of the sex-shared nervous system at single-neuron resolution.Journal: Science advancesIn common: C. elegans, 10 references
- [2] doi:10.1371/journal.pone.0298105 [code]
- Biophysical modeling of the whole-cell dynamics of C. elegans motor and interneurons families.Journal: PloS oneIn common: C. elegans, 7 references, author Qiang Liu
- [3] doi:10.1038/s41467-026-69392-2 [code]
- Efficient pheromone navigation via antagonistic detectors in Caenorhabditis elegans male.Journal: Nature communicationsIn common: C. elegans, 10 references
- [4] doi:10.1126/sciadv.abi9071 [code]
- Forgetting generates a novel state that is reactivatable.Journal: Science advancesIn common: 6 references, author He Liu
- [5] doi:10.1016/j.cub.2022.08.038
- Reprogramming the topology of the nociceptive circuit in C. elegans reshapes sexual behavior.Journal: Current biology : CBIn common: C. elegans, 7 references
- [6] doi:10.1016/j.celrep.2025.116016
- Single-nucleus neuronal transcriptional profiling of male C. elegans uncovers regulators of sex-specific and sex-shared behaviors.Journal: Cell reportsIn common: C. elegans, 7 references
- [7] doi:10.1038/s41593-026-02257-5 [code]
- Neural sequences underlying directed turning in Caenorhabditis elegans.Journal: Nature neuroscienceIn common: C. elegans, systems, 7 references
- [8] doi:10.1093/pnasnexus/pgae032
- Unraveling the hierarchical structure of posture and muscle activity changes during mating of <i>Caenorhabditis elegans</
i>. Journal: PNAS nexusIn common: C. elegans, 6 references - [9] doi:10.1016/j.isci.2024.109910 [code]
- Male-specific behavioral and transcriptomic changes in aging &
lt;i& gt;C. elegans& lt;/ i& gt; neurons. Journal: iScienceIn common: C. elegans, 6 references - [10] doi:10.7554/elife.95607 [code]
- Generation of biophysical neuron model parameters from recorded electrophysiological responses.Journal: eLifeIn common: C. elegans, 3 references, author Qiang Liu
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 1 script, and 0 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:1b6a10ba78a9a41a…
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.7554/elife.102309)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.7554/elife.102309.svg
:target: https://openscicode.org/badge/doi/10.7554/elife.102309
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.7554/elife.102309"><img src="https://openscicode.org/badge/doi/10.7554/elife.102309.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.
Report a mismatch between the code and the paper · Report a code error (signed in)
Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.
Report a reproduction failure (signed in)
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
