Peripheral anatomy and central connectivity of proprioceptive sensory neurons in the <i>Drosophila</i> wing.
The 2 matches
- [1] § Methods › Reconstructed axon morphology clusters ↔ similarity.ipynb, lines 69–80 · score 0.64 · AgglomerativeClustering, cosine_similarity, dendrogram, threshold
- [2] § Results › Comprehensive reconstruction of wing axons in the FANC connectome ↔ heatmap.ipynb, lines 66–112 · score 0.52 · Postsynaptic neurons, descending, efferent, unproofread, sensory neurons, classified
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 · 198 lines · 5.6 KB · MIT · 1 match
- # %%
- # using dataframes stored in /dfs, compute cosine similarity between each left ADMN sensory neuron
- # %%
- # import packages
- import pandas as pd
- import numpy as np
- from matplotlib import pyplot,patches
- import matplotlib.pyplot as plt
- import seaborn as sns
- import cmocean
- from sklearn.metrics.pairwise import cosine_similarity
- from scipy.cluster.hierarchy import dendrogram
- from sklearn.cluster import AgglomerativeClustering
- # %%
- # call in sn_connectivity dataframe
- full_df = pd.read_pickle("dfs/sn_connectivity.pkl")
- # %%
- # limit to connections with five synapses
- # long - 2 min 12 sec
- # function from tuthill-lab/Lesser_Azevedo_2023
- def group_and_count_inputs(df, thresh):
- # count the number of synapses between pairs of pre and post synaptic inputs
- syn_in_conn=df.groupby(['pre_pt_root_id','post_pt_root_id']).transform(len)['id']
- # save this result in a new column and reorder the index
- df['syn_in_conn']=syn_in_conn
- df = df[['id', 'pre_pt_root_id','post_pt_root_id','score','syn_in_conn']].sort_values('syn_in_conn', ascending=False).reset_index()
- # Filter out small synapses between pairs of neurons and now print the shape
- df = df[df['syn_in_conn']>=thresh]
- # print(df.shape)
- return df
- df = group_and_count_inputs(full_df,thresh=5)
- # %%
- def plot_dendrogram(model, **kwargs):
- # create the counts of samples under each node
- counts = np.zeros(model.children_.shape[0])
- n_samples = len(model.labels_)
- for i, merge in enumerate(model.children_):
- current_count = 0
- for child_idx in merge:
- if child_idx < n_samples:
- current_count += 1 # leaf node
- else:
- current_count += counts[child_idx - n_samples]
- counts[i] = current_count
- linkage_matrix = np.column_stack(
- [model.children_, model.distances_, counts]
- ).astype(float)
- # Plot the corresponding dendrogram
- dendrogram(linkage_matrix, **kwargs)
- dend_dict = dendrogram(linkage_matrix, **kwargs)
- # sorted order of indices found through clustering
- clustered_order = dend_dict['ivl']
- return clustered_order
- # %%
- def organize_by_cos_long(map_df):
- adj = pd.crosstab(map_df['pre_pt_root_id'],map_df['post_pt_root_id'])
- sim_mat_temp = cosine_similarity(adj.to_numpy())
- model = AgglomerativeClustering(distance_threshold=0, n_clusters=None).fit(sim_mat_temp)
- clustered_order = plot_dendrogram(model)#, truncate_mode="level", p=12) # p truncate mode
- clustered_order = np.array(clustered_order).astype(int) # convert strins into integers
- reordered_df = adj.iloc[clustered_order,:]
- sim_mat = cosine_similarity(reordered_df.to_numpy())
- return reordered_df
- # %%
- # ordered adjacency matrix
- adj = pd.crosstab(df.pre_pt_root_id,df.post_pt_root_id)
- adj_ordered = organize_by_cos_long(df)
- # %%
- # visualize
- sim_mat = cosine_similarity(adj_ordered.to_numpy())
- fig = plt.figure(1, figsize = [6,5])
- cmap = cmocean.cm.gray_r
- ax = sns.heatmap(sim_mat, cmap = cmap)# xticklabels=mn_ids, cmap = cmap)
- cbar = ax.collections[0].colorbar
- ax.xaxis.set_ticks_position('bottom')
- plt.xlabel('', fontsize =16)
- plt.title('SN sim', fontsize = 18)
- # plt.show()
- # plt.savefig('../SN_simmat_0725.svg', format='svg', bbox_inches='tight')
- # %%
- # plot in-group out-group cosine similarity
- sn_table = pd.read_pickle('dfs/sn_table.pkl')
- dict_root_cluster = dict(zip(sn_table.pt_root_id,sn_table.classification_system))
- adj_ordered['cluster'] = adj_ordered.index.map(dict_root_cluster)
- adj_ordered
- # %%
- def plot_similarity_distributions(similarity, labels):
- labels = np.array(labels)
- within = []
- between = []
- for i in range(len(labels)):
- for j in range(i + 1, len(labels)):
- if labels[i] == labels[j]:
- within.append(similarity[i, j])
- else:
- between.append(similarity[i, j])
- # plt.hist(between, bins=30, alpha=0.6, label="Between-cluster")
- # plt.hist(within, bins=30, alpha=0.6, label="Within-cluster")
- # plt.legend()
- # plt.xlabel("Similarity")
- # plt.ylabel("Count")
- # plt.title("Within vs Between Cluster Similarities")
- # plt.show()
- return within, between
- # %%
- within, between = plot_similarity_distributions(sim_mat,adj_ordered['cluster'])
- df = pd.DataFrame({
- "similarity": np.concatenate([within, between]),
- "group": (["Within"] * len(within)) + (["Between"] * len(between))
- })
- # %%
- # Violin plot
- sns.violinplot(
- data=df,
- x="group", y="similarity",
- density_norm="count",
- inner=None, # remove inner bars, we'll add dots instead
- cut=0 # don't extend beyond data range
- )
- # Add jittered individual points
- sns.stripplot(
- data=df,
- x="group", y="similarity",
- color="black", alpha=0.5, jitter=0.2, size=2,
- )
- plt.title("Within vs Between Cluster Similarities")
- plt.xlabel("")
- plt.ylabel("Similarity")
- plt.tight_layout()
- plt.savefig('../within_sim_1023.svg', format='svg', bbox_inches='tight')
- plt.show()
- # %%
- # permutation test to compare within- and between- cluster pairwise values
- from scipy.stats import permutation_test
- np.random.seed(0)
- within = np.array([df[df.group.isin(['Within'])].similarity])
- between = np.array([df[df.group.isin(['Between'])].similarity])
- within = np.asarray(within).ravel()
- between = np.asarray(between).ravel()
- def stat_func(a, b):
- return np.mean(a) - np.mean(b)
- res = permutation_test(
- (within, between),
- statistic=stat_func,
- permutation_type='independent',
- n_resamples=10000,
- alternative='greater',
- vectorized=False
- )
- print("Observed statistic:", res.statistic)
- print("p-value:", res.pvalue)
- # %%
similarity.ipynb at commit 5b84c07, under MIT · at the source
Overview
Abstract
Recent advances in electron microscopy (EM) and automated image segmentation have produced synaptic wiring diagrams of the Drosophila central nervous system. A limitation of existing fly connectome datasets is that most sensory neurons are excised during sample preparation, creating a gap between the central and peripheral nervous systems. Here, we bridge this gap by reconstructing wing sensory axons from the Female Adult Nerve Cord (FANC) EM dataset and mapping them to peripheral sensory structures using genetic tools and light microscopy. We confirm the location and identity of known wing mechanosensory neurons and identify previously uncharacterized axons, including a novel population of putative proprioceptors that make monosynaptic connections onto wing steering motor neurons. We also find that adjacent campaniform sensilla on the wing have distinct axon morphologies and postsynaptic partners, suggesting a high degree of specialization in axon pathfinding and synaptic partner matching. The peripheral location and central projections of wing sensory neurons are stereotyped across flies, allowing this wing proprioceptor atlas and genetic toolkit to guide analysis of other fly connectome datasets.
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 2 matches between paragraphs and lines of code.
ellenlesser/lesser_elife_2025
5b84c07798969d7f93a8b658e23994f3f6629b18, 26 February 2026Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
4 files
- heatmap.ipynb, Jupyter, 146 lines, 1 match
- similarity.ipynb, Jupyter, 198 lines, 1 match
- LICENSE, License, 21 lines
- README.md, Text, 4 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;
- 2 scripts, each with its path and the digest of its content;
- 2 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
VNC images are publicly available via FlyLight (https://
The following dataset was generated:
Tuthill JC. 2025. Peripheral anatomy and central connectivity of proprioceptive sensory neurons in the Drosophila wing. Dryad Digital Repository.
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, 30 September 2026: the first record
Recorded: type, language, journal, volume, pages, dates, 3 authors, 1 keyword, 11 MeSH terms, 4 funders, 63 references, 38 RRIDs.
Cite
This paper
Lesser, E., Moussa, A. J., & Tuthill, J. C. (2026). Peripheral anatomy and central connectivity of proprioceptive sensory neurons in the &
BibTeX
@article{lesser2026perip
author = {Lesser, Ellen and Moussa, Anthony J and Tuthill, John C},
title = {{Peripheral anatomy and central connectivity of proprioceptive sensory neurons in the \&
journal = {eLife},
year = {2026},
month = mar,
volume = {14},
pages = {RP107867},
publisher = {eLife Sciences Publications, Ltd},
issn = {2050-084X},
doi = {10.7554/
url = {https://
pmid = {41805047},
pmcid = {PMC12975126}
}
RIS
TY - JOUR
AU - Lesser, Ellen
AU - Moussa, Anthony J
AU - Tuthill, John C
TI - Peripheral anatomy and central connectivity of proprioceptive sensory neurons in the &
T2 - eLife
J2 - Elife
PY - 2026
DA - 2026/
VL - 14
SP - RP107867
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": "Peripheral anatomy and central connectivity of proprioceptive sensory neurons in the &
"container-title": "eLife",
"author": [
{
"family": "Lesser",
"given": "Ellen"
},
{
"family": "Moussa",
"given": "Anthony J"
},
{
"family": "Tuthill",
"given": "John C"
}
],
"container-title-short":
"volume": "14",
"page": "RP107867",
"DOI": "10.7554/
"PMID": "41805047",
"PMCID": "PMC12975126",
"ISSN": "2050-084X",
"publisher": "eLife Sciences Publications, Ltd",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
10
]
]
}
}
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/s41586-026-10735-w [code]
- Distributed control circuits across a brain-and-cord connectome.Journal: NatureIn common: seaborn, scikit-learn, pandas, 3 other tools, drosophila, 8 references, author John C Tuthill
- [2] doi:10.7554/elife.96084 [code]
- Organization of circuits linking descending input to motor output in the &
lt;i& gt;Drosophila& lt;/ i& gt; Male Adult Nerve Cord connectome. Journal: eLifeIn common: drosophila, 13 references - [3] doi:10.1038/s41467-026-72152-x [code]
- Centralized brain networks controlling antennal grooming coordination.Journal: Nature communicationsIn common: seaborn, scikit-learn, pandas, 3 other tools, drosophila, 9 references
- [4] doi:10.1038/s41593-026-02388-9 [code]
- Hippocampal CA3 connectomics reveals a gradient of mossy fiber inputs and selective feedforward inhibition onto pyramidal cells.Journal: Nature neuroscienceIn common: seaborn, scikit-learn, pandas, 3 other tools, histology / microscopy, 2 references
- [5] doi:10.1093/g3journal/jkag037 [code]
- Visual recognition of the anteroposterior female body axis drives spatial elements of male courtship in Drosophila.Journal: G3 (Bethesda, Md.)In common: scikit-learn, pandas, SciPy, 2 other tools, drosophila, 2 references
- [6] 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 biologyIn common: seaborn, scikit-learn, pandas, 3 other tools, drosophila, histology / microscopy, cellular / molecular, 1 reference
- [7] doi:10.7554/elife.107276 [code]
- Deployment of endocytic machinery to periactive zones of nerve terminals is independent of active zone assembly and evoked release.Journal: eLifeIn common: seaborn, scikit-learn, pandas, 3 other tools, drosophila, cellular / molecular, 1 reference
- [8] doi:10.1038/s41598-026-48613-0 [code]
- An snRNA-seq aging clock for the fruit fly head sheds light on sex-biased aging.Journal: Scientific reportsIn common: seaborn, scikit-learn, pandas, 3 other tools, drosophila, cellular / molecular, 1 reference
- [9] doi:10.1016/j.cub.2026.07.041 [code]
- Notch-mediated lateral inhibition is shaped by morphological differences to reinforce bias toward signal-sending or -receiving roles.Journal: Current biology : CBIn common: seaborn, scikit-learn, pandas, 3 other tools, drosophila, cellular / molecular, 1 reference
- [10] doi:10.1038/s41467-026-70303-8 [code]
- Behavioral screening defines the molecular Parkinsonism-related subgroups in Drosophila.Journal: Nature communicationsIn common: seaborn, scikit-learn, pandas, 3 other tools, drosophila, cellular / molecular, 1 reference
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, 2 scripts, and 2 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:3157fbbf6fe7feae…
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.
