OSCR

Dopamine and serotonin inversely modulate D2 medium spiny neurons to regulate cocaine reward.

Code ↔ Paper

6 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 6 matches
  1. [1] § Methods › RNAseq analysis ↔ CardozoPinto_Guo_2026_FigS1_code.Rmd, lines 424–460 · score 0.93 · Htr7.vMedpat, Mat.Dorsolateral_CPu, Mat.Ventromedial_CPu, Pat.Dorsolateral_CPu, Htr3a, Htr3b
  2. [2] § Results ↔ CardozoPinto_Guo_2026_FigS1_code.Rmd, lines 246–296 · score 0.74 · receptor families, Htr1d, Htr1b, Htr1f, Htr2a, Htr2c
  3. [3] § Methods › Fluorescence in situ hybridization mapping of 5HT receptor expression ↔ CardozoPinto_Guo_2026_FigS1_code.Rmd, lines 465–513 · score 0.72 · Htr1d, Htr1b, Drd1a, Htr1f, Htr2a, Htr2c
  4. [4] § Methods › Fluorescence in situ hybridization mapping of 5HT receptor expression ↔ CardozoPinto_Guo_2026_Fig1andS3_code.Rmd, lines 195–234 · score 0.64 · bar graphs, pMSN, highest expressing cell, receptor expression, subregions, HT
  5. [5] § Methods › Fluorescence in situ hybridization mapping of 5HT receptor expression ↔ CardozoPinto_Guo_2026_FigS2_code.Rmd, lines 122–157 · score 0.63 · bimodal distribution, Drd2 area covered, cutoff, DA receptor expression, chosen, Putative
  6. [6] § Results ↔ CardozoPinto_Guo_2026_FigS1_code.Rmd, lines 246–296 · score 0.58 · Htr1b, Htr1f, Htr2a, Htr2c, Gi, Gs

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 · 524 lines · 21 KB · no license · 4 matches

  1. ---
  2. title: "CardozoPinto_Guo_2026_FigS1_code"
  3. output: pdf_document
  4. ---
  5. #-------------------------------------------------------------------------------
  6. OVERVIEW
  7. #-------------------------------------------------------------------------------
  8. This notebook reproduces analyses shown in Sup Fig 1 of the publication:
  9. Cardozo Pinto D.F., Guo, M.Y., Pomrenze M.B., Morishita W., Li M.X., Zweifel L.S.
  10. Eshel N., Malenka R.C. Dopamine and serotonin inversely modulate D2 medium
  11. spiny neurons to regulate cocaine reward. Nat. Commun. (2026).
  12. Here, we take a previously published scRNAseq dataset of the mouse striatum
  13. and reanalyze it to identify which serotonin receptor genes are expressed on
  14. striatal medium spiny neurons. The dataset originated from the publication:
  15. Stanley G., Gokce O., Malenka R.C., Sudhof T.C., Quake S.R. Continuous and
  16. discrete neuron types of the adult murine striatum. Neuron (2020)
  17. And can be found at the link below:
  18. https://figshare.com/projects/Continuous_and_discrete_neuron_types_of_the_adult_murine_striatum/69080
  19. This script begins by loading the "metadata_final.csv" file from the "clustering
  20. and annotation metadata" folder and the "counts.csv" file from the "gene
  21. expression counts" folder of the FigShare repository above. Metadata_final has
  22. the metadata for each cell, with cells organized across rows. The counts file
  23. contains the raw gene counts for each medium spiny neuron, with cells organized
  24. in columns and genes organized across rows.
  25. #-------------------------------------------------------------------------------
  26. LOAD PACKAGES
  27. #-------------------------------------------------------------------------------
  28. ```{r}
  29. library(tidyverse)
  30. library(gplots)
  31. ```
  32. #-------------------------------------------------------------------------------
  33. SELECT THE DATA FILE AND LOAD IT: metadata_final.csv from Stanley et al 2020
  34. #-------------------------------------------------------------------------------
  35. ```{r}
  36. FigS1_metadata_path <- file.choose()
  37. metadata <- read.csv(FigS1_metadata_path, header=TRUE, check.names = FALSE)
  38. #the original metadata file has a duplicate cellname column in first position
  39. #remove the duplicate
  40. metadata <- metadata[,2:16]
  41. ```
  42. #-------------------------------------------------------------------------------
  43. SELECT THE DATA FILE AND LOAD IT: counts.csv from Stanley et al 2020
  44. #-------------------------------------------------------------------------------
  45. ```{r}
  46. FigS1_counts_path <- file.choose()
  47. counts <- read.csv(FigS1_counts_path, header=TRUE, check.names = FALSE)
  48. ```
  49. #-------------------------------------------------------------------------------
  50. JOIN THE COUNTS AND METADATA DATAFRAMES
  51. #-------------------------------------------------------------------------------
  52. ```{r}
  53. #organize counts data so that cells are in rows and genes are in columns
  54. #with the first column indicating the cell name as a factor
  55. gene_names <- counts[,1]
  56. counts <- t(counts[,-1])
  57. colnames(counts)<- gene_names
  58. counts <- as.data.frame(counts) %>%
  59. rownames_to_column(var="cell") %>%
  60. mutate(cell = as.factor(cell))
  61. #metadata file already has cells organized in rows
  62. #make the cell name a factor in the metadata as well
  63. metadata <- metadata %>% rename(cell=cell.name) %>% mutate(cell = as.factor(cell))
  64. #join counts and metadata files by cell name factor
  65. #notice that we lose 4 cells which are present in the counts file but not
  66. #the metadata_final file. These are astrocyte- contaminated cells as shown in
  67. #Stanley at al Sup Fig 1c
  68. FigS1_data <- inner_join(counts, metadata, by="cell")
  69. ```
  70. #-------------------------------------------------------------------------------
  71. ORGANIZE DATA, SET TYPES, CLEAN UP WORKSPACE
  72. #-------------------------------------------------------------------------------
  73. ```{r}
  74. FigS1_data <- FigS1_data %>%
  75. relocate(cell, nGene, nReads, percent.ribo, seq.plate, expt.name, i7.index,
  76. i5.index, submission.ID, expt.num, sort.well, sort.plate.idx,
  77. discrete.type, subcluster, continuous.subtype) %>%
  78. rename(num.gene = nGene,
  79. num.reads= nReads,
  80. mouse.id = expt.name, #these are mouse IDs, see Stanley et al Sup Fig 1L
  81. submission.id = submission.ID) %>%
  82. mutate(cell = as.factor(cell)) %>%
  83. mutate(seq.plate = as.factor(seq.plate)) %>%
  84. mutate(mouse.id = as.factor(mouse.id)) %>%
  85. mutate(submission.id = as.factor(submission.id)) %>%
  86. mutate(expt.num = as.factor(expt.num)) %>%
  87. mutate(sort.well = as.factor(sort.well)) %>%
  88. mutate(sort.plate.idx = as.factor(sort.plate.idx)) %>%
  89. mutate(discrete.type = as.factor(discrete.type)) %>%
  90. mutate(subcluster = as.factor(subcluster)) %>%
  91. mutate(continuous.subtype = as.factor(continuous.subtype)) %>%
  92. pivot_longer(cols = c(16:ncol(FigS1_data)), names_to = "gene", values_to = "count") %>%
  93. mutate(gene = as.factor(gene))
  94. #clean up the workspace
  95. rm(counts, metadata, FigS1_counts_path, FigS1_metadata_path, gene_names)
  96. ```
  97. #-------------------------------------------------------------------------------
  98. FILTER OUT CELLS FROM OLF TUB AND ICJ REGIONS
  99. #-------------------------------------------------------------------------------
  100. ```{r}
  101. FigS1_data <- FigS1_data %>%
  102. filter(continuous.subtype != "ICj") %>%
  103. filter(continuous.subtype != "OT.ruffle") %>%
  104. filter(continuous.subtype != "OT.flat") %>%
  105. droplevels()
  106. ```
  107. #-------------------------------------------------------------------------------
  108. FILTER OUT GENES THAT ARE NOT OF INTEREST FOR THIS ANALYSIS
  109. #-------------------------------------------------------------------------------
  110. ```{r}
  111. FigS1_data <- FigS1_data %>%
  112. dplyr::select(cell, mouse.id, num.reads, discrete.type, continuous.subtype, gene, count) %>%
  113. filter(
  114. gene == "Drd1a" |gene == "Pdyn" | gene == "Tac1" | #D1 MSN markers
  115. gene == "Drd2" | gene == "Penk" | gene == "Adora2a" | #D2 MSN markers
  116. gene == "Tac2" | gene == "Nxph4" | gene == "Pcdh8" | #D1H MSN markers
  117. gene == "Kremen1" | gene == "Sema5b" | #patch markers
  118. gene == "Id4" | gene == "Igfbp4" | gene == "Calb1" | #matrix markers
  119. gene == "Htr1a" | gene == "Htr1b" | gene == "Htr1d" | gene == "Htr1e" | #5HTRs
  120. gene == "Htr1f" | gene == "Htr2a" | gene == "Htr2b" | gene == "Htr2c" | #5HTRs
  121. gene == "Htr3a" | gene == "Htr3b" | gene == "Htr4" | gene == "Htr5a" | #5HTRs
  122. gene == "Htr5b" | gene == "Htr6" | gene == "Htr7" #5HTRs
  123. )
  124. ```
  125. The code above throws a warning which says that the genes Htr1e, Htr3a,and
  126. Htr3b were not found in the dataset. This makes sense for Htr1e because mice do
  127. not have 5HT1e serotonin receptors. reference:
  128. Bai et al. Molecular cloning and pharmacological characterization of the guinea
  129. pig 5-HT1e receptor. Eur J Pharm 2004
  130. However, mice do have 5HT3 receptors, which are made up of Htr3a and Htr3b
  131. subunits. The absence of these genes in the dataset of medium spiny neurons
  132. indicates that these genes are not expressed in any MSNs, so the next piece of
  133. code assigns each cell a count of 0 for these genes. This is consistent with
  134. reports of 5HT3 receptors as cell-type specific markers for distinguishing
  135. striatal GABAergic interneurons from MSNs. References:
  136. Muñoz-Manchado, A. B. et al. Novel Striatal GABAergic Interneuron Populations
  137. Labeled in the 5HT3a EGFP Mouse. Cerebral Cortex 26, 96–105 (2016).
  138. Assous, M. et al. Identification and Characterization of a Novel Spontaneously
  139. Active Bursty GABAergic Interneuron in the Mouse Striatum. The Journal of
  140. Neuroscience 38, 5688–5699 (2018).
  141. ```{r}
  142. FigS1_data <- FigS1_data %>%
  143. pivot_wider(names_from = gene, values_from = count) %>%
  144. mutate(Htr3a = 0, Htr3b = 0) %>%
  145. pivot_longer(names_to = "gene", values_to = "count", cols = c(6:33)) %>%
  146. mutate(gene = as.factor(gene))%>%
  147. group_by(cell) %>%
  148. mutate(cpm = count/num.reads*1000000)
  149. ```
  150. #-------------------------------------------------------------------------------
  151. GROUP GENES OF INTEREST INTO USEFUL CATEGORIES
  152. #-------------------------------------------------------------------------------
  153. ```{r}
  154. FigS1_data <- FigS1_data %>%
  155. mutate(gene_type = fct_collapse(gene,
  156. d1_markers = c("Drd1a", "Pdyn", "Tac1"),
  157. d2_markers = c("Drd2", "Penk", "Adora2a"),
  158. d1h_markers = c("Tac2", "Nxph4", "Pcdh8"),
  159. patchmatrix_markers = c("Kremen1", "Sema5b",
  160. "Id4", "Igfbp4", "Calb1"),
  161. htrs = c("Htr1a", "Htr1b", "Htr1d",
  162. "Htr1f", "Htr2a", "Htr2b", "Htr2c",
  163. "Htr3a", "Htr3b", "Htr4", "Htr5a",
  164. "Htr5b", "Htr6", "Htr7"),
  165. other_level = "other"))
  166. ```
  167. #-------------------------------------------------------------------------------
  168. PLOT PERCENTAGE OF MSNs POSITIVE FOR ANY 5HTR GENE
  169. #-------------------------------------------------------------------------------
  170. This piece of code generates the data shown in Sup Fig 1a, which was then
  171. imported into Graphpad Prism to be plotted in a style matching the rest of the
  172. figures in the paper
  173. ```{r}
  174. FigS1a_data <- FigS1_data %>%
  175. filter(gene_type == "htrs") %>%
  176. droplevels() %>%
  177. group_by(mouse.id, cell, gene_type) %>%
  178. summarize(count = sum(count)) %>%
  179. ungroup() %>%
  180. group_by(mouse.id, gene_type) %>%
  181. summarize(pct_positive = sum(count > 0)/n()*100,
  182. num_cell = n())
  183. FigS1a_data %>%
  184. ggplot(aes(x=gene_type, y=pct_positive)) +
  185. stat_summary(fun = mean, geom = "col", size =0.5) +
  186. stat_summary(fun.data = mean_se, geom = "errorbar", width=0.5, size=1)+
  187. geom_point(aes(y= pct_positive), size =2, color="gray", fill = "gray")+
  188. theme_classic()+
  189. scale_y_continuous(breaks = c(10,20,30,40,50,60,70,80,90,100))+
  190. ggtitle("percentage of MSNs positive for any 5HTR gene")
  191. ```
  192. #-------------------------------------------------------------------------------
  193. PLOT PERCENTAGE OF MSNs POSITIVE FOR ANY 5HTR GENE, BY RECEPTOR FAMILY
  194. #-------------------------------------------------------------------------------
  195. This piece of code generates the data shown in Sup Fig 1b, which was then
  196. imported into Graphpad Prism to be plotted in a style matching the rest of the
  197. figures in the paper and for additional statistical testing.
  198. ```{r}
  199. FigS1b_data <- FigS1_data %>%
  200. filter(gene_type == "htrs") %>%
  201. droplevels() %>%
  202. mutate(family = fct_collapse(gene,
  203. Gi = c("Htr1a",
  204. "Htr1b",
  205. "Htr1d",
  206. "Htr1f",
  207. "Htr5a",
  208. "Htr5b"),
  209. Gq = c("Htr2a",
  210. "Htr2b",
  211. "Htr2c"),
  212. Gs = c("Htr4",
  213. "Htr6",
  214. "Htr7"),
  215. ion = c("Htr3a",
  216. "Htr3b"),
  217. other_level = "other")) %>%
  218. group_by(mouse.id, cell, gene_type, family) %>%
  219. summarize(count = sum(count)) %>%
  220. ungroup() %>%
  221. group_by(mouse.id, gene_type,family) %>%
  222. summarize(pct_positive = sum(count > 0)/n()*100,
  223. num_cell = n())
  224. #reorder factor
  225. FigS1b_data$family <- factor(FigS1b_data$family, levels=c("Gi", "Gq", "Gs", "ion"))
  226. FigS1b_data %>%
  227. ggplot(aes(x=family, y=pct_positive)) +
  228. stat_summary(fun = mean, geom = "col", size =0.5) +
  229. stat_summary(fun.data = mean_se, geom = "errorbar", width=0.5, size=1)+
  230. geom_point(aes(y= pct_positive), size =2, color="gray", fill = "gray")+
  231. theme_classic()+
  232. ylim(0,100)+
  233. scale_y_continuous(breaks = c(10,20,30,40,50,60,70,80,90,100))+
  234. ggtitle("percentage of MSNs positive for 5HTR genes by receptor family")
  235. ```
  236. #-------------------------------------------------------------------------------
  237. PLOT 5HTR GENE EXPRESSION BY RECEPTOR FAMILY
  238. #-------------------------------------------------------------------------------
  239. This piece of code generates the data shown in Sup Fig 1c, which was then
  240. imported into Graphpad Prism to be plotted in a style matching the rest of the
  241. figures in the paper and for additional statistical testing.
  242. ```{r}
  243. FigS1c_data <- FigS1_data %>%
  244. filter(gene_type == "htrs") %>%
  245. droplevels() %>%
  246. mutate(family = fct_collapse(gene,
  247. Gi = c("Htr1a",
  248. "Htr1b",
  249. "Htr1d",
  250. "Htr1f",
  251. "Htr5a",
  252. "Htr5b"),
  253. Gq = c("Htr2a",
  254. "Htr2b",
  255. "Htr2c"),
  256. Gs = c("Htr4",
  257. "Htr6",
  258. "Htr7"),
  259. ion = c("Htr3a",
  260. "Htr3b"),
  261. other_level = "other")) %>%
  262. mutate(num.reads = as.factor(num.reads)) %>%
  263. group_by(mouse.id, cell, family, gene_type, num.reads) %>%
  264. summarize(count = sum(count)) %>%
  265. mutate(num.reads = as.numeric(as.character(num.reads))) %>%
  266. ungroup() %>%
  267. group_by(mouse.id, family, cell, gene_type) %>%
  268. mutate(cpm = count/num.reads*1000000)%>%
  269. ungroup() %>%
  270. group_by(mouse.id, family, gene_type) %>%
  271. summarize(cpm = (mean(cpm)))
  272. #reorder factor
  273. FigS1c_data$family <- factor(FigS1c_data$family, levels=c("Gi", "Gq", "Gs", "ion"))
  274. FigS1c_data %>%
  275. ggplot(aes(x=family, y=log10(cpm+1))) +
  276. stat_summary(fun = mean, geom = "col", size =0.5) +
  277. stat_summary(fun.data = mean_se, geom = "errorbar", width=0.5, size=1)+
  278. geom_point(aes(y= log10(cpm+1)), size =2, color="gray", fill = "gray")+
  279. theme_classic()+
  280. ggtitle("5HTR gene expression by receptor family")
  281. ```
  282. #-------------------------------------------------------------------------------
  283. PLOT PERCENTAGE OF MSNs POSITIVE FOR EACH 5HTR GENEE
  284. #-------------------------------------------------------------------------------
  285. This piece of code generates the data shown in Sup Fig 1d, which was then
  286. imported into Graphpad Prism to be plotted in a style matching the rest of the
  287. figures in the paper and for additional statistical analysis
  288. ```{r}
  289. FigS1d_data <- FigS1_data %>%
  290. filter(gene_type == "htrs") %>%
  291. droplevels() %>%
  292. group_by(mouse.id, gene_type, gene) %>%
  293. summarize(num_pos = sum(count > 0),
  294. num_cell = n(),
  295. pct_positive = num_pos/num_cell*100)
  296. #reorder factor
  297. FigS1d_data$gene <- factor(FigS1d_data$gene, levels=c("Htr1d", "Htr1b", "Htr1f", "Htr5a", "Htr5b",
  298. "Htr1a", "Htr2c", "Htr2a", "Htr2b", "Htr4",
  299. "Htr6", "Htr7", "Htr3a", "Htr3b"))
  300. FigS1d_data %>%
  301. ggplot(aes(x=gene, y=pct_positive)) +
  302. stat_summary(fun = mean, geom = "col", size =0.5) +
  303. stat_summary(fun.data = mean_se, geom = "errorbar", width=0.5, size=1)+
  304. geom_point(aes(y= pct_positive), size =2, color="gray", fill = "gray")+
  305. theme_classic()+
  306. ylim(0,100)+
  307. scale_y_continuous(breaks = c(10,20,30,40,50,60,70,80,90,100), limits = c(0,100))+
  308. ggtitle("percentage of MSNs positive for 5HTR genes")
  309. ```
  310. #-------------------------------------------------------------------------------
  311. PLOT 5HTR GENE EXPRESSION BY GENE
  312. #-------------------------------------------------------------------------------
  313. This piece of code generates the data shown in Sup Fig 1e, which was then
  314. imported into Graphpad Prism to be plotted in a style matching the rest of the
  315. figures in the paper and for additional statistical testing.
  316. ```{r}
  317. FigS1e_data <- FigS1_data %>%
  318. filter(gene_type == "htrs") %>%
  319. droplevels() %>%
  320. group_by(mouse.id, gene_type, gene) %>%
  321. summarize(cpm = mean(cpm))
  322. #reorder factor
  323. FigS1e_data$gene <- factor(FigS1e_data$gene, levels=c("Htr1d", "Htr1b", "Htr1f", "Htr5a", "Htr5b",
  324. "Htr1a", "Htr2c", "Htr2a", "Htr2b", "Htr4",
  325. "Htr6", "Htr7", "Htr3a", "Htr3b"))
  326. FigS1e_data %>%
  327. ggplot(aes(x=gene, y=log10(cpm+1))) +
  328. stat_summary(fun = mean, geom = "col", size =0.5) +
  329. stat_summary(fun.data = mean_se, geom = "errorbar", width=0.5, size=1)+
  330. geom_point(aes(y= log10(cpm+1)), size =2, color="gray", fill = "gray")+
  331. theme_classic()+
  332. ylim(0,2.1)+
  333. ggtitle("5HTR gene expression")
  334. ```
  335. #-------------------------------------------------------------------------------
  336. PLOT 5HTR GENE EXPRESSION BY STRIATAL COMPARTMENT
  337. #-------------------------------------------------------------------------------
  338. This piece of code generates the data shown in Sup Fig 1f, which was then
  339. imported into Graphpad Prism to be plotted in a style matching the rest of the
  340. figures in the paper and for additional statistical testing.
  341. ```{r}
  342. FigS1f_data <- FigS1_data %>%
  343. filter(gene_type == "htrs") %>%
  344. droplevels() %>%
  345. mutate(compartment = fct_collapse(continuous.subtype,
  346. patch = c("Htr7.vMedpat",
  347. "Pat.Dorsolateral_CPu",
  348. "Pat.Ventromedial"),
  349. matrix = c("Mat.Dorsolateral_CPu",
  350. "Mat.Ventromedial_CPu"),
  351. other_level = "other")) %>%
  352. filter(compartment != "other") %>%
  353. group_by(mouse.id, compartment, gene_type, gene) %>%
  354. summarize(cpm = mean(cpm))
  355. #reorder factor
  356. FigS1f_data$gene <- factor(FigS1f_data$gene, levels=c("Htr1d", "Htr1b", "Htr1f", "Htr5a", "Htr5b",
  357. "Htr1a", "Htr2c", "Htr2a", "Htr2b", "Htr4",
  358. "Htr6", "Htr7", "Htr3a", "Htr3b"))
  359. dodge_width <- 0.75
  360. FigS1f_data %>%
  361. ggplot(aes(x=gene, y=log10(cpm+1), group=compartment, fill=compartment)) +
  362. stat_summary(fun = mean, geom = "col", size =0.5, position = position_dodge(width=dodge_width)) +
  363. stat_summary(fun.data = mean_se, geom = "errorbar", width=0.5, size=1, position = position_dodge(width=dodge_width))+
  364. geom_point(aes(y= log10(cpm+1)), size =2, color="gray", fill = "gray", position = position_dodge(width=dodge_width))+
  365. theme_classic()+
  366. ylim(0,2.1)+
  367. ggtitle("5HTR gene expression")
  368. ```
  369. #-------------------------------------------------------------------------------
  370. GENE COEXPRESSION ANALYSIS
  371. #-------------------------------------------------------------------------------
  372. This code reproduces the correlation heatmap in Sup Fig 1g
  373. ```{r}
  374. #start by selecting genes of interest, calculating log cpm for each gene, and pivoting to wide form data frame
  375. FigS1g_data <- FigS1_data %>%
  376. mutate(log.cpm = log10(cpm+1)) %>% #calculate log cpm
  377. dplyr::select(cell, gene, log.cpm) %>%
  378. filter(
  379. gene == "Drd1a" |gene == "Pdyn" | gene == "Tac1" | #D1 markers
  380. gene == "Drd2" | gene == "Penk" | gene == "Adora2a" | #D2 markers
  381. # gene == "Htr1a" | #exclude because count value for this gene = 0 for all cells
  382. gene == "Htr1b" |
  383. gene == "Htr1d" |
  384. gene == "Htr1e" |
  385. gene == "Htr1f" |
  386. gene == "Htr2a" |
  387. gene == "Htr2b" |
  388. gene == "Htr2c" |
  389. # gene == "Htr3a" | #exclude because count value for this gene = 0 for all cells
  390. # gene == "Htr3b" | #exclude because count value for this gene = 0 for all cells
  391. gene == "Htr4" |
  392. gene == "Htr5a" |
  393. # gene == "Htr5b" |#exclude because count value for this gene = 0 for all cells
  394. gene == "Htr6" |
  395. gene == "Htr7"
  396. ) %>%
  397. pivot_wider(names_from = gene, values_from = log.cpm) %>%
  398. relocate(cell,
  399. Drd1a, Tac1, Pdyn,
  400. Penk, Adora2a, Drd2,
  401. Htr6, Htr1f, Htr1d, Htr5a,
  402. Htr2c, Htr4, Htr1b, Htr7, Htr2a, Htr2b)
  403. #calculate correlation matrix
  404. cormat <- cor(scale(FigS1g_data[,c(2:ncol(FigS1g_data))]), method = "spearman")
  405. #set some parameters for plotting the heatmap, and choose which correlations to plot
  406. par(mar = c(1, 1, 1, 1))
  407. dispmat <- t(cormat[,1:6])
  408. #plot the correlation heatmap
  409. (FigS1g_plot <- heatmap.2(dispmat, trace="none", col=bluered(100), density.info = "none", keysize= 0.5, symkey = TRUE, revC = TRUE, key.xlab = "Spearman's r", dendrogram = "both", scale = "none", lwid=c(10,20), lhei=c(6,12), cexRow = .75, cexCol = .75, main="GENE COEXPRESSION ANALYSIS", Colv = FALSE, Rowv = TRUE, na.rm = TRUE))
  410. ```

