OSCR

Drug-induced changes in connectivity to midbrain dopamine cells revealed by rabies monosynaptic tracing.

Code ↔ Paper

11 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 11 matches
  1. [1] § Materials and methods › Dimensionality reduction of RABV input data ↔ 10-gene-expression-analysis-cocaine.ipynb, lines 375–384 · score 0.74 · anterior cortex, DStr, LDT, PVH, LHb, VP
  2. [2] § Materials and methods › Experimental procedures › Stereotaxic surgery ↔ 2-DAT-Cre vs GAD2-Cre and vGluT2-Cre-euclidean.ipynb, lines 263–277 · score 0.71 · vGluT2, GAD2 Cre, DAT Cre, mPFC, cTRIO, Amygdala
  3. [3] § Materials and methods › Experimental procedures › Stereotaxic surgery ↔ 0-data-exploration-master-euclidean.ipynb, lines 2482–2537 · score 0.62 · vGluT2, mPFC, cTRIO, GAD2 Cre, DAT Cre, NAcLat
  4. [4] § Results › A single injection of an addictive drug changes brain-wide input patterns to VTADA cells ↔ 2-DAT-Cre vs GAD2-Cre and vGluT2-Cre-euclidean.ipynb, lines 263–277 · score 0.61 · vGluT2, GAD2 Cre, DAT Cre, isoflurane anesthetized, cocaine, cell
  5. [5] § Results › Exploring gene expression patterns that predict changes in RABV input labeling ↔ 11-gene-expression-analysis-comparison-controls.ipynb, lines 911–914 · score 0.57 · ligand gated ion, voltage gated ion, ion channel, gene expression
  6. [6] § Results › A single injection of an addictive drug changes brain-wide input patterns to VTADA cells ↔ 10-gene-expression-analysis-cocaine.ipynb, lines 375–384 · score 0.55 · DStr, PVH, LHb, VP, CeA, PO
  7. [7] § Results › Exploring gene expression patterns that predict changes in RABV input labeling ↔ 11-gene-expression-analysis-comparison-controls.ipynb, lines 1145–1186 · score 0.55 · exocytosis genes, linear regressions, endo, gene expression, ratios, drug
  8. [8] § Results › Dimensionality reduction methods identify differences in inputs of VTA cell populations ↔ 2-DAT-Cre vs GAD2-Cre and vGluT2-Cre-euclidean.ipynb, lines 540–550 · score 0.55 · Euclidean distance, GAD2 Cre, DAT Cre, PCA
  9. [9] § Results › Dimensionality reduction methods identify differences in inputs of VTA cell populations ↔ 2-DAT-Cre vs GAD2-Cre and vGluT2-Cre-euclidean.ipynb, lines 299–351 · score 0.54 · standard deviation, GAD2 Cre, DAT Cre, error, Dimensionality
  10. [10] § Results › Exploring gene expression patterns that predict changes in RABV input labeling ↔ 11-gene-expression-analysis-comparison-controls.ipynb, lines 911–914 · score 0.51 · ligand gated ion, voltage gated ion, ion channel, Gene Expression
  11. [11] § Results › Dimensionality reduction methods identify differences in inputs of VTA cell populations ↔ 10-gene-expression-analysis-cocaine.ipynb, lines 400–438 · score 0.50 · anterior cortex, LHb, VP, CeA, PO, EP

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 · 687 lines · 27 KB · MIT · 4 matches

  1. # %%
  2. #import things we need
  3. import pandas as pd
  4. import numpy as np
  5. import matplotlib.pyplot as plt
  6. from sklearn.preprocessing import StandardScaler
  7. from sklearn.decomposition import PCA
  8. import umap
  9. import seaborn as sns
  10. from scipy.stats import zscore
  11. from matplotlib.patches import Ellipse
  12. import matplotlib.transforms as transforms
  13. # %% [markdown]
  14. # # Load data, rotate as needed, join dataframes together for ease of processing later
  15. # %%
  16. set_metric='euclidean'
  17. set_stdevs=1
  18. # %%
  19. #import data DAT-cre
  20. DATcre66T = pd.read_excel(r'data/8dat-crebrains.xlsx')
  21. #and import dat cre and gad2 also from 76 brain set
  22. DATcre66T_gad2 = pd.read_excel(r'data/12datcre-and-gad2.xlsx')
  23. # %%
  24. DATcre66T_gad2
  25. # %%
  26. VGlut2_cre = pd.read_excel(r'data/vGluT2-Cre.xlsx')
  27. # %%
  28. #import data (all DA cells)
  29. all_DA_cells = ['Cocaine','Control ketamine anesthesia','Control isoflurane anesthesia','Amphetamine',
  30. 'Nicotine','Morphine','Fluoxetine','MDMA group','MDMA isolated','Ethanol','Stress',
  31. 'GAD2-Cre isoflurane','GAD2-Cre Cocaine','GAD2-Cre isoflurane (lateral)']
  32. all_DA_cells_df = {} #empty dictionary
  33. num_drugs=len(all_DA_cells) #get number of drugs/conditions
  34. for drug in range(num_drugs):
  35. #read in the sheet with that drug name
  36. tempdf = pd.read_excel(r'data/organized drug and experience data for Bartas et al.xlsx',sheet_name=all_DA_cells[drug])
  37. #add id column with drug name and condition
  38. tempdf['condition']=all_DA_cells[drug]
  39. list1=list(tempdf['condition'])
  40. length=len(tempdf['condition'])
  41. list2=list(range(1,length+1))
  42. tempdf['condition_num']=[str(s) +'-'+ str(num) for s,num in zip(list1,list2)]
  43. tempdf.dropna(inplace=True)
  44. all_DA_cells_df[drug]=tempdf #put into dictionary at index
  45. # %%
  46. # #import NAcMed data
  47. NAcMeds = ['cTRIO NAcMed cocaine 1 inj','NAcMed controls','cTRIO NAcMed C 5 inj',
  48. 'cTRIO NAcMed FC','cTRIO NAcMed ketamine anesthesi']
  49. NAcMeds_df = {} #empty dictionary
  50. num_drugs=len(NAcMeds) #get number of drugs/conditions
  51. for drug in range(num_drugs):
  52. #read in the sheet with that drug name
  53. tempdf = pd.read_excel(r'data/organized drug and experience data for Bartas et al.xlsx',sheet_name=NAcMeds[drug])
  54. #add id column with drug name and condition
  55. tempdf['condition']=NAcMeds[drug]
  56. list1=list(tempdf['condition'])
  57. length=len(tempdf['condition'])
  58. list2=list(range(1,length+1))
  59. tempdf['condition_num']=[str(s) +'-'+ str(num) for s,num in zip(list1,list2)]
  60. tempdf.dropna(inplace=True)
  61. NAcMeds_df[drug]=tempdf #put into dictionary at index
  62. # %%
  63. NAcMed_data=pd.concat(
  64. NAcMeds_df,
  65. axis=0,
  66. join="outer",
  67. ignore_index=False,
  68. keys=None,
  69. levels=None,
  70. names=None,
  71. verify_integrity=False,
  72. copy=True,
  73. )
  74. # %%
  75. # #import NAcLat data
  76. NAcLats = ['cTRIO NAcLat cocaine','NAcLat iso saline controls','cTRIO NAcLat C 5 inj',
  77. 'cTRIO NAcLat FC','cTRIO NAcLat ketamine anesthesi']
  78. NAcLats_df = {} #empty dictionary
  79. num_drugs=len(NAcLats) #get number of drugs/conditions
  80. for drug in range(num_drugs):
  81. #read in the sheet with that drug name
  82. tempdf = pd.read_excel(r'data/organized drug and experience data for Bartas et al.xlsx',sheet_name=NAcLats[drug])
  83. #add id column with drug name and condition
  84. tempdf['condition']=NAcLats[drug]
  85. list1=list(tempdf['condition'])
  86. length=len(tempdf['condition'])
  87. list2=list(range(1,length+1))
  88. tempdf['condition_num']=[str(s) +'-'+ str(num) for s,num in zip(list1,list2)]
  89. tempdf.dropna(inplace=True)
  90. NAcLats_df[drug]=tempdf #put into dictionary at index
  91. # %%
  92. #combine NAcLat data
  93. NAcLat_data=pd.concat(
  94. NAcLats_df,
  95. axis=0,
  96. join="outer",
  97. ignore_index=False,
  98. keys=None,
  99. levels=None,
  100. names=None,
  101. verify_integrity=False,
  102. copy=True,
  103. )
  104. # %%
  105. # #import DLS data
  106. DLSs = ['DLS_sal','DLS_coc1x','DLS_FC']
  107. DLSs_df = {} #empty dictionary
  108. num_drugs=len(DLSs) #get number of drugs/conditions
  109. for drug in range(num_drugs):
  110. #read in the sheet with that drug name
  111. tempdf = pd.read_excel(r'data/organized drug and experience data for Bartas et al.xlsx',
  112. sheet_name=DLSs[drug],skiprows=1)
  113. tempdf=tempdf.transpose()
  114. tempdf.columns = tempdf.iloc[0]
  115. tempdf = tempdf.iloc[1: , :]
  116. #add id column with drug name and condition
  117. tempdf['condition']=DLSs[drug]
  118. list1=list(tempdf['condition'])
  119. length=len(tempdf['condition'])
  120. list2=list(range(1,length+1))
  121. tempdf['condition_num']=[str(s) +'-'+ str(num) for s,num in zip(list1,list2)]
  122. tempdf.dropna(inplace=True)
  123. DLSs_df[drug]=tempdf #put into dictionary at index
  124. # %%
  125. #combine DLS data
  126. DLS_data=pd.concat(
  127. DLSs_df,
  128. axis=0,
  129. join="outer",
  130. ignore_index=False,
  131. keys=None,
  132. levels=None,
  133. names=None,
  134. verify_integrity=False,
  135. copy=True,
  136. )
  137. # %%
  138. # #import amygdala data
  139. Amygs = ['cTRIO Amygdala cocaine 1 dose','cTRIO Amygdala isoflurane anest','cTRIO Amygdala AFC']
  140. Amygs2= ['cTRIO Amygdala ketamine anesthe']
  141. Amygs_df = {} #empty dictionary
  142. num_drugs=len(Amygs) #get number of drugs/conditions
  143. for drug in range(num_drugs):
  144. #read in the sheet with that drug name
  145. tempdf = pd.read_excel(r'data/organized drug and experience data for Bartas et al.xlsx',
  146. sheet_name=Amygs[drug],skiprows=1)
  147. tempdf=tempdf.transpose()
  148. tempdf.columns = tempdf.iloc[0]
  149. tempdf = tempdf.iloc[1: , :]
  150. #add id column with drug name and condition
  151. tempdf['condition']=Amygs[drug]
  152. list1=list(tempdf['condition'])
  153. length=len(tempdf['condition'])
  154. list2=list(range(1,length+1))
  155. tempdf['condition_num']=[str(s) +'-'+ str(num) for s,num in zip(list1,list2)]
  156. tempdf.dropna(inplace=True)
  157. Amygs_df[drug]=tempdf #put into dictionary at index
  158. for drug in range(1):
  159. #read in the sheet with that drug name
  160. tempdf = pd.read_excel(r'data/organized drug and experience data for Bartas et al.xlsx',sheet_name=Amygs2[drug])
  161. #add id column with drug name and condition
  162. tempdf['condition']=Amygs2[drug]
  163. list1=list(tempdf['condition'])
  164. length=len(tempdf['condition'])
  165. list2=list(range(1,length+1))
  166. tempdf['condition_num']=[str(s) +'-'+ str(num) for s,num in zip(list1,list2)]
  167. tempdf.dropna(inplace=True)
  168. Amygs_df[3]=tempdf #put into dictionary at index
  169. # %%
  170. #combine Amyg data
  171. Amyg_data=pd.concat(
  172. Amygs_df,
  173. axis=0,
  174. join="outer",
  175. ignore_index=False,
  176. keys=None,
  177. levels=None,
  178. names=None,
  179. verify_integrity=False,
  180. copy=True,
  181. )
  182. # %%
  183. Amyg_data.dropna(inplace=True,axis=1)
  184. # %%
  185. #import mPFC data
  186. mPFCs = ['cTRIO mPFC isoflurane anesthesi','cTRIO mPFC cocaine 1 dose','cTRIO mPFC AFC']
  187. mPFCs2= ['cTRIO mPFC ketamine anesthesia']
  188. mPFCs_df = {} #empty dictionary
  189. num_drugs=len(mPFCs) #get number of drugs/conditions
  190. for drug in range(num_drugs):
  191. #read in the sheet with that drug name
  192. tempdf = pd.read_excel(r'data/organized drug and experience data for Bartas et al.xlsx',
  193. sheet_name=mPFCs[drug],skiprows=1)
  194. tempdf=tempdf.transpose()
  195. tempdf.columns = tempdf.iloc[0]
  196. tempdf = tempdf.iloc[1: , :]
  197. #add id column with drug name and condition
  198. tempdf['condition']=mPFCs[drug]
  199. list1=list(tempdf['condition'])
  200. length=len(tempdf['condition'])
  201. list2=list(range(1,length+1))
  202. tempdf['condition_num']=[str(s) +'-'+ str(num) for s,num in zip(list1,list2)]
  203. tempdf.dropna(inplace=True)
  204. mPFCs_df[drug]=tempdf #put into dictionary at index
  205. for drug in range(1):
  206. #read in the sheet with that drug name
  207. tempdf = pd.read_excel(r'data/organized drug and experience data for Bartas et al.xlsx',sheet_name=mPFCs2[drug])
  208. #add id column with drug name and condition
  209. tempdf['condition']=mPFCs2[drug]
  210. list1=list(tempdf['condition'])
  211. length=len(tempdf['condition'])
  212. list2=list(range(1,length+1))
  213. tempdf['condition_num']=[str(s) +'-'+ str(num) for s,num in zip(list1,list2)]
  214. tempdf.dropna(inplace=True)
  215. mPFCs_df[3]=tempdf #put into dictionary at index
  216. # %%
  217. # combine mPFC data
  218. mPFC_data=pd.concat(
  219. mPFCs_df,
  220. axis=0,
  221. join="outer",
  222. ignore_index=False,
  223. keys=None,
  224. levels=None,
  225. names=None,
  226. verify_integrity=False,
  227. copy=True,
  228. )
  229. # %%
  230. mPFC_data.dropna(inplace=True,axis=1)
  231. # %%
  232. all_data=pd.concat(
  233. all_DA_cells_df,
  234. axis=0,
  235. join="outer",
  236. ignore_index=False,
  237. keys=None,
  238. levels=None,
  239. names=None,
  240. verify_integrity=False,
  241. copy=True,
  242. )
  243. # %%
  244. categories= pd.DataFrame({'group_name':['Psychostimulants','Controls','Controls',
  245. 'Psychostimulants','Other','Other','Controls','MDMA','MDMA','Other',
  246. 'Other','GAD2-Cre','GAD2-Cre','GAD2-Cre'],'condition5':all_DA_cells})
  247. categories2= pd.DataFrame({'group_name':['Cocaine','Controls','Cocaine',
  248. 'FC','Controls'],'condition5':NAcMeds})
  249. categories3= pd.DataFrame({'group_name':['Cocaine','Controls','Cocaine',
  250. 'FC','Controls'],'condition5':NAcLats})
  251. categories4= pd.DataFrame({'group_name':['Cocaine','Controls','AFC',
  252. 'Controls'],'condition5':['cTRIO Amygdala cocaine 1 dose','cTRIO Amygdala isoflurane anest','cTRIO Amygdala AFC','cTRIO Amygdala ketamine anesthe']})
  253. categories5= pd.DataFrame({'group_name':['Controls','Cocaine',
  254. 'AFC','Controls'],'condition5':['cTRIO mPFC isoflurane anesthesi','cTRIO mPFC cocaine 1 dose','cTRIO mPFC AFC','cTRIO mPFC ketamine anesthesia']})
  255. categories6= pd.DataFrame({'group_name':['DAT-Cre','DAT-Cre','GAD2-Cre'],'condition5':['DAT-Cre', 'DAT-Cre 66T','Gad2-Cre']})
  256. categories7= pd.DataFrame({'group_name':['vGluT2-Cre'],'condition5':['vGluT2-Cre']})
  257. categories=pd.concat([categories,categories2,categories3,categories4,categories5,categories6,categories7])
  258. # %%
  259. all_data.replace({'GAD2-Cre isoflurane': 'Gad2-Cre', 'GAD2-Cre isoflurane (lateral)': 'Gad2-Cre'},inplace=True)
  260. # %% [markdown]
  261. # # Define some functions, variables, and other things we will use
  262. # %%
  263. uniq_colors=['mediumorchid','gray','royalblue','darkred','red','hotpink',
  264. 'khaki','palegreen','seagreen','orange','lavender',
  265. 'steelblue','navy','dodgerblue','thistle','violet',
  266. 'deeppink','pink','slateblue','peru','darkorange',
  267. 'magenta','cyan','lightcoral','lawngreen',
  268. 'burlywood'] # to use later
  269. uniq_colors2=['mediumorchid','gray','royalblue','darkred','hotpink',
  270. 'khaki','palegreen','seagreen','orange','lavender',
  271. 'steelblue','navy','dodgerblue','thistle','violet',
  272. 'deeppink','pink','slateblue','peru','darkorange',
  273. 'magenta','cyan','lightcoral','lawngreen',
  274. 'burlywood','red'] # to use later
  275. # %%
  276. #from https://matplotlib.org/devdocs/gallery/statistics/confidence_ellipse.html
  277. def confidence_ellipse(x, y, ax, n_std=set_stdevs, facecolor='none', **kwargs):
  278. """
  279. Create a plot of the covariance confidence ellipse of *x* and *y*.
  280. Parameters
  281. ----------
  282. x, y : array-like, shape (n, )
  283. Input data.
  284. ax : matplotlib.axes.Axes
  285. The axes object to draw the ellipse into.
  286. n_std : float
  287. The number of standard deviations to determine the ellipse's radiuses.
  288. **kwargs
  289. Forwarded to `~matplotlib.patches.Ellipse`
  290. Returns
  291. -------
  292. matplotlib.patches.Ellipse
  293. """
  294. if x.size != y.size:
  295. raise ValueError("x and y must be the same size")
  296. cov = np.cov(x, y)
  297. pearson = cov[0, 1]/np.sqrt(cov[0, 0] * cov[1, 1])
  298. # Using a special case to obtain the eigenvalues of this
  299. # two-dimensionl dataset.
  300. ell_radius_x = np.sqrt(1 + pearson)
  301. ell_radius_y = np.sqrt(1 - pearson)
  302. ellipse = Ellipse((0, 0), width=ell_radius_x * 2, height=ell_radius_y * 2,
  303. facecolor=facecolor, **kwargs)
  304. # Calculating the stdandard deviation of x from
  305. # the squareroot of the variance and multiplying
  306. # with the given number of standard deviations.
  307. scale_x = np.sqrt(cov[0, 0]) * n_std
  308. mean_x = np.mean(x)
  309. # calculating the stdandard deviation of y ...
  310. scale_y = np.sqrt(cov[1, 1]) * n_std
  311. mean_y = np.mean(y)
  312. transf = transforms.Affine2D() \
  313. .rotate_deg(45) \
  314. .scale(scale_x, scale_y) \
  315. .translate(mean_x, mean_y)
  316. ellipse.set_transform(transf + ax.transData)
  317. return ax.add_patch(ellipse)
  318. # %%
  319. def signif(x, p): #get p significant digits of all of a numpy array (why does base numpy not have this...)
  320. x = np.asarray(x)
  321. x_positive = np.where(np.isfinite(x) & (x != 0), np.abs(x), 10**(p-1))
  322. mags = 10 ** (p - 1 - np.floor(np.log10(x_positive)))
  323. return np.round(x * mags) / mags
  324. # %%
  325. def plot_components(components_df): #plot feature importance of the PCA components 1-5
  326. #code adapted from
  327. #https://matplotlib.org/stable/gallery/images_contours_and_fields/image_annotated_heatmap.html
  328. fig, ax = plt.subplots(figsize=(6, 13))
  329. comptemp0=components_df.transpose()
  330. comptemp1=comptemp0.to_numpy()
  331. comptemp=signif(comptemp1,3)
  332. im = ax.imshow(comptemp)
  333. pca5=['PC 1', 'PC 2', 'PC 3', 'PC 4', 'PC 5']
  334. regions=components_df.columns
  335. # We want to show all ticks...
  336. ax.set_xticks(np.arange(len(pca5)))
  337. ax.set_yticks(np.arange(len(regions)))
  338. # ... and label them with the respective list entries
  339. ax.set_xticklabels(pca5)
  340. ax.set_yticklabels(regions)
  341. # Rotate the tick labels and set their alignment.
  342. plt.setp(ax.get_xticklabels(), rotation=45, ha="right",
  343. rotation_mode="anchor")
  344. fig.colorbar(im)
  345. # Loop over data dimensions and create text annotations.
  346. for i in range(len(regions)):
  347. for j in range(len(pca5)):
  348. text = ax.text(j, i, comptemp[i, j],
  349. ha="center", va="center", color="w")
  350. ax.set_title("Components and Feature Importance")
  351. fig.tight_layout()
  352. plt.show()
  353. # %%
  354. def make_pca_plots_label(pc1,pc2,pc3,group,labels): #makes plots of pc1v2, 1v3, and 2v3
  355. align_embed= pd.DataFrame({'pc1': pc1.values,'pc2': pc2.values,'pc3': pc3.values},index=labels)
  356. fig, ax = plt.subplots(figsize=(12, 10)) #init fig
  357. for i,r in enumerate(np.unique(align_embed.index.values)):
  358. drug1=align_embed[align_embed.index == r]
  359. ax.scatter(drug1['pc1'],drug1['pc2'],c=uniq_colors[i],label=r)
  360. ax.set_xlabel('PC 1')
  361. ax.set_ylabel('PC 2')
  362. for i, txt in enumerate(group):
  363. ax.annotate(txt, (pc1[i], pc2[i]))
  364. ax.legend(loc="right",bbox_to_anchor=(1.6, 0.5)) #make legend not on the plot
  365. plt.show()
  366. fig, ax = plt.subplots(figsize=(12, 10)) #init fig
  367. for i,r in enumerate(np.unique(align_embed.index.values)):
  368. drug1=align_embed[align_embed.index == r]
  369. ax.scatter(drug1['pc1'],drug1['pc3'],c=uniq_colors[i],label=r)
  370. ax.set_xlabel('PC 1')
  371. ax.set_ylabel('PC 3')
  372. for i, txt in enumerate(group):
  373. ax.annotate(txt, (pc1[i], pc3[i]))
  374. ax.legend(loc="right",bbox_to_anchor=(1.6, 0.5)) #make legend not on the plot
  375. plt.show()
  376. fig, ax = plt.subplots(figsize=(12, 10)) #init fig
  377. for i,r in enumerate(np.unique(align_embed.index.values)):
  378. drug1=align_embed[align_embed.index == r]
  379. ax.scatter(drug1['pc2'],drug1['pc3'],c=uniq_colors[i],label=r)
  380. ax.set_xlabel('PC 2')
  381. ax.set_ylabel('PC 3')
  382. for i, txt in enumerate(group):
  383. ax.annotate(txt, (pc2[i], pc3[i]))
  384. ax.legend(loc="right",bbox_to_anchor=(1.6, 0.5)) #make legend not on the plot
  385. plt.show()
  386. # %%
  387. def make_pca_plots_ellipse(pc1,pc2,pc3,group,labels,grouped_elipse='no'): #makes plots of pc1v2, 1v3, and 2v3
  388. align_embed= pd.DataFrame({'pc1': pc1.values,'pc2': pc2.values,'pc3': pc3.values},index=labels)
  389. fig, ax = plt.subplots(figsize=(12, 10)) #init fig
  390. if grouped_elipse=='no':
  391. for i,r in enumerate(np.unique(align_embed.index.values)):
  392. drug1=align_embed[align_embed.index == r]
  393. ax.scatter(drug1['pc1'],drug1['pc2'],c=uniq_colors[i],label=r)
  394. confidence_ellipse(drug1['pc1'],drug1['pc2'], ax, alpha=0.5, n_std=set_stdevs, facecolor=uniq_colors2[i], edgecolor=uniq_colors2[i], zorder=0)
  395. ax.set_xlabel('PC 1')
  396. ax.set_ylabel('PC 2')
  397. ax.legend(loc="right",bbox_to_anchor=(1.6, 0.5)) #make legend not on the plot
  398. plt.show()
  399. fig, ax = plt.subplots(figsize=(12, 10)) #init fig
  400. for i,r in enumerate(np.unique(align_embed.index.values)):
  401. drug1=align_embed[align_embed.index == r]
  402. ax.scatter(drug1['pc1'],drug1['pc3'],c=uniq_colors[i],label=r)
  403. confidence_ellipse(drug1['pc1'],drug1['pc3'], ax, alpha=0.5, n_std=set_stdevs, facecolor=uniq_colors2[i], edgecolor=uniq_colors2[i], zorder=0)
  404. ax.set_xlabel('PC 1')
  405. ax.set_ylabel('PC 3')
  406. ax.legend(loc="right",bbox_to_anchor=(1.6, 0.5)) #make legend not on the plot
  407. plt.show()
  408. fig, ax = plt.subplots(figsize=(12, 10)) #init fig
  409. for i,r in enumerate(np.unique(align_embed.index.values)):
  410. drug1=align_embed[align_embed.index == r]
  411. ax.scatter(drug1['pc2'],drug1['pc3'],c=uniq_colors[i],label=r)
  412. confidence_ellipse(drug1['pc2'],drug1['pc3'], ax, alpha=0.5, n_std=set_stdevs, facecolor=uniq_colors2[i], edgecolor=uniq_colors2[i], zorder=0)
  413. ax.set_xlabel('PC 2')
  414. ax.set_ylabel('PC 3')
  415. else:
  416. align_embed['condition5']=labels #categories
  417. category_df=align_embed.merge(categories,on='condition5',copy=True).dropna()
  418. for i,r in enumerate(np.unique(align_embed.index.values)):
  419. drug1=align_embed[align_embed.index == r]
  420. ax.scatter(drug1['pc1'],drug1['pc2'],c=uniq_colors[i],label=r)
  421. ax.set_xlabel('PC 1')
  422. ax.set_ylabel('PC 2')
  423. for i,r in enumerate(np.unique(category_df['group_name'])):
  424. drug1=category_df[category_df['group_name']== r]
  425. confidence_ellipse(drug1['pc1'],drug1['pc2'], ax, alpha=0.5, n_std=set_stdevs, facecolor=uniq_colors2[i], edgecolor=uniq_colors2[i], zorder=0,label=r)
  426. ax.legend(loc="right",bbox_to_anchor=(1.6, 0.5)) #make legend not on the plot
  427. plt.show()
  428. fig, ax = plt.subplots(figsize=(12, 10)) #init fig
  429. for i,r in enumerate(np.unique(align_embed.index.values)):
  430. drug1=align_embed[align_embed.index == r]
  431. ax.scatter(drug1['pc1'],drug1['pc3'],c=uniq_colors[i],label=r)
  432. ax.set_xlabel('PC 1')
  433. ax.set_ylabel('PC 3')
  434. for i,r in enumerate(np.unique(category_df['group_name'])):
  435. drug1=category_df[category_df['group_name']== r]
  436. confidence_ellipse(drug1['pc1'],drug1['pc3'], ax, alpha=0.5, n_std=set_stdevs, facecolor=uniq_colors2[i], edgecolor=uniq_colors2[i], zorder=0,label=r)
  437. ax.legend(loc="right",bbox_to_anchor=(1.6, 0.5)) #make legend not on the plot
  438. plt.show()
  439. fig, ax = plt.subplots(figsize=(12, 10)) #init fig
  440. for i,r in enumerate(np.unique(align_embed.index.values)):
  441. drug1=align_embed[align_embed.index == r]
  442. ax.scatter(drug1['pc2'],drug1['pc3'],c=uniq_colors[i],label=r)
  443. ax.set_xlabel('PC 2')
  444. ax.set_ylabel('PC 3')
  445. for i,r in enumerate(np.unique(category_df['group_name'])):
  446. drug1=category_df[category_df['group_name']== r]
  447. confidence_ellipse(drug1['pc2'],drug1['pc3'], ax, alpha=0.5, n_std=set_stdevs, facecolor=uniq_colors2[i], edgecolor=uniq_colors2[i], zorder=0,label=r)
  448. ax.legend(loc="right",bbox_to_anchor=(1.6, 0.5)) #make legend not on the plot
  449. plt.show()
  450. # %%
  451. def get_feats_and_labels(dataframe): #gets features and conditions (drugs) and brain regions
  452. labels=dataframe['condition'].values
  453. condition_nums=dataframe['condition_num'].values
  454. features=dataframe.iloc[: , 2:24]
  455. regions=features.columns
  456. return features, labels, condition_nums, regions
  457. # %%
  458. gad2only2=all_data[(all_data["condition"] == 'Gad2-Cre')]
  459. features4, labels4, condition_nums4, regions4 = get_feats_and_labels(gad2only2)
  460. # %%
  461. #modularized pieter's code
  462. def umap_n_times(X_scaled,labels,N = 20,n_neighbors=15,metric='euclidean'):
  463. umap_distances = np.zeros((len(labels),len(labels),N,))
  464. for n in range(0,N):
  465. embedding=umap.UMAP(n_neighbors=n_neighbors,metric=metric).fit_transform(X_scaled)
  466. for r1 in range(0,len(labels)):
  467. for r2 in range(0,len(labels)):
  468. d = np.sum((embedding[r1]-embedding[r2])**2)**(0.5)
  469. umap_distances[r1,r2,n]=d
  470. max_distance = np.max(umap_distances[:,:,n])
  471. umap_distances[:,:,n] = umap_distances[:,:,n]/max_distance
  472. umap_distances_means = np.mean(umap_distances,axis=2)
  473. return umap_distances_means
  474. # %%
  475. #modularized pieter's code
  476. def umap_dist_heatmap(t1,indexed='no'):
  477. if indexed=='yes':
  478. labs=labels.values
  479. uniq=list(range(len(labels)))
  480. uniq_labels = [str(i) +'_'+ str(j) for i, j in zip(labs, uniq)]
  481. else:
  482. labs=labels.values
  483. uniq=[x[1] for x in labels.index.values]
  484. uniq_labels = [str(i) +'_'+ str(j) for i, j in zip(labs, uniq)]
  485. fig,ax =plt.subplots(figsize=(10,4))
  486. plt.pcolor(t1, cmap="RdYlBu_r")
  487. plt.yticks(np.arange(0.5, len(uniq_labels), 1),uniq_labels)
  488. plt.xticks(np.arange(0.5, len(uniq_labels), 1),uniq_labels)
  489. plt.colorbar()
  490. plt.setp(ax.get_xticklabels(), rotation=45, ha="right",
  491. rotation_mode="anchor")
  492. plt.show()
  493. # %%
  494. #modularized pieter's code
  495. def pca_distance(pc1,pc2,pc3,labels):
  496. pca_distances = np.zeros((len(labels),len(labels)))
  497. for r1 in range(0,len(labels)):
  498. for r2 in range(0,len(labels)):
  499. d = ((pc1[r1]-pc1[r2])**2 +(pc2[r1]-pc2[r2])**2+(pc3[r1]-pc3[r2])**2)**(0.5)
  500. pca_distances[r1,r2]=d #euclidean distance
  501. max_distance = np.max(pca_distances[:,:])
  502. pca_distances[:,:] = pca_distances[:,:]/max_distance #normalized
  503. return pca_distances
  504. # %%
  505. def distance_to_other_points(to_heatmap,labels,condition_nums,umap_or_pca):
  506. means_df2 = pd.DataFrame(to_heatmap,index=labels,columns=condition_nums)
  507. labels2=[str(s) +'_average' for s in labels]
  508. means_df2['condition2']=labels2
  509. means_df2=means_df2.groupby(['condition2']).mean().transpose()
  510. cm = sns.clustermap(means_df2,yticklabels=True,xticklabels=True)
  511. cm.fig.suptitle("point distance - average by condition 1 axis"+umap_or_pca)
  512. cm.fig.set_size_inches(18, 18)
  513. plt.show()
  514. means_df2['condition3']=labels2
  515. means_df2=means_df2.groupby(['condition3']).mean().transpose()
  516. cm = sns.clustermap(means_df2,yticklabels=True,xticklabels=True)
  517. cm.fig.suptitle("point distance - average by condition both axis"+umap_or_pca)
  518. cm.fig.set_size_inches(18, 18)
  519. plt.show()
  520. # %%
  521. def umap_and_heatmap(X_scaled,labels,condition_nums,grouped_elipse='no'):
  522. neighbors=int(len(labels)/3)
  523. metrics=set_metric
  524. reducer = umap.UMAP(metric=metrics,n_neighbors=neighbors)
  525. embedding = reducer.fit_transform(X_scaled)
  526. align_embed= pd.DataFrame(embedding,index=labels,columns=['umap1','umap2'])
  527. # fig, ax = plt.subplots(figsize=(12, 10)) #init fig
  528. # for i,r in enumerate(np.unique(align_embed.index.values)):
  529. # drug1=align_embed[align_embed.index == r]
  530. # ax.scatter(drug1['umap1'],drug1['umap2'],c=uniq_colors[i],label=r)
  531. # for i, txt in enumerate(condition_nums):
  532. # ax.annotate(txt, (embedding[i,0], embedding[i,1]))
  533. # ax.legend(loc="right",bbox_to_anchor=(1.6, 0.5))
  534. # ax.set_xlabel('UMAP 1')
  535. # ax.set_ylabel('UMAP 2')
  536. # plt.show()
  537. fig, ax = plt.subplots(figsize=(12, 10)) #init fig
  538. if grouped_elipse=='no':
  539. for i,r in enumerate(np.unique(align_embed.index.values)):
  540. drug1=align_embed[align_embed.index == r]
  541. ax.scatter(drug1['umap1'],drug1['umap2'],c=uniq_colors[i],label=r)
  542. confidence_ellipse(drug1['umap1'],drug1['umap2'], ax, alpha=0.5, n_std=set_stdevs, facecolor=uniq_colors2[i], edgecolor=uniq_colors2[i], zorder=0)
  543. else:
  544. align_embed['condition5']=labels #categories
  545. category_df=align_embed.merge(categories,on='condition5',copy=True).dropna()
  546. for i,r in enumerate(np.unique(align_embed.index.values)):
  547. drug1=align_embed[align_embed.index == r]
  548. ax.scatter(drug1['umap1'],drug1['umap2'],c=uniq_colors[i],label=r)
  549. for i,r in enumerate(np.unique(category_df['group_name'])):
  550. drug1=category_df[category_df['group_name']== r]
  551. confidence_ellipse(drug1['umap1'],drug1['umap2'], ax, alpha=0.5, n_std=set_stdevs, facecolor=uniq_colors2[i], edgecolor=uniq_colors2[i], zorder=0,label=r)
  552. leg2 = ax.legend(loc="right",bbox_to_anchor=(1.6, 0.5))
  553. ax.set_xlabel('UMAP 1')
  554. ax.set_ylabel('UMAP 2')
  555. plt.show()
  556. #distance heatmap
  557. to_heatmap=umap_n_times(X_scaled,labels,metric=metrics,n_neighbors=neighbors)
  558. means_df = pd.DataFrame(to_heatmap,index=condition_nums,columns=condition_nums)
  559. cm = sns.clustermap(means_df,yticklabels=True,xticklabels=True)
  560. cm.fig.suptitle("average umap relative distance")
  561. cm.fig.set_size_inches(18, 18)
  562. plt.show()
  563. distance_to_other_points(to_heatmap,labels,condition_nums,' - UMAP') # umap
  564. # %%
  565. def get_feats_and_labels(dataframe):
  566. labels=dataframe['Experimental condition']
  567. condition_nums=dataframe['condition_nums']
  568. features=dataframe.iloc[: , 1:23]
  569. regions=features.columns
  570. return features, labels, condition_nums, regions
  571. # %% [markdown]
  572. # # Get features from DAT-cre and 66T data
  573. # %% [markdown]
  574. # # DAT-cre and 66T and Gad2Cre (no drugs)
  575. # %%
  576. features2, labels2, condition_nums2, regions2 = get_feats_and_labels(DATcre66T_gad2)
  577. features3, labels3, condition_nums3, regions3 = get_feats_and_labels(VGlut2_cre)
  578. labels=list(labels2)+list(labels4)+list(labels3)
  579. condition_nums=list(condition_nums2)+list(condition_nums4)+list(condition_nums3)
  580. #scale X
  581. X2=features2.to_numpy().astype(float)
  582. X3=features3.to_numpy().astype(float)
  583. X4=features4.to_numpy().astype(float)
  584. #features4, labels4, condition_nums4, regions4
  585. X=np.vstack((X2, X4))
  586. X=np.vstack((X, X3))
  587. #get rid of NAs before scaling
  588. X_scaled=zscore(X,axis=1)
  589. X_scaled=zscore(X_scaled,axis=0)
  590. # %%
  591. #can change n_components to more if you want to visualize in 3D
  592. pca = PCA(n_components=5)
  593. #PCA using the scaled drug data array made earlier
  594. principalComponents = pca.fit_transform(X_scaled)
  595. #make into dataframe if you want to view with labels
  596. principalDf = pd.DataFrame(data = principalComponents
  597. , columns = ['principal component 1', 'principal component 2', 'principal component 3', 'principal component 4', 'principal component 5'])
  598. region_components=pd.DataFrame(data = pca.components_ , columns = regions2)
  599. #view df
  600. print('Explained variance for each PC: 1, 2, 3')
  601. print(pca.explained_variance_)
  602. principalDf
  603. # %% [markdown]
  604. # ### PCA Plots
  605. # %%
  606. pc1=principalDf['principal component 1']
  607. pc2=principalDf['principal component 2']
  608. pc3=principalDf['principal component 3']
  609. #make_pca_plots_label(pc1,pc2,pc3,condition_nums,labels)
  610. make_pca_plots_ellipse(pc1,pc2,pc3,condition_nums,labels,grouped_elipse='yes')
  611. plot_components(region_components)
  612. # %%
  613. pca_dist=pca_distance(pc1,pc2,pc3,labels)
  614. heatmapdf = pd.DataFrame(pca_dist,index=condition_nums,columns=condition_nums)
  615. cm = sns.clustermap(heatmapdf,yticklabels=True)
  616. cm.fig.suptitle("PCA relative distance")
  617. cm.fig.set_size_inches(18, 18)
  618. plt.show()
  619. distance_to_other_points(pca_dist,labels,condition_nums,' - PCA') # pca
  620. # %% [markdown]
  621. # ### UMAP
  622. # %%
  623. umap_and_heatmap(X_scaled,labels,condition_nums,grouped_elipse='yea')

