OSCR

An atlas of primate insular cortex reveals a signal-processing strategy in von Economo neurons.

Code ↔ Paper

10 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.

2 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.

The 10 matches
  1. [1] § Results › Transcriptomic landscape of the macaque AIC ↔ 10X/Clusters_Plotting.ipynb, lines 46 to 63 · score 0.86 · vascular leptomeningeal cells, C1QA, C1QL1, inhibitory neurons, BGN, VLMCs · Report a mismatch
  2. [2] § Results › Transcriptomic landscape of the macaque AIC ↔ 10X/Clusters_Plotting.ipynb, lines 46 to 63 · score 0.73 · C1QA, C1QL1, SLC17A7, inhibitory neuron, MBP, GAD2 · Report a mismatch
  3. [3] § Results › Transcriptomic landscape of the macaque AIC ↔ 10X/Glia_Plot.ipynb, lines 73 to 77 · score 0.68 · C1QA, C1QL1, BGN, VLMCs, microglia, FLT1 · Report a mismatch
  4. [4] § Methods › RNAscope mFISH ↔ 10X/Clusters_Plotting.ipynb, lines 74 to 93 · score 0.57 · SLC17A7, COL24A1, DSG2, HPCAL1, RORB, FEZF2 · Report a mismatch
  5. [5] § Methods › Metabolic network analysis ↔ code/Fig3_humk_GABA_homology_matrix.py, lines 1 to 67 · score 0.56 · crab eating macaque, gene, cell · block oscr:b:QZW2NJWA5D607-Y · Report a mismatch
  6. [6] § Methods › Metabolic network analysis ↔ code/Fig2_humk_glut_homology_matrix.py, lines 27 to 32 · score 0.56 · crab eating macaque, gene · block oscr:b:XN9EX6MP9J00Y-E · Report a mismatch
  7. [7] § Methods › RNAscope mFISH ↔ 10X/InsularCells_integrateHodgeMTG_heatmap/integrat_Ext_humanMTG_vs_mkAAI.ipynb, lines 173 to 206 · score 0.55 · SLC17A7, COL24A1, DSG2, HPCAL1, RORB, FEZF2 · Report a mismatch
  8. [8] § Results › Multimodal profiling of two VEN subtypes ↔ 10X/InsularNeurons_MonkeyAIC_vs_HodgeHumanFI_heatmap/merge_MKinsular_HodgeFI_Ext.ipynb, lines 225 to 243 · score 0.52 · Exc FEZF2 DSG2, Exc FEZF2 COL24A1, neurons · Report a mismatch
  9. [9] § Results › Multimodal profiling of two VEN subtypes ↔ 10X/InsularCells_integrateHodgeMTG_heatmap/integrat_Ext_humanMTG_vs_mkAAI.ipynb, lines 173 to 206 · score 0.52 · Exc FEZF2 DSG2, Exc FEZF2 COL24A1, L5 · Report a mismatch
  10. [10] § Results › Multimodal profiling of two VEN subtypes ↔ 10X/InsularNeurons_MonkeyAIC_vs_HodgeHumanFI_heatmap/merge_MKinsular_HodgeFI_Ext.ipynb, lines 225 to 243 · score 0.52 · Exc FEZF2 DSG2, Exc FEZF2 COL24A1, neurons, gene · Report a mismatch

Paper

Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

