OSCR

A genetic strategy for targeting local astrocytes in adult Drosophila.

Code ↔ Paper

The paper beside its authors' code: matches between them have not been computed for this paper yet.

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

  1. ---
  2. title: "synapses_by_roi"
  3. output: html_document
  4. date: "2024-05-31"
  5. ---
  6. ```{r setup, include=FALSE}
  7. knitr::opts_chunk$set(echo = TRUE)
  8. ```
  9. ## R Markdown
  10. 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>.
  11. 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:
  12. ```{r libraries}
  13. library(neuronbridger)
  14. library(neuprintr)
  15. library(dplyr)
  16. library(purrr)
  17. library(data.table)
  18. library(ggplot2)
  19. ```
  20. ```{r}
  21. driver_list <- c("MB441B", "MB042B", "MB196B", "MB315C", "MB312B", "MB607B", "MB009B", "MB112C", "MB298B", "MB504B", "MB320C", "MB025B", "MB188B", "MB463B", "MB418B", "MB185B", "MB008B", "MB371B")
  22. ```
  23. ```{r}
  24. conn = neuprintr::neuprint_login(server= "https://neuprint.janelia.org/",
  25. dataset= "hemibrain:v1.2.1",
  26. token= "xxx")
  27. ```
  28. 1. Get cell IDs for all drivers into same df
  29. a. loop through lines with neuronbridge to get cell IDs
  30. ```{r}
  31. # Function to get data for each line
  32. get_line_contents <- function(line) {
  33. result <- safely(neuronbridge_line_contents)(line = line, threshold = 0)
  34. if (!is.null(result$error)) {
  35. message(paste("Error for line:", line, "- skipping"))
  36. return(NULL)
  37. }
  38. return(result$result)
  39. }
  40. line_contents <- driver_list %>%
  41. map(get_line_contents) %>%
  42. compact() %>%
  43. bind_rows()
  44. ```
  45. ```{r}
  46. line_contents_sub <- line_contents[, c("bodyid", "searched", "name", "type")]
  47. ```
  48. b. filter neuronbridge output
  49. 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.
  50. get list of names associated with each line and filter by the column 'name' the ones that are relevant
  51. ```{r}
  52. target_ROI <- line_contents_sub %>%
  53. group_by(searched) %>%
  54. summarise(values = paste(name, collapse = ', '))
  55. ```
  56. ```{r}
  57. #filtering cell IDs by name column to get only cells projecting into the relevant compartments for each driver
  58. filtered <- line_contents_sub %>%
  59. filter(!(searched == "MB441B" & !(grepl("PAM", name) & grepl("y3", name)) & !(is.na(name)))) %>%
  60. filter(!(searched == "MB042B" & !(grepl("PAM", name) & grepl("y3", name)) & !(is.na(name)))) %>%
  61. filter(!(searched == "MB196B" & !(grepl("PAM", name)))) %>%
  62. filter(!(searched == "MB315C" & !(grepl("PAM", name) & grepl("y5", name)) & !(is.na(name)))) %>%
  63. filter(!(searched == "MB312B" & !(grepl("PAM", name) & grepl("y4", name)) & !(is.na(name)))) %>%
  64. filter(!(searched == "MB607B" & !(grepl("KCg", name)))) %>%
  65. filter(!(searched == "MB320C" & !is.na(name))) %>%
  66. filter(!(searched == "MB025B" & !(grepl("PAM", name) & grepl("B'1", name)) & !(is.na(name)))) %>%
  67. filter(!(searched == "MB418B" & !(grepl("KC", name)))) %>%
  68. filter(!(searched == "MB371B" & !(grepl("KC", name)) & !(is.na(name)))) %>%
  69. filter(!(searched == "MB188B" & !(grepl("PAM", name) & grepl("y3", name)) & !(is.na(name)))) %>%
  70. filter(!(searched == "MB047B" & !(grepl("PAM", name) & grepl("B'2", name)) & !(is.na(name)))) %>%
  71. filter(!(searched == "MB112C" & !(grepl("MBON", name)))) %>%
  72. filter(!(searched == "MB298B" & !(grepl("MBON", name))))
  73. ```
  74. 2. get info on number of synapses per cell ID in ROI
  75. ```{r}
  76. #available ROIs
  77. neuprint_ROIs(fromNeuronFields=T, superLevel = NULL)
  78. ```
  79. ```{r}
  80. 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)")
  81. ```
  82. per ROI, what cell IDs have synapses there?
  83. ```{r}
  84. get_ROI_contents <- function(ROI) {
  85. result <- neuprint_bodies_in_ROI(ROI)
  86. # adding a column with ROI to the result
  87. result$ROI <- ROI
  88. return(result)
  89. }
  90. ROI_contents <- output_ROIs %>%
  91. map(get_ROI_contents) %>%
  92. compact() %>%
  93. bind_rows()
  94. ```
  95. 3. merge the dfs: result is a table with each bodyid matched to a driver line
  96. ```{r}
  97. ids <- merge(filtered, ROI_contents, by="bodyid")
  98. ```
  99. ```{r}
  100. ids <- ids %>%
  101. rename(line = searched)
  102. ```
  103. add extra column ct by line
  104. ```{r}
  105. df_all <- ids %>%
  106. left_join(drivers, by = "line")
  107. ```
  108. ```{r}
  109. summary <- df_all %>%
  110. group_by(ROI, line, individual_astro, ct, ncell) %>%
  111. summarize(
  112. roipre_sum = sum(roipre),
  113. roipre_avg = mean(roipre),
  114. roipre_med = median(roipre),
  115. roipre_count = n(),
  116. .groups = 'drop'
  117. ) %>%
  118. mutate(avg_n = roipre_avg * ncell)
  119. ```
  120. ```{r}
  121. final <- summary %>%
  122. filter(!(line == "MB441B" & !(ROI == "g3(R)"))) %>%
  123. filter(!(line == "MB196B" & !(ROI == "g4(R)"))) %>%
  124. filter(!(line == "MB315C" & !(ROI == "g5(R)"))) %>%
  125. filter(!(line == "MB312B" & !(ROI == "g4(R)"))) %>%
  126. filter(!(line == "MB607B" & !(ROI %in% c("g1(R)", "g2(R)", "g3(R)", "g4(R)", "g5(R)")))) %>%
  127. filter(!(line == "MB025B" & !(ROI == "b'1(R)"))) %>%
  128. filter(!(line == "MB418B" & !(ROI %in% c("b'1(R)", "b'2(R)", "a'1(R)", "a'2(R)", "a'3(R)")))) %>%
  129. filter(!(line == "MB188B" & !(ROI == "g3(R)"))) %>%
  130. filter(!(line == "MB047B")) %>%
  131. filter(!(line == "MB112C" & !(ROI %in% c("b1(R)", "b2(R)", "a1(R)", "a2(R)", "a3(R)")))) %>%
  132. filter(!(line == "MB298B" & !(ROI %in% c("g1(R)", "g2(R)")))) %>%
  133. filter(!(line == "MB504B" & !(ROI %in% c("g1(R)", "g2(R)", "a'1(R)", "a2(R)", "a'2(R)", "a3(R)"))))
  134. ```
  135. ```{r}
  136. final$ROI <- gsub("\\(R\\)", "", final$ROI)
  137. 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"))
  138. ```
  139. ```{r}
  140. #creating different shades of same colour per cell type category
  141. setDT(final)
  142. line_ct <- unique(final[, .(line, ct)])
  143. kc_lines <- line_ct[ct == "KC", line]
  144. kc_colors <- c("#d62728", "#ff9896")
  145. mbon_lines <- line_ct[ct == "MBON", line]
  146. mbon_colors <- c("#ff7f0e", "#ffbb78")
  147. ppl1_lines <- line_ct[ct == "PPL1", line]
  148. ppl1_colors <- "#2ca02c"
  149. pam_lines <- line_ct[ct == "PAM", line]
  150. pam_colors <- c("#440381", "#9467bd", "#6b6ecf", "#17becf", "#9edae5", "#1f77b4")
  151. # Combine into one named vector
  152. line_colors <- setNames(
  153. c(kc_colors, mbon_colors, ppl1_colors, pam_colors),
  154. c(kc_lines, mbon_lines, ppl1_lines, pam_lines)
  155. )
  156. line_colors
  157. ```
  158. ```{r}
  159. ct_order <- c("KC", "MBON", "PPL1", "PAM")
  160. line_ct[, ct := factor(ct, levels = ct_order)]
  161. setorder(line_ct, ct) # Now sorted by ct, then line
  162. line_levels_ordered <- line_ct$line # ordered by ct
  163. # Apply to original dt
  164. final[, line := factor(line, levels = line_levels_ordered)]
  165. ```
  166. ```{r}
  167. driver_plot <- ggplot(final, aes(x=ROI, y=log2(avg_n), color=line)) +
  168. geom_vline(xintercept = unique(final$ROI), color="grey", linetype="dotted", linewidth=0.3) +
  169. geom_point(aes(size=roipre_count, shape=individual_astro), stroke=1.5) +
  170. guides(size=guide_legend(override.aes = list(shape=c(3))),
  171. col=guide_legend(override.aes = list(shape=c(3))))+
  172. theme_classic() +
  173. scale_color_manual(values = line_colors) +
  174. scale_shape_manual(values = c(4, 3))+
  175. scale_size_continuous(limits=c(1,43), breaks=c(1,10,20,30,40))+
  176. theme(legend.box = "horizontal") +
  177. ylab("log2(estimated synapse number)") +
  178. xlab("Mushroom Body compartment")
  179. ggsave(driver_plot, filename="/file/path/x.svg", height = 4, width = 7, dpi=300)
  180. ```
  181. 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