2-DAT-Cre vs GAD2-Cre and vGluT2-Cre-euclidean.ipynb at commit 4868c4c, under MIT · at the source

Overview

Authors: Katrina Bartas1, Pieter Derdeyn1, Guilian Tian2, Jose J Vasquez2, Ghalia Azouz2, Cindy M Yamamoto2, May Hui2, Kevin T Beier2,3,4,5
  1. Program in Mathematical, Computational, and Systems Biology, University of California, Irvine Irvine United States
  2. Department of Physiology and Biophysics, University of California, Irvine Irvine United States
  3. Department of Biomedical Engineering, University of California, Irvine Irvine United States
  4. Department of Neurobiology and Behavior, University of California, Irvine Irvine United States
  5. Department of Pharmaceutical Sciences, University of California, Irvine Irvine United States
Institutions: University of California, Irvine (United States)
Journal: eLife, volume 13, article RP93664
Dates: published online 15 May 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.7554/elife.93664 · PMID 42138352 · PMCID PMC13179063 · OpenAlex W4394581287
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: mouse (organism), other condition (population), cellular / molecular (subfield)
Methods: Statistics, Smoothing, state filtering, decompositions, Preprocessing, Evoked potentials, Connectivity
Keywords: addictive drugs, input mapping, rabies virus, ketamine/xylazine, cellular activity, connectomics, Mouse
MeSH: Dopaminergic Neurons*, Mesencephalon*, Rabies virus*, Animals, Male, Mice, Mice, Inbred C57BL (* major topic)
Journal subjects: Neuroscience
Topic: Neurotransmitter Receptor Influence on Behavior (Cellular and Molecular Neuroscience, Neuroscience), according to OpenAlex
Funding: National Institutes of Health (R00 DA041445, DP2 AG067666, R01 DA054374, R01 DA056599, R01 NS130044, T32 GM008620, F30 DA056215, T32 GM136624); Tobacco-Related Disease Research Program (T31KT1437, T31P1426); American Parkinson Disease Association (APDA-5589562); Alzheimer's Association (AARG-NTF-20-685694); New Vision Research (CCAD2020-002); BrightFocus Foundation (A2022031S); Brain and Behavior Research Foundation (NARSAD 26845); National Science Foundation (GRFP DGE-1839285)
Citations: cited by 1 paper (Europe PMC); 88 references in the paper

