A genetic strategy for targeting local astrocytes in adult Drosophila.
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
R Markdown · 220 lines · 7.3 KB · no license
- ---
- title: "synapses_by_roi"
- output: html_document
- date: "2024-05-31"
- ---
- ```{r setup, include=FALSE}
- knitr::opts_chunk$set(echo = TRUE)
- ```
- ## R Markdown
- This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>.
- When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
- ```{r libraries}
- library(neuronbridger)
- library(neuprintr)
- library(dplyr)
- library(purrr)
- library(data.table)
- library(ggplot2)
- ```
- ```{r}
- driver_list <- c("MB441B", "MB042B", "MB196B", "MB315C", "MB312B", "MB607B", "MB009B", "MB112C", "MB298B", "MB504B", "MB320C", "MB025B", "MB188B", "MB463B", "MB418B", "MB185B", "MB008B", "MB371B")
- ```
- ```{r}
- conn = neuprintr::neuprint_login(server= "https://neuprint.janelia.org/",
- dataset= "hemibrain:v1.2.1",
- token= "xxx")
- ```
- 1. Get cell IDs for all drivers into same df
- a. loop through lines with neuronbridge to get cell IDs
- ```{r}
- # Function to get data for each line
- get_line_contents <- function(line) {
- result <- safely(neuronbridge_line_contents)(line = line, threshold = 0)
- if (!is.null(result$error)) {
- message(paste("Error for line:", line, "- skipping"))
- return(NULL)
- }
- return(result$result)
- }
- line_contents <- driver_list %>%
- map(get_line_contents) %>%
- compact() %>%
- bind_rows()
- ```
- ```{r}
- line_contents_sub <- line_contents[, c("bodyid", "searched", "name", "type")]
- ```
- b. filter neuronbridge output
- I used no threshold, so that I don't miss hits (would need to determine threshold by line and it's arbitrary). I want to remove false positives by removing those cells that project into unwanted neuropil.
- get list of names associated with each line and filter by the column 'name' the ones that are relevant
- ```{r}
- target_ROI <- line_contents_sub %>%
- group_by(searched) %>%
- summarise(values = paste(name, collapse = ', '))
- ```
- ```{r}
- #filtering cell IDs by name column to get only cells projecting into the relevant compartments for each driver
- filtered <- line_contents_sub %>%
- filter(!(searched == "MB441B" & !(grepl("PAM", name) & grepl("y3", name)) & !(is.na(name)))) %>%
- filter(!(searched == "MB042B" & !(grepl("PAM", name) & grepl("y3", name)) & !(is.na(name)))) %>%
- filter(!(searched == "MB196B" & !(grepl("PAM", name)))) %>%
- filter(!(searched == "MB315C" & !(grepl("PAM", name) & grepl("y5", name)) & !(is.na(name)))) %>%
- filter(!(searched == "MB312B" & !(grepl("PAM", name) & grepl("y4", name)) & !(is.na(name)))) %>%
- filter(!(searched == "MB607B" & !(grepl("KCg", name)))) %>%
- filter(!(searched == "MB320C" & !is.na(name))) %>%
- filter(!(searched == "MB025B" & !(grepl("PAM", name) & grepl("B'1", name)) & !(is.na(name)))) %>%
- filter(!(searched == "MB418B" & !(grepl("KC", name)))) %>%
- filter(!(searched == "MB371B" & !(grepl("KC", name)) & !(is.na(name)))) %>%
- filter(!(searched == "MB188B" & !(grepl("PAM", name) & grepl("y3", name)) & !(is.na(name)))) %>%
- filter(!(searched == "MB047B" & !(grepl("PAM", name) & grepl("B'2", name)) & !(is.na(name)))) %>%
- filter(!(searched == "MB112C" & !(grepl("MBON", name)))) %>%
- filter(!(searched == "MB298B" & !(grepl("MBON", name))))
- ```
- 2. get info on number of synapses per cell ID in ROI
- ```{r}
- #available ROIs
- neuprint_ROIs(fromNeuronFields=T, superLevel = NULL)
- ```
- ```{r}
- output_ROIs = c("g1(R)", "g2(R)", "g3(R)", "g4(R)", "g5(R)", "a'1(R)", "a'2(R)", "a'3(R)", "a1(R)", "a2(R)", "a3(R)", "b'1(R)", "b'2(R)", "b1(R)", "b2(R)")
- ```
- per ROI, what cell IDs have synapses there?
- ```{r}
- get_ROI_contents <- function(ROI) {
- result <- neuprint_bodies_in_ROI(ROI)
- # adding a column with ROI to the result
- result$ROI <- ROI
- return(result)
- }
- ROI_contents <- output_ROIs %>%
- map(get_ROI_contents) %>%
- compact() %>%
- bind_rows()
- ```
- 3. merge the dfs: result is a table with each bodyid matched to a driver line
- ```{r}
- ids <- merge(filtered, ROI_contents, by="bodyid")
- ```
- ```{r}
- ids <- ids %>%
- rename(line = searched)
- ```
- add extra column ct by line
- ```{r}
- df_all <- ids %>%
- left_join(drivers, by = "line")
- ```
- ```{r}
- summary <- df_all %>%
- group_by(ROI, line, individual_astro, ct, ncell) %>%
- summarize(
- roipre_sum = sum(roipre),
- roipre_avg = mean(roipre),
- roipre_med = median(roipre),
- roipre_count = n(),
- .groups = 'drop'
- ) %>%
- mutate(avg_n = roipre_avg * ncell)
- ```
- ```{r}
- final <- summary %>%
- filter(!(line == "MB441B" & !(ROI == "g3(R)"))) %>%
- filter(!(line == "MB196B" & !(ROI == "g4(R)"))) %>%
- filter(!(line == "MB315C" & !(ROI == "g5(R)"))) %>%
- filter(!(line == "MB312B" & !(ROI == "g4(R)"))) %>%
- filter(!(line == "MB607B" & !(ROI %in% c("g1(R)", "g2(R)", "g3(R)", "g4(R)", "g5(R)")))) %>%
- filter(!(line == "MB025B" & !(ROI == "b'1(R)"))) %>%
- filter(!(line == "MB418B" & !(ROI %in% c("b'1(R)", "b'2(R)", "a'1(R)", "a'2(R)", "a'3(R)")))) %>%
- filter(!(line == "MB188B" & !(ROI == "g3(R)"))) %>%
- filter(!(line == "MB047B")) %>%
- filter(!(line == "MB112C" & !(ROI %in% c("b1(R)", "b2(R)", "a1(R)", "a2(R)", "a3(R)")))) %>%
- filter(!(line == "MB298B" & !(ROI %in% c("g1(R)", "g2(R)")))) %>%
- filter(!(line == "MB504B" & !(ROI %in% c("g1(R)", "g2(R)", "a'1(R)", "a2(R)", "a'2(R)", "a3(R)"))))
- ```
- ```{r}
- final$ROI <- gsub("\\(R\\)", "", final$ROI)
- final$ROI <- factor(final$ROI, levels = c("g1", "g2", "g3", "g4", "g5", "a'1", "a'2", "a'3", "b'1", "b'2", "a1", "a2", "a3", "b1", "b2"))
- ```
- ```{r}
- #creating different shades of same colour per cell type category
- setDT(final)
- line_ct <- unique(final[, .(line, ct)])
- kc_lines <- line_ct[ct == "KC", line]
- kc_colors <- c("#d62728", "#ff9896")
- mbon_lines <- line_ct[ct == "MBON", line]
- mbon_colors <- c("#ff7f0e", "#ffbb78")
- ppl1_lines <- line_ct[ct == "PPL1", line]
- ppl1_colors <- "#2ca02c"
- pam_lines <- line_ct[ct == "PAM", line]
- pam_colors <- c("#440381", "#9467bd", "#6b6ecf", "#17becf", "#9edae5", "#1f77b4")
- # Combine into one named vector
- line_colors <- setNames(
- c(kc_colors, mbon_colors, ppl1_colors, pam_colors),
- c(kc_lines, mbon_lines, ppl1_lines, pam_lines)
- )
- line_colors
- ```
- ```{r}
- ct_order <- c("KC", "MBON", "PPL1", "PAM")
- line_ct[, ct := factor(ct, levels = ct_order)]
- setorder(line_ct, ct) # Now sorted by ct, then line
- line_levels_ordered <- line_ct$line # ordered by ct
- # Apply to original dt
- final[, line := factor(line, levels = line_levels_ordered)]
- ```
- ```{r}
- driver_plot <- ggplot(final, aes(x=ROI, y=log2(avg_n), color=line)) +
- geom_vline(xintercept = unique(final$ROI), color="grey", linetype="dotted", linewidth=0.3) +
- geom_point(aes(size=roipre_count, shape=individual_astro), stroke=1.5) +
- guides(size=guide_legend(override.aes = list(shape=c(3))),
- col=guide_legend(override.aes = list(shape=c(3))))+
- theme_classic() +
- scale_color_manual(values = line_colors) +
- scale_shape_manual(values = c(4, 3))+
- scale_size_continuous(limits=c(1,43), breaks=c(1,10,20,30,40))+
- theme(legend.box = "horizontal") +
- ylab("log2(estimated synapse number)") +
- xlab("Mushroom Body compartment")
- ggsave(driver_plot, filename="/file/path/x.svg", height = 4, width = 7, dpi=300)
- ```
- Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot.
synapses_by_roi.Rmd at commit e10ec7d, no license · at the source
Overview
- Center for Neuroscience, VIB-KU Leuven, 3000 Leuven, Belgium
- Department of Neurosciences, KU Leuven, 3000 Leuven, Belgium
- Leuven Brain Institute, KU Leuven, 3000 Leuven, Belgium
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.
joanadopp/astroTRACT_paper
e10ec7dbe2b2794f67377147c629b59a397c0940, 13 January 2026Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
2 files
- synapses_by_roi.Rmd, R, 220 lines
- README.md, Text, 5 lines
Zenodo 18338021
Availability: 1 check, the latest on 30 September 2026: the link answers (HTTP 200)
- 30 September 2026: the link answers (HTTP 200)
1 file
- synapses_by_roi.Rmd, R, 220 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:
- 2 repositories 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;
- 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.
Code and data availability statement
The paper has a code and 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 the authors' code: joanadopp/
astroTRACT_paper , Zenodo 18338021 - it says that the data are available on request
- it says that the code is available on request
Read it in the paper: doi.org/10.1016/j.crmeth.2026.101332.
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, issue, pages, dates, 8 authors, 3 keywords, 7 MeSH terms, 4 funders, 29 references, 15 RRIDs.
Cite
This paper
Dopp, J., Martens, S., Hobin, F., Mastroianni, S., Yan, J., van Ninhuys, L., Mauletkhan, A., & Liu, S. (2026). A genetic strategy for targeting local astrocytes in adult Drosophila. Cell reports methods, 6(3), 101332. https://
BibTeX
@article{dopp2026genetic
author = {Dopp, Joana and Martens, Sarah and Hobin, Frederik and Mastroianni, Sofia and Yan, Jiekun and van Ninhuys, Lisa and Mauletkhan, Azhar and Liu, Sha},
title = {{A genetic strategy for targeting local astrocytes in adult Drosophila}},
journal = {Cell reports methods},
year = {2026},
month = mar,
volume = {6},
number = {3},
pages = {101332},
publisher = {Elsevier},
issn = {2667-2375},
doi = {10.1016/
url = {https://
pmid = {41831445},
pmcid = {PMC13030971}
}
RIS
TY - JOUR
AU - Dopp, Joana
AU - Martens, Sarah
AU - Hobin, Frederik
AU - Mastroianni, Sofia
AU - Yan, Jiekun
AU - van Ninhuys, Lisa
AU - Mauletkhan, Azhar
AU - Liu, Sha
TI - A genetic strategy for targeting local astrocytes in adult Drosophila
T2 - Cell reports methods
J2 - Cell Rep Methods
PY - 2026
DA - 2026/
VL - 6
IS - 3
SP - 101332
SN - 2667-2375
PB - Elsevier
DO - 10.1016/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1016/
"type": "article-journal",
"title": "A genetic strategy for targeting local astrocytes in adult Drosophila",
"container-title": "Cell reports methods",
"author": [
{
"family": "Dopp",
"given": "Joana"
},
{
"family": "Martens",
"given": "Sarah"
},
{
"family": "Hobin",
"given": "Frederik"
},
{
"family": "Mastroianni",
"given": "Sofia"
},
{
"family": "Yan",
"given": "Jiekun"
},
{
"family": "van Ninhuys",
"given": "Lisa"
},
{
"family": "Mauletkhan",
"given": "Azhar"
},
{
"family": "Liu",
"given": "Sha"
}
],
"container-title-short":
"volume": "6",
"issue": "3",
"page": "101332",
"DOI": "10.1016/
"PMID": "41831445",
"PMCID": "PMC13030971",
"ISSN": "2667-2375",
"publisher": "Elsevier",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
13
]
]
}
}
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: data.table, ggplot2, tidyverse, drosophila, 9 references
- [2] doi:10.1038/s41586-026-10797-w [code]
- A global molecular code for birth order and neuronal identity in Drosophila.Journal: NatureIn common: data.table, ggplot2, tidyverse, drosophila, cellular / molecular, 6 references
- [3] doi:10.1038/s41467-026-70303-8 [code]
- Behavioral screening defines the molecular Parkinsonism-related subgroups in Drosophila.Journal: Nature communicationsIn common: data.table, ggplot2, tidyverse, drosophila, cellular / molecular, 1 reference, author Sha Liu
- [4] 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: ggplot2, tidyverse, drosophila, 5 references - [5] doi:10.1038/s41467-026-72152-x [code]
- Centralized brain networks controlling antennal grooming coordination.Journal: Nature communicationsIn common: drosophila, 6 references
- [6] doi:10.7554/elife.105386
- Parkinson's disease-associated &
lt;i& gt;PINK1& lt;/ i& gt; loss disrupts ensheathing glia and causes dopaminergic neuron synapse loss. Journal: eLifeIn common: drosophila, cellular / molecular, 5 references - [7] doi:10.3389/fnsys.2026.1822122 [code]
- Convergence-divergence circuits for multimodal integration of innate and learned opponent valences.Journal: Frontiers in systems neuroscienceIn common: 6 references
- [8] doi:10.1002/bies.70122 [code]
- Imprecision in Vision: Lessons From Neural Circuits in the Fly.Journal: BioEssays : news and reviews in molecular, cellular and developmental biologyIn common: drosophila, cellular / molecular, 5 references
- [9] doi:10.1073/pnas.2605750123
- Light- and temperature-sensitive seizures are regulated by spatially distinct cortex glial populations in the central nervous system.Journal: Proceedings of the National Academy of Sciences of the United States of AmericaIn common: drosophila, cellular / molecular, 4 references
- [10] doi:10.1016/j.isci.2026.115564 [code]
- Octopamine regulates neural circuits in the mushroom body and central complex, influencing sleep and arousal.Journal: iScienceIn common: 5 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, 2 scripts, 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:5aa633431eb0a603…
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.