CardozoPinto_Guo_2026_FigS1_code.Rmd at commit 6dae371, no license · at the source

Overview

  1. Nancy Pritzker Laboratory, Department of Psychiatry and Behavioral Sciences, Stanford University School of Medicine, Stanford, CA USA
  2. Present Address: Society of Fellows, Harvard University, Cambridge, MA USA
  3. Present Address: Department of Molecular and Cellular Biology, Harvard University, Cambridge, MA USA
  4. Department of Psychiatry and Behavioral Sciences, University of Washington, Seattle, WA USA
  5. Department of Pharmacology, University of Washington, Seattle, WA USA
  6. Department of Psychiatry and Behavioral Sciences, Stanford University School of Medicine, Stanford, CA USA
Institutions: Harvard University (United States); Stanford Medicine (United States); Stanford University (United States); University of Washington (United States)
Journal: Nature communications, volume 17, issue 1, article 3964
Dates: received 5 May 2025; accepted 26 February 2026; published online 14 March 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s41467-026-70519-8 · PMID 41832154 · PMCID PMC13133351 · OpenAlex W7135389760
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: mouse (organism), other condition (population), cellular / molecular (subfield)
Methods: Statistics, Evoked potentials, Connectivity, fMRI & imaging, Single-unit activity, calcium imaging
Keywords: Excitability, Neural circuits
MeSH: Cocaine*, Dopamine*, Medium Spiny Neurons*, Receptors, Dopamine D2*, Reward*, Serotonin*, Animals, Corpus Striatum, Male, Mice, Mice, Inbred C57BL, Neurons, Receptor, Serotonin, 5-HT2A, Receptor, Serotonin, 5-HT2C (* major topic)
Topic: Neurotransmitter Receptor Influence on Behavior (Cellular and Molecular Neuroscience, Neuroscience), according to OpenAlex
Funding: NIMH NIH HHS (K08 MH123791, R01 MH138645); U.S. Department of Health & Human Services | National Institutes of Health (NIH) (K08MH123791, K99DA056573, P50DA042012, P30DA048736, R01MH138645); Burroughs Wellcome Fund (BWF) (Career Award for Medical Scientists); NIDA NIH HHS (K99 DA056573, P50 DA042012, P30 DA048736); Simons Foundation (Bridge to Independence Award); Brain and Behavior Research Foundation (Brain & Behavior Research Foundation) (Young Investigator Grant); Howard Hughes Medical Institute (HHMI) (Gilliam Fellowship)
Citations: not cited yet (Europe PMC); 91 references in the paper

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.