Abstract

Addictive drugs cause long-lasting changes in connectivity from inputs onto ventral tegmental area dopamine cells (VTADA) that contribute to drug-induced behavioral adaptations. However, it is not known which inputs are altered. Here, we used a rabies virus (RABV)-based mapping strategy to quantify RABV-labeled inputs to VTA cells after a single exposure to one of a variety of misused drugs – cocaine, amphetamine, methamphetamine, morphine, and nicotine – and compared the relative global input labeling across conditions. We observed that all tested addictive drugs elicited similar input changes onto VTADA cells, in particular onto DA cells projecting to the lateral shell of the nucleus accumbens and amygdala. In addition, repeated administration of ketamine/xylazine to induce anesthesia induces a change in inputs to VTADA cells that is similar to but different from those elicited by a single exposure to addictive drugs, suggesting that caution should be taken when using ketamine/xylazine-based anesthesia in rodents when assessing motivated behaviors. Furthermore, comparison of viral tracing data to an atlas of gene expression in the adult mouse brain showed that the basal expression patterns of several gene classes, especially calcium channels, were highly correlated with the extent of both addictive drug- or ketamine/xylazine-induced changes in RABV-labeled inputs to VTADA cells. Reducing expression levels of the voltage-gated calcium channel Cacna1e in cells in the nucleus accumbens lateral shell reduced RABV-mediated input labeling of these cells into VTADA cells. These results directly link genes controlling cellular excitability and the extent of input labeling by RABV.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repositories

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