Authors: Joana Dopp1,2,3, Sarah Martens1,2,3, Frederik Hobin2, Sofia Mastroianni1,2, Jiekun Yan1,2,3, Lisa van Ninhuys1,2,3, Azhar Mauletkhan1,2,3, Sha Liu1,2,3
ORCID iDs: Sha Liu
  1. Center for Neuroscience, VIB-KU Leuven, 3000 Leuven, Belgium
  2. Department of Neurosciences, KU Leuven, 3000 Leuven, Belgium
  3. Leuven Brain Institute, KU Leuven, 3000 Leuven, Belgium
Journal: Cell reports methods, volume 6, issue 3, article 101332
Dates: received 2 July 2025; accepted 23 January 2026; published online 13 March 2026; in print March 2026
Type: Brief report · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1016/j.crmeth.2026.101332 · PMID 41831445 · PMCID PMC13030971 · OpenAlex W7135223872
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: drosophila (organism), cellular / molecular (subfield)
Methods: Preprocessing, Evoked potentials, fMRI & imaging
Keywords: local astrocytes, genetic tool, Drosophila
MeSH: Astrocytes*, Drosophila*, Drosophila melanogaster*, Animals, Brain, Mushroom Bodies, Neurons (* major topic)
Topic: Invertebrate Immune Response Mechanisms (Immunology, Immunology and Microbiology), according to OpenAlex
Funding: BRAIN Initiative (MH117815, NS126935); European Research Council (#758580); Reseaerch Foundation – Flanders (G074923N); PhD Fellowship of the Research Foundation - Flanders (#11D8820N)
Citations: not cited yet (Europe PMC); 31 references in the paper
Research resources: Secondary anti-rat 647 RRID:AB_141778, Secondary anti-rat 568 RRID:AB_141874, Secondary anti-rabbit 488 RRID:AB_143165, Anti-Ollas (rat) RRID:AB_1625979, Anti-Flag (rat) RRID:AB_1625981, Anti-GFP (rabbit) RRID:AB_221569, Anti-NC82 (mouse) RRID:AB_2314866, Secondary anti-rabbit 594 RRID:AB_2340621, Secondary anti-mouse 488 RRID:AB_2534088, Secondary anti-mouse 647 RRID:AB_2535804, DL550 anti-V5 (mouse) RRID:AB_2687576, Anti-HA (rabbit) RRID:AB_390918, R version 4.3.3 RRID:SCR_001905, Fiji RRID:SCR_002285, Imaris version 10.0.1 RRID:SCR_007370

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

License: none: the authors keep all their rights
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Commit: e10ec7dbe2b2794f67377147c629b59a397c0940, 13 January 2026
Languages: R (1)
Size: 2 files, 1 script
Software Heritage: not archived
Found in: “Data and code availability”
Holds: README, 1 notebook
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: data.table (1 file), ggplot2 (1 file), tidyverse (1 file)
Availability: 1 check, the latest on 30 September 2026: the link answers
  • 30 September 2026: the link answers
2 files

Zenodo 18338021

License: CC-BY-4.0
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Languages: R (1)
Size: 1 file, 1 script
Software Heritage: not checked
Found in: “Data and code availability”
Holds: 1 notebook
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: data.table (1 file), ggplot2 (1 file), tidyverse (1 file)
Availability: 1 check, the latest on 30 September 2026: the link answers (HTTP 200)
  • 30 September 2026: the link answers (HTTP 200)
1 file

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:

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://doi.org/10.1016/j.crmeth.2026.101332

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/j.crmeth.2026.101332},
url = {https://doi.org/10.1016/j.crmeth.2026.101332},
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/03/13
VL - 6
IS - 3
SP - 101332
SN - 2667-2375
PB - Elsevier
DO - 10.1016/j.crmeth.2026.101332
UR - https://doi.org/10.1016/j.crmeth.2026.101332
LA - en
ER -

CSL-JSON

{
"id": "10.1016/j.crmeth.2026.101332",
"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": "Cell Rep Methods",
"volume": "6",
"issue": "3",
"page": "101332",
"DOI": "10.1016/j.crmeth.2026.101332",
"PMID": "41831445",
"PMCID": "PMC13030971",
"ISSN": "2667-2375",
"publisher": "Elsevier",
"URL": "https://doi.org/10.1016/j.crmeth.2026.101332",
"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: Nature
In 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: Nature
In 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 communications
In 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: eLife
In common: ggplot2, tidyverse, drosophila, 5 references
[5] doi:10.1038/s41467-026-72152-x [code]
Centralized brain networks controlling antennal grooming coordination.
Journal: Nature communications
In 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: eLife
In 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 neuroscience
In 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 biology
In 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 America
In 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: iScience
In 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.

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.