Jupyter notebook · 409 lines · 15 KB · no license · 3 matches

  1. # %%
  2. %pylab inline
  3. import scanpy as sc
  4. import pandas as pd
  5. import seaborn as sns
  6. import numpy as np
  7. import scanpy as sc
  8. import matplotlib.pyplot as plt
  9. rcParams['pdf.fonttype']=42 # in order to save fonttype in AI
  10. rcParams['ps.fonttype']=42
  11. import warnings
  12. warnings.filterwarnings("ignore")
  13. # %%
  14. adata = sc.read('./data_h5/Insular_sorted_clusters.h5ad')
  15. adata
  16. # %%
  17. adata.obs['cellType_labels_2'].cat.categories
  18. # %%
  19. figsize(10,10)
  20. sc.pl.umap(adata, color=['cell_subtypeID','cell_subtypeLabels'], legend_loc='on data', title='', frameon=False,use_raw=True,size=5)
  21. # %%
  22. figsize(10,10)
  23. sc.pl.umap(adata, color=['cellTypeID','cellTypeLabel'], legend_loc='on data', title='', frameon=False,use_raw=True,size=5)
  24. # sc.pl.umap(adata, color=['cluster_modified','sorted_ident'], legend_loc='on data', title='', frameon=False,use_raw=True,size=5,save='allCells_umap.pdf')
  25. # %%
  26. figsize(10,10)
  27. sc.pl.umap(adata, color=['cellTypeID_2','cellType_labels_2'], legend_loc='on data', title='', frameon=False,use_raw=True,size=5)
  28. # %%
  29. # adata.uns['cellType_labels_2_colors'] = adata.uns['cellTypeID_2_colors']
  30. adata.obs['cellTypeID_2'].cat.categories
  31. # %%
  32. adata.obs['cellType_labels_2'].cat.categories
  33. # %%
  34. adata.obs['cellType_labels_2']
  35. # %%
  36. marker_genes = ['PDGFRA', 'C1QL1', # markers for OPC
  37. 'AQP4', 'SLC1A3', # Astro
  38. 'AIF1', 'C1QA', # Micro
  39. 'MBP', 'MOG', # Oligo
  40. 'SNAP25', # Neuron
  41. 'TUBB3', # 'RGS4', # Neuron
  42. 'GAD1', 'GAD2', # Inhibitory Neurons
  43. 'SLC17A7', 'CAMK2A', # Ext Neurons
  44. 'MEIS2', # Meis2 Neurons (maybe Ext)
  45. 'FLT1', # Endothalial cells
  46. 'BGN', 'DCN' ] # Vascular leptomeningeal cells (VLMCs)
  47. figsize(10,10)
  48. sc.pl.stacked_violin(adata, groupby='cellTypeLabel', var_names=marker_genes,use_raw = True, swap_axes = False) #,save='stacked_vio_allCells.pdf')
  49. sc.pl.dotplot(adata, marker_genes, groupby='cellTypeLabel', dendrogram=True)
  50. # sc.pl.stacked_violin(adata, groupby='cluster_labels', var_names=marker_genes,use_raw = True, swap_axes = False,save='stacked_vio_allCells.pdf')
  51. # sc.pl.dotplot(adata, marker_genes, groupby='cluster_labels', dendrogram=True)
  52. # %%
  53. figsize(3,3)
  54. sc.pl.umap(adata, color=['C1QL1','AQP4','C1QA','MBP','GAD1','SLC17A7','MEIS2','FLT1','DCN'], legend_loc='on data', cmap = 'RdGy_r',vmax = 5,vmin = -1, ncols=5, frameon=False,use_raw=True,size=5)#,save='allCellMarkers_umap.pdf')
  55. # %%
  56. plot_genes = ['SNAP25','TUBB3','SLC17A7','GAD1','GAD2','FEZF2','FREM3','RORB','HPCAL1','LHX6','VIP','LAMP5','SST','PVALB','MEIS2','C1QL1','AQP4', 'MOG','C1QB','FLT1','DCN']
  57. sc.tl.dendrogram(adata,groupby='cellType_labels_2',var_names=plot_genes,n_pcs=20,use_rep='X_pca')
  58. sc.pl.dotplot(adata, var_names = plot_genes, groupby = 'cellType_labels_2', swap_axes = True, edgecolor='k', dendrogram = True)#, save = '/Fig_all_dot_NN.pdf')
  59. # %%
  60. plot_genes = ['SNAP25','TUBB3','SLC17A7','GAD1','GAD2','FEZF2','FREM3','RORB','HPCAL1','LHX6','VIP','LAMP5','SST','PVALB','MEIS2','C1QL1','AQP4', 'MOG','C1QB','FLT1','DCN']
  61. categories_order = ['Exc RORB DEPTOR', 'Exc FEZF2 RSPO3', 'Exc RORB CHI3L1', 'Exc RORB CYP26B1', 'Exc RORB FAP',
  62. 'Exc RORB CDK2AP1', 'Exc RORB SCN7A', 'Exc RORB TRDN ', 'Exc FEZF2 SMYD1', 'Exc HPCAL1 MEPE',
  63. 'Exc HPCAL1 PENK', 'Exc HPCAL1 FREM3', 'Exc HPCAL1 FRZB', 'Exc HPCAL1 KANK4',
  64. 'Exc FEZF2 DSG2', 'Exc FEZF2 COL24A1', 'Exc FEZF2 HTR2C', 'Exc RORB NRG1', 'Exc FEZF2 LTBP3', 'Exc FEZF2 MCUB',
  65. 'Inh PVALB COL5A2', 'Inh PVALB NKX2-1', 'Inh PVALB PVALB', 'Inh SST SP5', 'Inh SST CHODL',
  66. 'Inh SST MME', 'Inh SST PENK', 'Inh SST PTK2B', 'Inh SST ANXA2', 'Inh SST SLC30A3',
  67. 'Inh LAMP5 BMP2', 'Inh LAMP5 BCAM', 'Inh LAMP5 SERPINF1', 'Inh LAMP5 GSTM2', 'Inh LAMP5 RGCC',
  68. 'Inh LAMP5 IL13RA1',
  69. 'Inh SNCG IGFBP2', 'Inh SNCG ARHGAP18', 'Inh SNCG PIK3CG', 'Inh SNCG PDLIM5', 'Inh SNCG KLHL13',
  70. 'Inh SNCG S100A6', 'Inh SNCG ADRA1D', 'Inh SNCG CDH24', 'Inh SNCG C1QL2', 'Inh SNCG TPM2',
  71. 'Inh SERPINF1 DCN', 'Inh VIP SHISA8', 'Inh VIP SMOC1', 'Inh VIP RASL10A',
  72. 'Inh VIP CRISPLD1', 'Inh VIP SCNG', 'Inh VIP SLIT1',
  73. 'MEIS2 Neurons', 'OPC', 'Astrocytes', 'Oligocytes', 'Microglia', 'Endothalial cells', 'VLMCs']
  74. sc.pl.dotplot(adata, var_names = plot_genes, groupby = 'cellType_labels_2', categories_order=categories_order, swap_axes = True, edgecolor='k', dendrogram = False)#,save = 'Fig_allCellTypes_dotPlot.pdf')
  75. # %%
  76. adata
  77. # %% [markdown]
  78. # # Plot cell counts bar
  79. # %%
  80. cell_label_reorder = categories_order
  81. cell_label_reorder
  82. cell_counts = pd.DataFrame(adata.obs['cellType_labels_2'].value_counts())
  83. cell_counts = cell_counts.reindex(cell_label_reorder)
  84. cell_label = adata.obs['cellType_labels_2'].cat.categories
  85. cell_color = list(adata.uns['cellType_labels_2_colors'])
  86. # %%
  87. barWidth = 1
  88. cell_type_all = list(cell_counts.index)
  89. # %%
  90. heatmap_color = dict(zip(cell_label,cell_color))
  91. # %%
  92. heatmap_color_wk= pd.DataFrame.from_dict(heatmap_color, orient = 'index', columns = ['color'])
  93. heatmap_color_wk = heatmap_color_wk.reindex(cell_label_reorder)
  94. # %%
  95. cell_cat = cell_label_reorder
  96. cell_counts = pd.DataFrame(adata.obs['cellType_labels_2'].value_counts())
  97. cell_counts = cell_counts.reindex(cell_cat)
  98. # width of the bars
  99. barWidth = 1
  100. cell_type_all = list(cell_counts.index) # becase the sequence distinction between adata.obs['cellTypeID_2'].cat.categories and adata.obs['cellType_labels_2'].cat.categories. we have to reorder the cellTpe labels in cell_type_all same as that in cellTypeID_2.
  101. bar_color = dict(zip(cell_label,cell_color))
  102. bar_color= pd.DataFrame.from_dict(heatmap_color, orient = 'index', columns = ['color'])
  103. bar_color = heatmap_color_wk.reindex(cell_label_reorder)
  104. bars_original = np.array(cell_counts['cellType_labels_2'])
  105. bars1 = np.log10(bars_original)
  106. # The x position of bars
  107. r1 = np.arange(len(bars1))
  108. # %%
  109. fig = plt.figure(figsize = (20,0.8))
  110. plt.rcParams['font.size'] = '2'
  111. gs = GridSpec(1, 1, figure=fig)
  112. sns.set(font_scale=1)
  113. ax = fig.add_subplot(gs[0, 0])
  114. # Create blue bars
  115. ax.bar(r1, bars1, width = barWidth, color = bar_color['color'])
  116. # general layout
  117. ax.set_yticks([0,2,4])
  118. ax.set_xticklabels(cell_type_all,rotation=90,size=8)
  119. ax.set_xticks(np.arange(len(cell_type_all)))
  120. ax.set_xlim([-1,60])
  121. ax.set_facecolor('white')
  122. ax.spines['bottom'].set_color('#000000')
  123. ax.spines['left'].set_color('#000000')
  124. # plt.savefig("figures/Fig1_cell_counts.pdf", dpi = 600)
  125. # %% [markdown]
  126. # # Proportion of cell types present in individual sample.
  127. # %%
  128. adata
  129. # %%
  130. subCellTypeIDs = np.sort(adata.obs['cellTypeID_2'].cat.codes.unique())
  131. subCellTypeIDs
  132. nSample = len(np.sort(adata.obs['Sample'].cat.codes.unique()))
  133. nSample
  134. # %%
  135. n_cells = np.zeros([nSample,len(subCellTypeIDs)])
  136. for sample in range(nSample):
  137. sampleData = adata[adata.obs['Sample']=='batch-'+str(sample+1)]
  138. for subCellTypeID in subCellTypeIDs:
  139. n_cells[sample,subCellTypeID] = np.sum(sampleData.obs['cellTypeID_2']==subCellTypeID)
  140. # n_cells[sample] = n_cells[sample]/np.sum(n_cells[sample,:])
  141. nCell_percent = np.zeros([nSample,len(subCellTypeIDs)])
  142. for sample in range(nSample):
  143. nCell_percent[sample] = n_cells[sample]/np.sum(n_cells[sample,:])
  144. # %%
  145. fig, axs = plt.subplots(1,2, figsize=(16,6), sharey=True)
  146. width = 0.5
  147. for i in range(len(subCellTypeIDs)):
  148. axs[0].barh(range(22), nCell_percent[:,i], width, left = np.sum(nCell_percent[:,:i],axis=1), color=bar_color['color'][ adata.obs['cellType_labels_2'].cat.categories[i] ],linewidth=0.4)
  149. # ax.bar(range(22), nCell_percent[:,i], width,bottom = np.sum(nCell_percent[:,:i],axis=1) )
  150. axs[0].set_title("Cell type composition in individual sample")
  151. axs[0].spines['right'].set_visible(True)
  152. axs[0].spines['top'].set_visible(True)
  153. # axs[0].set_xlim([0,2])
  154. axs[0].legend(loc="best")
  155. axs[0].set_xlabel('Percentage')
  156. axs[0].set_ylabel('Sample ID')
  157. axs[0].set_facecolor('white')
  158. # plot the number of cells in each sample
  159. n_cells_sample = np.sum(n_cells,axis=1)
  160. n_cells_sample
  161. axs[1].barh(range(22),n_cells_sample, width, left=0)
  162. axs[1].set_title("# of Cells in individual sample")
  163. axs[1].spines['right'].set_visible(True)
  164. axs[1].spines['top'].set_visible(True)
  165. axs[1].set_xlabel('# of cells')
  166. axs[1].set_facecolor('white')
  167. # plt.savefig("figures/suppl_NrCellsStat.pdf", dpi = 600)
  168. # %%
  169. # Prepare the number of cells in each cell type.
  170. n_cellTypesAllSample = np.sum(n_cells,axis=0)
  171. n_cellTypes = np.zeros(9)
  172. n_cellTypes[0] = np.sum(n_cellTypesAllSample[0:32])
  173. n_cellTypes[1] = np.sum(n_cellTypesAllSample[33:53])
  174. n_cellTypes[2] = np.sum(n_cellTypesAllSample[53])
  175. n_cellTypes[3] = np.sum(n_cellTypesAllSample[54])
  176. n_cellTypes[4] = np.sum(n_cellTypesAllSample[55]) # np.sum(n_cellTypesAllSample[54:63])
  177. n_cellTypes[5] = np.sum(n_cellTypesAllSample[56]) # np.sum(n_cellTypesAllSample[63:68])
  178. n_cellTypes[6] = np.sum(n_cellTypesAllSample[57]) # np.sum(n_cellTypesAllSample[68:75])
  179. n_cellTypes[7] = np.sum(n_cellTypesAllSample[58]) # np.sum(n_cellTypesAllSample[75:80])
  180. n_cellTypes[8] = np.sum(n_cellTypesAllSample[59]) # np.sum(n_cellTypesAllSample[80:87])
  181. # %%
  182. # reorder the colors
  183. clusterOrder = adata.obs['cellType_labels_2'].cat.categories
  184. bar_color = bar_color.reindex(clusterOrder)
  185. # Pie plot of the cell type composition.
  186. size = 0.15
  187. cmap = plt.colormaps["tab20c"]
  188. outer_colors = ['coral','steelblue','#C0C0C0', 'darkgray','grey', '#D3D3D3', 'dimgray', 'darkgray','black',]
  189. figsize(15,10)
  190. fig, axs = plt.subplots(1,2)
  191. plt.figure(figsize=(20, 12))
  192. axs[0].pie(n_cellTypes, colors=outer_colors, )
  193. axs[0].set(aspect="equal", title='Cell type composition')
  194. axs[1].pie(n_cellTypesAllSample, colors=bar_color['color'], )
  195. axs[1].set(aspect="equal", title='Cell type composition')
  196. plt.show()
  197. # %%
  198. # Pie plot of the cell type composition.
  199. size = 0.2
  200. lineW = 0.3
  201. cmap = plt.colormaps["tab20c"]
  202. # outer_colors = cmap(np.arange(8)*4)
  203. inner_colors = cmap(range(87))
  204. figsize(5,5)
  205. fig, ax = plt.subplots()
  206. ax.pie(n_cellTypes, radius=1, colors=outer_colors,
  207. wedgeprops=dict(width=0.5, edgecolor='w',linewidth=lineW))
  208. ax.pie(n_cellTypesAllSample, radius=1-size, colors=bar_color['color'],
  209. wedgeprops=dict(width=0.5, edgecolor='w',linewidth=lineW))
  210. ax.set(aspect="equal", title='Cell type composition')
  211. # plt.show()
  212. # fig.savefig("figures/suppl_subclustersCountsPie.pdf", dpi = 600)
  213. # %%
  214. # plot the detected genes in each cell cluster.
  215. figsize(16,1.5)
  216. sc.pl.violin(adata,'n_genes',groupby='cellTypeID_2',log=True, jitter=False,color=bar_color['color'])#,save='suppl_detectedGenes_eachClass.pdf')
  217. # %%
  218. # Sample size in animals
  219. n_cells_sample
  220. animal1 = n_cells_sample[0:5]
  221. animal2 = n_cells_sample[5:7]
  222. animal3 = n_cells_sample[7:11]
  223. animal4 = n_cells_sample[11:13]
  224. animal5 = n_cells_sample[13:17]
  225. animal6 = n_cells_sample[17:21]
  226. animal7 = n_cells_sample[21:22]
  227. n_sample = np.array([len(animal1), len(animal2), len(animal3), len(animal4), len(animal5), len(animal6), len(animal7)])
  228. fig, ax = plt.subplots(1,7,figsize=(5,5), sharey=True)
  229. barWidth = 1.0
  230. for j in range(5):
  231. ax[0].bar(1,animal1[j],barWidth,bottom=np.sum(animal1[:j]),color='cornflowerblue',edgecolor='k' )
  232. ax[0].spines['right'].set_visible(False)
  233. ax[0].spines['top'].set_visible(False)
  234. for j in range(2):
  235. ax[1].bar(1,animal2[j],barWidth,bottom=np.sum(animal2[:j]),color='cornflowerblue',edgecolor='k' )
  236. ax[1].spines['right'].set_visible(False)
  237. ax[1].spines['top'].set_visible(False)
  238. ax[1].spines['left'].set_visible(False)
  239. ax[1].spines['bottom'].set_visible(False)
  240. for j in range(4):
  241. ax[2].bar(1,animal3[j],barWidth,bottom=np.sum(animal3[:j]),color='cornflowerblue',edgecolor='k' )
  242. ax[2].spines['right'].set_visible(False)
  243. ax[2].spines['top'].set_visible(False)
  244. ax[2].spines['left'].set_visible(False)
  245. ax[2].spines['bottom'].set_visible(False)
  246. for j in range(2):
  247. ax[3].bar(1,animal4[j],barWidth,bottom=np.sum(animal4[:j]),color='cornflowerblue',edgecolor='k' )
  248. ax[3].spines['right'].set_visible(False)
  249. ax[3].spines['top'].set_visible(False)
  250. ax[3].spines['left'].set_visible(False)
  251. ax[3].spines['bottom'].set_visible(False)
  252. for j in range(4):
  253. ax[4].bar(1,animal5[j],barWidth,bottom=np.sum(animal5[:j]),color='cornflowerblue',edgecolor='k' )
  254. ax[4].spines['right'].set_visible(False)
  255. ax[4].spines['top'].set_visible(False)
  256. ax[4].spines['left'].set_visible(False)
  257. ax[4].spines['bottom'].set_visible(False)
  258. for j in range(4):
  259. ax[5].bar(1,animal6[j],barWidth,bottom=np.sum(animal6[:j]),color='cornflowerblue',edgecolor='k' )
  260. ax[5].spines['right'].set_visible(False)
  261. ax[5].spines['top'].set_visible(False)
  262. ax[5].spines['left'].set_visible(False)
  263. ax[5].spines['bottom'].set_visible(False)
  264. for j in range(1):
  265. ax[6].bar(1,animal7[j],barWidth,bottom=np.sum(animal7[:j]),color='cornflowerblue',edgecolor='k' )
  266. ax[6].spines['right'].set_visible(False)
  267. ax[6].spines['top'].set_visible(False)
  268. ax[6].spines['left'].set_visible(False)
  269. ax[6].spines['bottom'].set_visible(False)
  270. # plt.savefig("figures/suppl_samplesFromEachAnimal.pdf", dpi = 600)
  271. # %%
  272. adata.obs['cellType_labels_2']
  273. # %%
  274. # plot the detected genes in each sample
  275. figsize(8,3)
  276. sc.pl.violin(adata,'n_genes',groupby='Sample',log=True, jitter=False,color='g')#,save='suppl_detectedGenes_eachSample.pdf')
  277. # %%
  278. # plot the total counts in each sample
  279. figsize(8,3)
  280. ax = sc.pl.violin(adata,'total_counts',groupby='Sample',log=True, jitter=False,color='g')#,save='suppl_totalCounts_eachSample.pdf')
  281. # %%
  282. # of cells relative to the UMI counts
  283. figsize(8,5)
  284. nCells_hist = hist(adata.obs['total_counts'],bins=range(0,30000,1000))
  285. meanCounts = np.mean(adata.obs['total_counts'])
  286. medianCount = np.median(adata.obs['total_counts'])
  287. # add figure properties.
  288. ax = plt.gca()
  289. ylim= ax.get_ylim()
  290. ax.plot([meanCounts,meanCounts],ylim,c='r')
  291. ax.plot([medianCount,medianCount],ylim,c='k')
  292. ax.text(15000,20000,'meanCounts: '+str(meanCounts))
  293. ax.text(15000,15000,'medianCount: '+str(medianCount))
  294. ax.spines['right'].set_visible(False)
  295. ax.spines['top'].set_visible(False)
  296. ax.legend(loc='upper right')
  297. # plt.savefig("figures/suppl_UMIcountsDistribution.pdf", dpi = 600)
  298. # %%
  299. # of cells relative to the detected genes
  300. figsize(8,5)
  301. nCells_hist = hist(adata.obs['n_genes'],bins=range(0,9000,500),color = 'darkgreen')
  302. mean_nGenes = np.mean(adata.obs['n_genes'])
  303. median_nGenes = np.median(adata.obs['n_genes'])
  304. # add figure properties.
  305. ax = plt.gca()
  306. ylim= ax.get_ylim()
  307. ax.plot([mean_nGenes,mean_nGenes],ylim,c='r')
  308. ax.plot([median_nGenes,median_nGenes],ylim,c='k')
  309. ax.text(4000,20000,'mean_nGenes: '+str(mean_nGenes))
  310. ax.text(4000,15000,'median_nGenes: '+str(median_nGenes))
  311. ax.spines['right'].set_visible(False)
  312. ax.spines['top'].set_visible(False)
  313. ax.legend(loc='upper right')
  314. # plt.savefig("figures/suppl_detectedGenesDistribution.pdf", dpi = 600)
  315. # %%
  316. figsize(8,7)
  317. sc.pl.umap(adata,color=['doublet_score'],vmin=0,vmax=1.0, size=12, cmap = 'summer')#,save='suppl_doubleletScore.pdf')# 'RdGy_r',)
  318. # %%
  319. figsize(8,8)
  320. sc.pl.umap(adata,color=['Sex'], size=10)#,save='suppl_sex.pdf')
  321. # %%
  322. figsize(8,7)
  323. sc.pl.umap(adata,color=['sampleLayers'],vmin=0,vmax=1.0, size=12)#, save='suppl_layersDistribution_allClusters.pdf')
  324. # %%
  325. figsize(8,7)
  326. sc.pl.umap(adata,color=['Sample'],vmin=0,vmax=1.0, size=3, frameon='', title='', cmap = 'RdGy_r')#,save='suppl_batchDistribution_allClusters.pdf')
  327. # %%
  328. # %%
  329. # %%