ejcorn/mouse_abi_tool

License: MIT
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: 5efe587ddbe223518503b28065435da95bfaf7ff, 16 July 2021
Languages: R (11)
Size: 19 files, 11 scripts
Software Heritage: archived
Found in: the text, “Gene expression data access and processing”
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: cowplot (1 file), ggplot2 (1 file), tidyverse (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
13 files

ktbartas/Bartas_et_al_eLife_2024

License: MIT
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: 4868c4c1df5cea4574c924df6042999362407284, 2 May 2026
Languages: Jupyter (14)
Size: 22 files, 14 scripts
Software Heritage: not archived
Found in: “Data availability”
Holds: README, license file, 14 notebooks
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: Matplotlib (8 files), NumPy (8 files), pandas (8 files), SciPy (7 files), seaborn (7 files), scikit-learn (3 files), UMAP (3 files), AllenSDK (1 file), Pillow (1 file), statsmodels (1 file), tifffile (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
8 files

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

The current manuscript is largely a computational study, so no data have been generated for most of this manuscript, except for Figure 10; raw data are available for Figure 10 on Dryad at https://doi.org/10.5061/dryad.gxd25481q. Code used for this work is available on GitHub (https://github.com/ktbartas/Bartas_et_al_eLife_2024 copy archived at Bartas and Derdeyn, 2026).

The following dataset was generated:

BartasK DerdeynP BeierKT 2026Drug-induced changes in connectivity to midbrain dopamine cells revealed by rabies monosynaptic tracingDryad Digital Repository10.5061/dryad.gxd25481qPMC1317906342138352

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, 28 September 2026: the first record

Recorded: type, language, journal, volume, pages, dates, 8 authors, 7 keywords, 7 MeSH terms, 8 funders, 84 references, 8 RRIDs.

Cite

This paper

Bartas, K., Derdeyn, P., Tian, G., Vasquez, J. J., Azouz, G., Yamamoto, C. M., Hui, M., & Beier, K. T. (2026). Drug-induced changes in connectivity to midbrain dopamine cells revealed by rabies monosynaptic tracing. eLife, 13, RP93664. https://doi.org/10.7554/elife.93664

BibTeX

@article{bartas2026drug,
author = {Bartas, Katrina and Derdeyn, Pieter and Tian, Guilian and Vasquez, Jose J and Azouz, Ghalia and Yamamoto, Cindy M and Hui, May and Beier, Kevin T},
title = {{Drug-induced changes in connectivity to midbrain dopamine cells revealed by rabies monosynaptic tracing}},
journal = {eLife},
year = {2026},
month = may,
volume = {13},
pages = {RP93664},
publisher = {eLife Sciences Publications, Ltd},
issn = {2050-084X},
doi = {10.7554/elife.93664},
url = {https://doi.org/10.7554/elife.93664},
pmid = {42138352},
pmcid = {PMC13179063}
}

RIS

TY - JOUR
AU - Bartas, Katrina
AU - Derdeyn, Pieter
AU - Tian, Guilian
AU - Vasquez, Jose J
AU - Azouz, Ghalia
AU - Yamamoto, Cindy M
AU - Hui, May
AU - Beier, Kevin T
TI - Drug-induced changes in connectivity to midbrain dopamine cells revealed by rabies monosynaptic tracing
T2 - eLife
J2 - Elife
PY - 2026
DA - 2026/05/15
VL - 13
SP - RP93664
SN - 2050-084X
PB - eLife Sciences Publications, Ltd
DO - 10.7554/elife.93664
UR - https://doi.org/10.7554/elife.93664
LA - en
ER -

CSL-JSON

{
"id": "10.7554/elife.93664",
"type": "article-journal",
"title": "Drug-induced changes in connectivity to midbrain dopamine cells revealed by rabies monosynaptic tracing",
"container-title": "eLife",
"author": [
{
"family": "Bartas",
"given": "Katrina"
},
{
"family": "Derdeyn",
"given": "Pieter"
},
{
"family": "Tian",
"given": "Guilian"
},
{
"family": "Vasquez",
"given": "Jose J"
},
{
"family": "Azouz",
"given": "Ghalia"
},
{
"family": "Yamamoto",
"given": "Cindy M"
},
{
"family": "Hui",
"given": "May"
},
{
"family": "Beier",
"given": "Kevin T"
}
],
"container-title-short": "Elife",
"volume": "13",
"page": "RP93664",
"DOI": "10.7554/elife.93664",
"PMID": "42138352",
"PMCID": "PMC13179063",
"ISSN": "2050-084X",
"publisher": "eLife Sciences Publications, Ltd",
"URL": "https://doi.org/10.7554/elife.93664",
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
15
]
]
}
}

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-76939-w [code]
HIPPIE: a generative model for electrophysiological analysis across species, technologies, and modalities.
Journal: Nature communications
In common: AllenSDK, UMAP, cowplot, 10 other tools, mouse
[2] doi:10.1002/advs.202521254 [code]
Persistently Increased Expression of PKMzeta and Unbiased Gene Expression Profiles Identify Hippocampal Molecular Traces of a Long-Term Active Place Avoidance Memory and "Shadow" Proteins.
Journal: Advanced science (Weinheim, Baden-Wurttemberg, Germany)
In common: UMAP, cowplot, statsmodels, 8 other tools, cellular / molecular, 2 references
[3] doi:10.1016/j.xcrm.2026.102766 [code]
A longitudinal single-cell and spatial multiomic atlas of pediatric high-grade glioma.
Journal: Cell reports. Medicine
In common: tifffile, UMAP, cowplot, 9 other tools, other condition, cellular / molecular
[4] doi:10.1038/s41467-026-71357-4 [code]
Social reward outcompetes drug seeking dopaminergic ensembles to prevent relapse.
Journal: Nature communications
In common: SciPy, Matplotlib, NumPy, other condition, 7 references
[5] doi:10.1186/s13059-026-04177-w [code]
Genomic sequence evolution underlying human neocortical interareal diversification.
Journal: Genome biology
In common: AllenSDK, UMAP, Pillow, 8 other tools, mouse, cellular / molecular
[6] doi:10.1038/s42003-026-10957-8 [code]
Brain defence by the extracellular matrix protein Cochlin.
Journal: Communications biology
In common: UMAP, Pillow, statsmodels, 8 other tools, mouse, cellular / molecular, 1 reference
[7] doi:10.1038/s41467-026-75723-0 [code]
Spatial transcriptomics reveals distinct cell type dynamics following opioid dependence in female mice with the common human μ-opioid receptor variant Oprm1 A118G.
Journal: Nature communications
In common: AllenSDK, ggplot2, tidyverse, 5 other tools, other condition, mouse, cellular / molecular, 2 references
[8] doi:10.1038/s41586-026-10629-x [code]
Whole-genome duplication shaped cell-type evolution in the vertebrate brain.
Journal: Nature
In common: UMAP, cowplot, statsmodels, 8 other tools, mouse, cellular / molecular
[9] doi:10.1038/s41593-026-02253-9 [code]
Genoarchitecture and input-output organization of the mouse basal ganglia and thalamic parafascicular nucleus.
Journal: Nature neuroscience
In common: AllenSDK, seaborn, scikit-learn, 4 other tools, mouse, 3 references
[10] 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: ggplot2, seaborn, tidyverse, 4 other tools, mouse, author Kevin T Beier

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.