Repository

Its files are read in the Code ↔ Paper reader above, with 6 matches between paragraphs and lines of code.

dcardozop/CardozoPinto_Guo_2026_NatCommun

License: none: the authors keep all their rights
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Commit: 6dae371f6a68252a920d4400738b8a5256d54727, 23 January 2026
Languages: R (5)
Size: 6 files, 5 scripts
Software Heritage: not archived
Found in: “Code availability”
Holds: README, 5 notebooks
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: tidyverse (5 files)
Availability: 1 check, the latest on 30 September 2026: the link answers
  • 30 September 2026: the link answers
6 files

Code availability statement

The paper has a code 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.1038/s41467-026-70519-8.

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;
  • 5 scripts, each with its path and the digest of its content;
  • 6 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

Datasets cited

Data availability statement

The paper has a 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.1038/s41467-026-70519-8.

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, 2 keywords, 14 MeSH terms, 7 funders, 86 references.

Cite

This paper

Cardozo Pinto, D. F., Guo, M. Y., Pomrenze, M. B., Morishita, W., Li, M. X., Zweifel, L. S., Eshel, N., & Malenka, R. C. (2026). Dopamine and serotonin inversely modulate D2 medium spiny neurons to regulate cocaine reward. Nature communications, 17(1), 3964. https://doi.org/10.1038/s41467-026-70519-8