Clusters_Plotting.ipynb at commit 44cd8a6, no license · at the source

Overview

Authors: Rui-Feng Liu1, Mengyao Huang1, Yuhui Shen1, Mingting Shao1, Junzhan Jing2,3, Nana Xu1, Lei Tang1, Biaodi Liu1, Jianming Shi1, Fanrui Chen1, Zhao-Zhe Hao1, Xiaolong Jiang2,3, Sheng Liu1
  1. State Key Laboratory of Ophthalmology, Zhongshan Ophthalmic Center, Sun Yat-sen University, Guangdong Provincial Key Laboratory of Ophthalmology and Visual Science, Guangzhou, China
  2. Department of Neuroscience, Baylor College of Medicine, Houston, TX USA
  3. Jan and Dan Duncan Neurological Research Institute, Texas Children’s Hospital, Houston, TX USA
Journal: Nature cell biology, volume 28, issue 8, pages 1742-1757
Dates: received 4 May 2025; accepted 5 June 2026; published online 2 July 2026; in print 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1038/s41556-026-02009-4 · PMID 42393360 · PMCID PMC13457102 · OpenAlex W7167052611
Open access: hybrid, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: genetics / omics (modality), cellular / molecular (subfield)
Methods: Spectral & time-frequency, Statistics, Smoothing, state filtering, decompositions, Preprocessing, Connectivity, Machine learning, fMRI & imaging, Single-unit activity, calcium imaging
Keywords: RNA sequencing, Transcriptomics, Gene expression, Computer modelling
MeSH: Insular Cortex*, Neurons*, Action Potentials, Animals, Axons, Dendrites, Female, Male, Transcriptome (* major topic)
Topic: Neural dynamics and brain function (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: NIMH NIH HHS (R01 MH120404, R01 MH122169); National Natural Science Foundation of China (National Science Foundation of China) (82425016, 81961128021); U.S. Department of Health & Human Services | National Institutes of Health (NIH) (R01 MH120404, R01 MH122169)
Citations: not cited yet (Europe PMC); 113 references in the paper
Research resources: Neuroscience Multi-omics Archive RRID:SCR_016152

Abstract

The anterior insular cortex (AIC) is a critical hub integrating exteroceptive and interoceptive information into high-order cognition, yet its neural basis remains incompletely understood. Here, by combining whole-cell-based single-cell transcriptomics with Patch-seq recordings, we resolved and characterized 78 detailed cell types in the macaque AIC, revealing the diversity and specialization of this region in cell type, connectivity profile, signal-processing strategy and metabolic characteristics. Among these, we identified two transcriptomically and morphoelectrically defined von Economo neuron (VEN) subtypes, DSG2-expressing VEN-L and POC5-expressing VEN-S, transcriptomically relating to extratelencephalic and corticothalamic projection neurons, respectively. We also uncovered a previously underappreciated signal-processing strategy by VENs, whereby the geometry of the dendrite-originating axon reshapes action potential dynamics and enhances somatic responsiveness to deep-layer synaptic inputs. Our multimodal atlas establishes a molecular and functional framework for investigating the circuit principles underlying cognitive processes in the primate AIC.

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 10 matches between paragraphs and lines of code.

haozhaozhe/FM_V1

License: MIT
State: the link answers, verified on 7 November 2026
Evidence: files inventoried
Commit: 360f770e4cae8b6cebcf0748f3f9d2b8c9daa2aa, 8 November 2022
Languages: Python (6)
Size: 19 files, 6 scripts
Software Heritage: not archived
Found in: the text, “Wei et al.”
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: Scanpy (6 files), Matplotlib (4 files), pandas (3 files), NumPy (2 files), seaborn (2 files), Harmony (1 file), SciPy (1 file)
Availability: 2 checks, the latest on 7 November 2026: the link answers
  • 7 November 2026: the link answers
  • 27 September 2026: the link answers
8 files

RFLiu2021/AIC_proj

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 44cd8a6dfbb1f1ce363d73742e4f3652086b0f9d, 5 July 2026
Languages: MATLAB (44), Jupyter (31), Python (3)
Size: 159 files, 78 scripts
Software Heritage: not archived
Found in: “Code availability”
Holds: README, 31 notebooks
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: pandas (10 files), Scanpy (10 files), seaborn (9 files), Matplotlib (7 files), NumPy (7 files), Harmony (5 files)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
10 files

Zenodo 19995355

License: CC-BY-4.0
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Size: 1 file
Software Heritage: not checked
Found in: the references
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
  • 27 September 2026: the link answers (HTTP 200)
At the source:

Zenodo 17799559

License: CC-BY-4.0
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Size: 6 files
Software Heritage: not checked
Found in: the references
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
  • 27 September 2026: the link answers (HTTP 200)
At the source:

Code availability

The custom-made software PatchAnaLab was developed and deposited at Zenodo112. The code used for data analysis, computational modelling and figure generation is available on GitHub at https://github.com/RFLiu2021/AIC_proj, with direct links to the processed data and meta data deposited at Zenodo113.

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

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:

  • 4 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 16 scripts, each with its path and the digest of its content;
  • 10 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

Other data links

Data Availability Statement

Sequencing data that support the findings of this study, including 10x scRNA-seq data and Patch-seq data (both in FASTQ format), have been deposited in the Gene Expression Omnibus (GEO) under accession numbers GSE319557 (https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE319557) and GSE319369 (https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE319369), respectively. Previously published sequencing data that were reanalysed here are available at EMBL-EBI under accession code E-MTAB-10459 (http://www.ebi.ac.uk/arrayexpress/experiments/E-MTAB-10459/) (ref. 2), Neuroscience Multi-omics Archive (NeMO, RRID:SCR_016152 (https://scicrunch.org/resolver/SCR_016152/))41, and GEO under accession numbers GSE115746 (http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE115746) (ref. 47), GSE127898 (https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE127898) and GSE127774 (http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE127774) (ref. 46). Metabolomics data that support the findings of this study have been deposited in MetaboLights under accession code MTBLS13927 (http://www.ebi.ac.uk/metabolights/MTBLS13927). Electrophysiological data that supporting the findings have been deposited in the DANDI archive at https://dandiarchive.org/dandiset/001746 (main dataset, Patch-seq), https://dandiarchive.org/dandiset/001750 (https://dandiarchive.org/dandiset/001746) (sodium channel currents), https://dandiarchive.org/dandiset/001751 (https://dandiarchive.org/dandiset/001746) (multi-Patch recording) and https://dandiarchive.org/dandiset/001752 (https://dandiarchive.org/dandiset/001746) (postsynaptic currents). Neuronal morphology data supporting the findings have been deposited at NeuroMorpho.org ref. 111 in ASC format. All other data supporting the findings of this study are available from the corresponding authors on reasonable request. Source data are provided with this paper.

The custom-made software PatchAnaLab was developed and deposited at Zenodo112. The code used for data analysis, computational modelling and figure generation is available on GitHub at https://github.com/RFLiu2021/AIC_proj, with direct links to the processed data and meta data deposited at Zenodo113.

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 2, 28 September 2026

  • Publisher: n/a → Nature Portfolio

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 13 authors, 4 keywords, 9 MeSH terms, 3 funders, 110 references, 1 RRID.

Cite

This paper

Liu, R.-F., Huang, M., Shen, Y., Shao, M., Jing, J., Xu, N., Tang, L., Liu, B., Shi, J., Chen, F., Hao, Z.-Z., Jiang, X., & Liu, S. (2026). An atlas of primate insular cortex reveals a signal-processing strategy in von Economo neurons. Nature cell biology, 28(8), 1742-1757. https://doi.org/10.1038/s41556-026-02009-4

BibTeX

@article{liu2026atlas,
author = {Liu, Rui-Feng and Huang, Mengyao and Shen, Yuhui and Shao, Mingting and Jing, Junzhan and Xu, Nana and Tang, Lei and Liu, Biaodi and Shi, Jianming and Chen, Fanrui and Hao, Zhao-Zhe and Jiang, Xiaolong and Liu, Sheng},
title = {{An atlas of primate insular cortex reveals a signal-processing strategy in von Economo neurons}},
journal = {Nature cell biology},
year = {2026},
month = jul,
volume = {28},
number = {8},
pages = {1742--1757},
publisher = {Nature Portfolio},
issn = {1465-7392},
doi = {10.1038/s41556-026-02009-4},
url = {https://doi.org/10.1038/s41556-026-02009-4},
pmid = {42393360},
pmcid = {PMC13457102}
}

RIS

TY - JOUR
AU - Liu, Rui-Feng
AU - Huang, Mengyao
AU - Shen, Yuhui
AU - Shao, Mingting
AU - Jing, Junzhan
AU - Xu, Nana
AU - Tang, Lei
AU - Liu, Biaodi
AU - Shi, Jianming
AU - Chen, Fanrui
AU - Hao, Zhao-Zhe
AU - Jiang, Xiaolong
AU - Liu, Sheng
TI - An atlas of primate insular cortex reveals a signal-processing strategy in von Economo neurons
T2 - Nature cell biology
J2 - Nat Cell Biol
PY - 2026
DA - 2026/07/02
VL - 28
IS - 8
SP - 1742
EP - 1757
SN - 1465-7392
PB - Nature Portfolio
DO - 10.1038/s41556-026-02009-4
UR - https://doi.org/10.1038/s41556-026-02009-4
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41556-026-02009-4",
"type": "article-journal",
"title": "An atlas of primate insular cortex reveals a signal-processing strategy in von Economo neurons",
"container-title": "Nature cell biology",
"author": [
{
"family": "Liu",
"given": "Rui-Feng"
},
{
"family": "Huang",
"given": "Mengyao"
},
{
"family": "Shen",
"given": "Yuhui"
},
{
"family": "Shao",
"given": "Mingting"
},
{
"family": "Jing",
"given": "Junzhan"
},
{
"family": "Xu",
"given": "Nana"
},
{
"family": "Tang",
"given": "Lei"
},
{
"family": "Liu",
"given": "Biaodi"
},
{
"family": "Shi",
"given": "Jianming"
},
{
"family": "Chen",
"given": "Fanrui"
},
{
"family": "Hao",
"given": "Zhao-Zhe"
},
{
"family": "Jiang",
"given": "Xiaolong"
},
{
"family": "Liu",
"given": "Sheng"
}
],
"container-title-short": "Nat Cell Biol",
"volume": "28",
"issue": "8",
"page": "1742-1757",
"DOI": "10.1038/s41556-026-02009-4",
"PMID": "42393360",
"PMCID": "PMC13457102",
"ISSN": "1465-7392",
"publisher": "Nature Portfolio",
"URL": "https://doi.org/10.1038/s41556-026-02009-4",
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
2
]
]
}
}

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-72935-2 [code]
Spindle neurons in human cortex possess distinctive firing properties and transcriptomic signatures.
Journal: Nature communications
In common: Scanpy, seaborn, pandas, 3 other tools, genetics / omics, cellular / molecular, 19 references
[2] doi:10.1038/s41467-022-34590-1 [code]
Identification of visual cortex cell types and species differences using single-cell RNA sequencing.
Journal: Nature communications
In common: Harmony, Scanpy, seaborn, 4 other tools, ArrayExpress E-MTAB-10459, genetics / omics, cellular / molecular, 12 references, author Sheng Liu
[3] doi:10.1016/j.xgen.2024.100703 [code]
Single-nucleus multi-omics analyses reveal cellular and molecular innovations in the anterior cingulate cortex during primate evolution.
Journal: Cell genomics
In common: Harmony, Scanpy, seaborn, 4 other tools, genetics / omics, cellular / molecular, 17 references
[4] doi:10.1016/j.celrep.2024.114718 [code]
Areal specializations in the morpho-electric and transcriptomic properties of primate layer 5 extratelencephalic projection neurons.
Journal: Cell reports
In common: pandas, SciPy, Matplotlib, 1 other tool, genetics / omics, 19 references
[5] doi:10.64898/2026.01.08.698257 [code]
Human Neocortical Glutamatergic Neurons Revealed Through Multimodal Profiling
Journal: bioRxiv (preprint)
In common: seaborn, pandas, SciPy, 2 other tools, genetics / omics, 16 references
[6] doi:10.1038/s41467-025-62793-9 [code]
Charting the spatial transcriptome of the human cerebral cortex at single-cell resolution.
Journal: Nature communications
In common: Harmony, Scanpy, seaborn, 4 other tools, genetics / omics, cellular / molecular, 11 references
[7] doi:10.1038/s41586-021-03465-8 [code]
Comparative cellular analysis of motor cortex in human, marmoset and mouse.
Journal: Nature
In common: Harmony, Scanpy, seaborn, 4 other tools, genetics / omics, cellular / molecular, 11 references
[8] doi:10.1038/s41598-025-30470-y [code]
VENturing into machine learning for the morphological analysis of von Economo neurons.
Journal: Scientific reports
In common: pandas, Matplotlib, NumPy, 11 references
[9] doi:10.1016/j.celrep.2026.117500 [code]
Spatio-molecular gene expression reflects dorsal anterior cingulate cortex structure and function in the human brain.
Journal: Cell reports
In common: Harmony, Scanpy, pandas, 1 other tool, genetics / omics, cellular / molecular, 9 references
[10] doi:10.3389/fnsyn.2021.769228
Spindle-Shaped Neurons in the Human Posteromedial (Precuneus) Cortex.
Journal: Frontiers in synaptic neuroscience
In common: 12 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.

Add the badge to the code's README

OSCR: the badge of this paper

If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.

Markdown
<!-- oscr-badge:start -->
[![OSCR](https://openscicode.org/badge/doi/10.1038/s41556-026-02009-4.svg)](https://openscicode.org/badge/doi/10.1038/s41556-026-02009-4)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1038/s41556-026-02009-4.svg
   :target: https://openscicode.org/badge/doi/10.1038/s41556-026-02009-4
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41556-026-02009-4"><img src="https://openscicode.org/badge/doi/10.1038/s41556-026-02009-4.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->

On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".

If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge 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: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.

Report a mismatch between the code and the paper · Report a code error (signed in)

Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.

Report a reproduction failure (signed in)

Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.