BibTeX

@article{cardozopinto2026dopamine,
author = {Cardozo Pinto, Daniel F and Guo, Michaela Y and Pomrenze, Matthew B and Morishita, Wade and Li, Mona X and Zweifel, Larry S and Eshel, Neir and Malenka, Robert C},
title = {{Dopamine and serotonin inversely modulate D2 medium spiny neurons to regulate cocaine reward}},
journal = {Nature communications},
year = {2026},
month = mar,
volume = {17},
number = {1},
pages = {3964},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/s41467-026-70519-8},
url = {https://doi.org/10.1038/s41467-026-70519-8},
pmid = {41832154},
pmcid = {PMC13133351}
}

RIS

TY - JOUR
AU - Cardozo Pinto, Daniel F
AU - Guo, Michaela Y
AU - Pomrenze, Matthew B
AU - Morishita, Wade
AU - Li, Mona X
AU - Zweifel, Larry S
AU - Eshel, Neir
AU - Malenka, Robert C
TI - Dopamine and serotonin inversely modulate D2 medium spiny neurons to regulate cocaine reward
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/03/14
VL - 17
IS - 1
SP - 3964
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/s41467-026-70519-8
UR - https://doi.org/10.1038/s41467-026-70519-8
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41467-026-70519-8",
"type": "article-journal",
"title": "Dopamine and serotonin inversely modulate D2 medium spiny neurons to regulate cocaine reward",
"container-title": "Nature communications",
"author": [
{
"family": "Cardozo Pinto",
"given": "Daniel F"
},
{
"family": "Guo",
"given": "Michaela Y"
},
{
"family": "Pomrenze",
"given": "Matthew B"
},
{
"family": "Morishita",
"given": "Wade"
},
{
"family": "Li",
"given": "Mona X"
},
{
"family": "Zweifel",
"given": "Larry S"
},
{
"family": "Eshel",
"given": "Neir"
},
{
"family": "Malenka",
"given": "Robert C"
}
],
"container-title-short": "Nat Commun",
"volume": "17",
"issue": "1",
"page": "3964",
"DOI": "10.1038/s41467-026-70519-8",
"PMID": "41832154",
"PMCID": "PMC13133351",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41467-026-70519-8",
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
14
]
]
}
}

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/s41467-026-71357-4 [code]
Social reward outcompetes drug seeking dopaminergic ensembles to prevent relapse.
Journal: Nature communications
In common: other condition, 5 references
[2] doi:10.1016/j.isci.2026.115789
Noise-evoked dopamine dynamics in the nucleus accumbens and tail of the striatum.
Journal: iScience
In common: cellular / molecular, 4 references
[3] doi:10.7554/elife.106347 [code]
Esr1-dependent signaling and transcriptional maturation in the medial preoptic area of the hypothalamus shape the development of mating behavior during adolescence.
Journal: eLife
In common: tidyverse, mouse, author Larry S Zweifel
[4] doi:10.1038/s41586-026-10444-4 [code]
A brain reward circuit inhibited by next-generation weight-loss drugs in mice.
Journal: Nature
In common: tidyverse, mouse, author Larry S Zweifel
[5] doi:10.1126/sciadv.aee6579 [code]
Dopamine D2 receptors bypass canonical signaling to directly tune NMDA receptor function and aversive learning.
Journal: Science advances
In common: mouse, cellular / molecular, 3 references
[6] doi:10.1038/s41467-026-73268-w [code]
Olfactory tubercle mediates adaptive social behavior by controlling threat assessment and the expression of social threat memories during recall in male mice.
Journal: Nature communications
In common: mouse, 3 references
[7] doi:10.1038/s41467-026-77168-x [code]
Cholinergic-dependent dopamine signals in mouse dorsomedial striatum are regulated by frontal but not sensory cortices.
Journal: Nature communications
In common: mouse, 3 references
[8] doi:10.1038/s41467-026-73906-3 [code]
A synaptic mechanism for encoding the learned value of action-derived safety.
Journal: Nature communications
In common: tidyverse, mouse, cellular / molecular, 2 references
[9] doi:10.1038/s41467-026-73305-8 [code]
Comparative analysis of the cellular landscape in mammalian striatum.
Journal: Nature communications
In common: tidyverse, mouse, cellular / molecular, 2 references
[10] doi:10.1021/acschemneuro.6c00342
5-HT4 Receptor Ligand RS67333 Modulates Striatal Acetylcholine and Dopamine Release via the Inhibition of Acetylcholinesterase.
Journal: ACS chemical neuroscience
In common: mouse, cellular / molecular, 2 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.