OSCR

Comparing effective and functional connectivity.

Code ↔ Paper

4 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 4 matches
  1. [1] § Methods › Simulation of a large-scale network of neurons ↔ PNASnexus2024/MATSimulation/C1_CoNNECT_cupy_202304261000.py, lines 36–83 · score 0.70 · standard deviation, inhibitory neurons, membrane, component, background, simulation
  2. [2] § Results › Excitatory-inhibitory dominance of ECs ↔ PNASnexus2024/ShinGLMCC/main_modelcomparison.py, lines 188–270 · score 0.61 · Putative excitatory, Excitatory inhibitory, excitatory connections, inhibitory connections, dominance, neurons
  3. [3] § Methods › Simulation of a large-scale network of neurons ↔ PNASnexus2024/PoissonSimulation/PoissonSimulation_forFig2_cython.py, lines 146–189 · score 0.60 · Ornstein Uhlenbeck process, noise, simulation, delta, spike
  4. [4] § Results › Excitatory-inhibitory dominance of ECs ↔ PNASnexus2024/ShinGLMCC/main_modelcomparison.py, lines 188–270 · score 0.58 · Putatively inhibitory, excitatory connections, inhibitory connections, dominance, neuron

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

Python · 274 lines · 12 KB · GPL-3.0 · 2 matches

  1. """
  2. ##############################################################################
  3. main_modelcomparison.py
  4. by Yasuhiro Tsubo ([email hidden])
  5. modified ver. 2023.10.28
  6. ##############################################################################
  7. """
  8. ## ===================================================================
  9. ## External modules
  10. ## ===================================================================
  11. import os
  12. import sys
  13. import pickle
  14. import pandas as pd
  15. import ShinGLMCC.CJudge
  16. ## ===================================================================
  17. ## Parameters
  18. ## ===================================================================
  19. ## DATAID: Name of target dataset
  20. DATAID = sys.argv[1]
  21. ## CONNECTION_THRESHOLD: The significance level
  22. ## for determining the presence or absence of a connection
  23. CONNECTION_THRESHOLD = 0.0001
  24. ## ===================================================================
  25. ## Functions
  26. ## ===================================================================
  27. if __name__ == "__main__":
  28. #"""
  29. ## ---------------------------------------------------------
  30. ## Call CJudge.ClassicalCC() (3 sec)
  31. ## Check for significant differences in histogram bin values.
  32. ## Calculate the p-value for ClassicalCC method.
  33. ## [input]
  34. ## (DATAID)_cor_K.pkl: dfccK cross-correlation with resolution 1ms
  35. ## [output]
  36. ## (DATAID)_Classical_best.csv: dfbsc
  37. ## .........................................................
  38. ## +dfccK: (Pandas DataFrame)
  39. ## {
  40. ## * -WINHALF_MS to WINHALF_MS: (float)
  41. ## Correlation histogram values
  42. ## at Time lags -WINHALF_MS to WINHALF_MS.
  43. ## *"ref": (int) Reference Neuron ID.
  44. ## *"tar": (int) Target Neuron ID.
  45. ## }
  46. ## Rows: N(N-1), all neuron pairs, auto-indexed.
  47. ## (N= Total number of neurons.)
  48. ## .........................................................
  49. ## +dfbsc: (Pandas DataFrame)
  50. ## {
  51. ## *"ref": (int) Reference Neuron ID.
  52. ## *"tar": (int) Target Neuron ID.
  53. ## *"maxcc": (int) Maximum value of cross-correlation histogram.
  54. ## *"mincc": (int) Minimum value of cross-correlation histogram.
  55. ## *"avecc": (float) Average value of cross-correlation histogram.
  56. ## *"Ze": (float) (maxcc-avecc)/sqrt(avecc) Z-score.
  57. ## *"Zi": (float) (mincc-avecc)/sqrt(avecc) Z-score.
  58. ## *"alphae": (float) P-value for the presence of putative connection
  59. ## by Ze (Excitatory).
  60. ## *"alphai": (float) P-value for the presence of putative connection
  61. ## by Zi (Inhibitory).
  62. ## *"upcc": Upper cross-correlation value
  63. ## when "alphae"="CONNECTION_THRESHOLD"
  64. ## *"lowcc": Lower cross-correlation value
  65. ## when "alphai"="CONNECTION_THRESHOLD"
  66. ## *"ext": (int) Putative excitatory connection indicator.
  67. ## *"inh": (int) Putative inhibitory connection indicator.
  68. ## (1 if significant, 0 otherwise)
  69. ## }
  70. ## Rows: N(N-1), auto-indexed. (N: Total number of neurons.)
  71. ## rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
  72. with open(DATAID+"_cor_K.pkl","rb") as f:
  73. dfccK = pickle.load(f)
  74. ## rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
  75. print("call CJudge.ClassicalCC ...")
  76. dfbsc = ShinGLMCC.CJudge.classicalCC(dfccK,CONNECTION_THRESHOLD)
  77. print("done")
  78. ## wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  79. dfbsc.to_csv(DATAID+"_Classical_best.csv",index=None)
  80. ## wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  81. ## ---------------------------------------------------------
  82. #"""
  83. #"""
  84. ## ---------------------------------------------------------
  85. ## Call CJudge.Grouping() (2 sec)
  86. ## Group by the presence or absence of connections
  87. ## estimated by the three estimation methods.
  88. ## [input]
  89. ## (DATAID)_Classical_best.csv: dfbsc
  90. ## (DATAID)_GLM_best.csv: dfbsg
  91. ## (DATAID)_Shin_best.csv: dfbss
  92. ## [output]
  93. ## (DATAID)_group.csv: dfgrp
  94. ## .........................................................
  95. ## +dfbsc: (Pandas DataFrame)
  96. ## {
  97. ## *"ref": (int) Reference Neuron ID.
  98. ## *"tar": (int) Target Neuron ID.
  99. ## *"maxcc": (int) Maximum value of cross-correlation histogram.
  100. ## *"mincc": (int) Minimum value of cross-correlation histogram.
  101. ## *"avecc": (float) Average value of cross-correlation histogram.
  102. ## *"Ze": (float) (maxcc-avecc)/sqrt(avecc) Z-score.
  103. ## *"Zi": (float) (mincc-avecc)/sqrt(avecc) Z-score.
  104. ## *"alphae": (float) P-value for the presence of putative connection
  105. ## by Ze (Excitatory).
  106. ## *"alphai": (float) P-value for the presence of putative connection
  107. ## by Zi (Inhibitory).
  108. ## *"upcc": Upper cross-correlation value
  109. ## when "alphae"="CONNECTION_THRESHOLD"
  110. ## *"lowcc": Lower cross-correlation value
  111. ## when "alphai"="CONNECTION_THRESHOLD"
  112. ## *"ext": (int) Putative excitatory connection indicator.
  113. ## *"inh": (int) Putative inhibitory connection indicator.
  114. ## (1 if significant, 0 otherwise)
  115. ## }
  116. ## Rows: N(N-1), auto-indexed. (N: Total number of neurons.)
  117. ## .........................................................
  118. ## +dfbs[g/s]: (Pandas DataFrame)
  119. ## {
  120. ## * 0 to WINHALF_MS: (float) Optimised values of parameter a(t)
  121. ## at Time lags 0 to WINHALF_MS.
  122. ## !! Note that only the right-half data was extracted.
  123. ## *"ref": (int) Reference Neuron ID.
  124. ## *"tar": (int) Target Neuron ID.
  125. ## *"J": (float) Optimised values of parameter JR
  126. ## (Synapric weight for the right side.)
  127. ## *"logpost": (float) Log-posterior across all ranges
  128. ## with the estimated parameters.
  129. ## *"loglike": (float) Log-likelihood for right-half side data.
  130. ## *"delay": (int) Delay parameter of synaptic function. [ms]
  131. ## *"tau": (int) Decay time constant of synaptic function. [ms]
  132. ## *"alpha": (float) P-value for the presence of putative connection.
  133. ## *"ext": (int) Putative excitatory connection indicator.
  134. ## *"inh": (int) Putative inhibitory connection indicator.
  135. ## (1 if significant, 0 otherwise)
  136. ## }
  137. ## Rows: N(N-1), all neuron pairs, auto-indexed.
  138. ## (N= Total number of neurons.)
  139. ## .........................................................
  140. ## +dfgrp: (Pandas DataFrame)
  141. ## {
  142. ## *"ref": (int) Reference Neuron ID.
  143. ## *"tar": (int) Target Neuron ID.
  144. ## *"group": (str) Connection codes
  145. ## ("N"= none, "C"= Classical, "G"= GLMCC, "S"= ShinGLMCC,
  146. ## e.g., "CG" indicates connections estimated
  147. ## by Clasical & GLM only.)
  148. ## *"Classical", "GLM", "Shin": (int)
  149. ## Connectivity status by respective methods
  150. ## (1 for detected, 0 for not detected)
  151. ## *"ext-[c/g/s]", "inh-[c/g/s]": (int)
  152. ## Putative excitatory ("ext") or inhibitory ("inh")
  153. ## connection indicator per method.
  154. ## ([c] Classical, [c] GLMCC, [s] ShinGLMCC)
  155. ## (1 if significant, 0 otherwise)
  156. ## }
  157. ## Rows: N(N-1), all neuron pairs, auto-indexed.
  158. ## (N= Total number of neurons.)
  159. ## rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
  160. dfbsc = pd.read_csv(DATAID+"_Classical_best.csv")
  161. dfbsg = pd.read_csv(DATAID+"_GLM_best.csv")
  162. dfbss = pd.read_csv(DATAID+"_Shin_best.csv")
  163. ## rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
  164. print("call CJudge.Grouping ...")
  165. dfgrp = ShinGLMCC.CJudge.Grouping(dfbsc,dfbsg,dfbss)
  166. print("done")
  167. ## wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  168. dfgrp.to_csv(DATAID+"_group.csv",index=None)
  169. ## wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  170. ## ---------------------------------------------------------
  171. #"""
  172. #"""
  173. ## ---------------------------------------------------------
  174. ## Call CJudge.EIdominance()
  175. ## Compute the excitatory Inhibitory dominance.
  176. ## [input]
  177. ## (DATAID)_group.csv: dfgrp
  178. ## [output]
  179. ## (DATAID)_EId_Classical.csv: dfeic
  180. ## (DATAID)_EId_GLM.csv: dfeig
  181. ## (DATAID)_EId_Shin.csv: dfeis
  182. ## (DATAID)_EId.csv: dfeid
  183. ## (DATAID)_grpnum.csv: dfgpn
  184. ## .........................................................
  185. ## +dfgrp: (Pandas DataFrame)
  186. ## {
  187. ## *"ref": (int) Reference Neuron ID.
  188. ## *"tar": (int) Target Neuron ID.
  189. ## *"group": (str) Connection codes
  190. ## ("N"= none, "C"= Classical, "G"= GLMCC, "S"= ShinGLMCC,
  191. ## e.g., "CG" indicates connections estimated
  192. ## by Clasical & GLM only.)
  193. ## *"Classical", "GLM", "Shin": (int)
  194. ## Connectivity status by respective methods
  195. ## (1 for detected, 0 for not detected)
  196. ## *"ext-[c/g/s]", "inh-[c/g/s]": (int)
  197. ## Putative excitatory ("ext") or inhibitory ("inh")
  198. ## connection indicator per method.
  199. ## ([c] Classical, [c] GLMCC, [s] ShinGLMCC)
  200. ## (1 if significant, 0 otherwise)
  201. ## }
  202. ## Rows: N(N-1), all neuron pairs, auto-indexed.
  203. ## (N= Total number of neurons.)
  204. ## .........................................................
  205. ## +dfei[c/g/s]: (Pandas DataFrame)
  206. ## {
  207. ## *"ref": (int) Reference Neuron ID.
  208. ## *"c": Number of putative connection.
  209. ## *"e": Number of putative excitatory connection.
  210. ## *"i": Number of putative inhibitory connection.
  211. ## *"dom": Excitatory Inhibitory dominance.
  212. ## (dom= (e+i)/(e+i) )
  213. ## }
  214. ## Rows: Number of neurons with non-zero putative connections.
  215. ## .........................................................
  216. ## +dfeid: (Pandas DataFrame)
  217. ## {
  218. ## *"average absolute values": (float)
  219. ## Average absolute value of "Excitatory Inhibitory dominance".
  220. ## *"expressing perfect consistency": (float)
  221. ## Proportion of "Excitatory Inhibitory dominance"
  222. ## equaling exactly -1 or +1.
  223. ## }
  224. ## Rows: "Classical","GLM","Shin"
  225. ## .........................................................
  226. ## +dfgpn: (Pandas DataFrame)
  227. ## {
  228. ## *"num": (int)
  229. ## Number of neurons assigned to each "Connection code".
  230. ## }
  231. ## Rows: Connection codes ("C","CG","CGS","CS","G","GS","N","S")
  232. ## rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
  233. dfgrp = pd.read_csv(DATAID+"_group.csv")
  234. ## rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
  235. print("call CJudge.EIdominance ...")
  236. dfeid,dfgpn,dfeic,dfeig,dfeis = ShinGLMCC.CJudge.EIdominance(DATAID,dfgrp)
  237. print("done")
  238. ## wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  239. dfeic.to_csv(DATAID+"_EId_Classical.csv",index=None)
  240. dfeig.to_csv(DATAID+"_EId_GLM.csv",index=None)
  241. dfeis.to_csv(DATAID+"_EId_Shin.csv",index=None)
  242. dfeid.to_csv(DATAID+"_EId.csv")
  243. dfgpn.to_csv(DATAID+"_grpnum.csv")
  244. ## wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  245. ## ---------------------------------------------------------
  246. #"""

main_modelcomparison.py at commit 411e4da, under GPL-3.0 · at the source

Overview

Authors: Shigeru Shinomoto1,2, Yasuhiro Tsubo3
  1. Graduate School of Biostudies, Kyoto University, 606-8501 Kyoto, Japan
  2. Research Organization of Open Innovation and Collaboration, Ritsumeikan University, 567-8570 Osaka, Japan
  3. College of Information Science and Engineering, Ritsumeikan University, 567-8570 Osaka, Japan
Institutions: Ritsumeikan University (Japan); Kyoto University (Japan)
Journal: Scientific reports, volume 16, issue 1, article 12161
Dates: received 2 October 2025; accepted 26 February 2026; published online 5 March 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s41598-026-42580-2 · PMID 41787015 · PMCID PMC13076884 · OpenAlex W7133835668
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: fMRI (modality), systems (subfield)
Methods: Machine learning, Single-unit activity, calcium imaging
Keywords: Computational biology and bioinformatics, Neuroscience
MeSH: Brain*, Nerve Net*, Neurons*, Action Potentials, Animals, Calcium, Models, Neurological (* major topic)
Topic: Neural dynamics and brain function (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: Japan Society for the Promotion of Science (22H05163)
Citations: not cited yet (Europe PMC); 51 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 4 matches between paragraphs and lines of code.

yasuhirotsubo/neuroscience

License: GPL-3.0
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Commit: 411e4da0262ba6d2604724ef76e15dd9aff08fb5, 28 August 2024
Languages: Python (23), Shell (1)
Size: 26 files, 24 scripts
Software Heritage: not archived
Found in: “Code availability”
Holds: license file, environment (PNASnexus2024/PoissonSimulation/setup.py)
Not found: README, CITATION.cff, tests, continuous integration, documentation
Tools: pandas (18 files), NumPy (15 files), Matplotlib (6 files), SciPy (6 files), CuPy (1 file)
Availability: 1 check, the latest on 30 September 2026: the link answers
  • 30 September 2026: the link answers
25 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/s41598-026-42580-2.

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

No dataset and no data link were found in the paper.

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:

  • it says that the data are available on request

Read it in the paper: doi.org/10.1038/s41598-026-42580-2.

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, 2 authors, 2 keywords, 7 MeSH terms, 1 funder, 50 references.

Cite

This paper

Shinomoto, S., & Tsubo, Y. (2026). Comparing effective and functional connectivity. Scientific reports, 16(1), 12161. https://doi.org/10.1038/s41598-026-42580-2

BibTeX

@article{shinomoto2026comparing,
author = {Shinomoto, Shigeru and Tsubo, Yasuhiro},
title = {{Comparing effective and functional connectivity}},
journal = {Scientific reports},
year = {2026},
month = mar,
volume = {16},
number = {1},
pages = {12161},
publisher = {Nature Publishing Group},
issn = {2045-2322},
doi = {10.1038/s41598-026-42580-2},
url = {https://doi.org/10.1038/s41598-026-42580-2},
pmid = {41787015},
pmcid = {PMC13076884}
}

RIS

TY - JOUR
AU - Shinomoto, Shigeru
AU - Tsubo, Yasuhiro
TI - Comparing effective and functional connectivity
T2 - Scientific reports
J2 - Sci Rep
PY - 2026
DA - 2026/03/05
VL - 16
IS - 1
SP - 12161
SN - 2045-2322
PB - Nature Publishing Group
DO - 10.1038/s41598-026-42580-2
UR - https://doi.org/10.1038/s41598-026-42580-2
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41598-026-42580-2",
"type": "article-journal",
"title": "Comparing effective and functional connectivity",
"container-title": "Scientific reports",
"author": [
{
"family": "Shinomoto",
"given": "Shigeru"
},
{
"family": "Tsubo",
"given": "Yasuhiro"
}
],
"container-title-short": "Sci Rep",
"volume": "16",
"issue": "1",
"page": "12161",
"DOI": "10.1038/s41598-026-42580-2",
"PMID": "41787015",
"PMCID": "PMC13076884",
"ISSN": "2045-2322",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41598-026-42580-2",
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
5
]
]
}
}

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.1371/journal.pcbi.1014615 [code]
Toward reliable machine learning models for neural circuit inference: A diagnostic study of CNNs on spike trains.
Journal: PLoS computational biology
In common: pandas, SciPy, Matplotlib, 1 other tool, 9 references
[2] doi:10.1038/s41467-026-71331-0 [code]
A multimodal approach for visualizing and identifying electrophysiological cell types in vivo.
Journal: Nature communications
In common: pandas, SciPy, Matplotlib, 1 other tool, 4 references
[3] doi:10.1080/26941899.2026.2619222
Neurodatascience: Past, Present, and Future.
Journal: Data science in science
In common: 5 references
[4] doi:10.1038/s41592-026-03076-z [code]
Neuropixels Opto: combining high-resolution electrophysiology and optogenetics.
Journal: Nature methods
In common: pandas, SciPy, Matplotlib, 1 other tool, systems, 3 references
[5] doi:10.1038/s41593-026-02232-0 [code]
Entorhinal cortex represents task-relevant remote locations independently of CA1.
Journal: Nature neuroscience
In common: pandas, SciPy, Matplotlib, 1 other tool, systems, 3 references
[6] doi:10.1162/netn.a.570 [code]
Higher-order statistics for constructing centered edge functional connectivity.
Journal: Network neuroscience (Cambridge, Mass.)
In common: pandas, SciPy, Matplotlib, 1 other tool, fMRI, systems, 2 references
[7] doi:10.1016/j.neuron.2026.03.034 [code]
Dentate gyrus interneurons modulate winner-take-all network dynamics in freely behaving mice.
Journal: Neuron
In common: pandas, SciPy, Matplotlib, 1 other tool, systems, 2 references
[8] doi:10.1038/s41593-026-02388-9 [code]
Hippocampal CA3 connectomics reveals a gradient of mossy fiber inputs and selective feedforward inhibition onto pyramidal cells.
Journal: Nature neuroscience
In common: pandas, SciPy, Matplotlib, 1 other tool, systems, 2 references
[9] doi:10.1038/s41592-026-03154-2 [code]
Simultaneous single-cell calcium imaging of neuronal population activity and brain-wide BOLD fMRI.
Journal: Nature methods
In common: pandas, SciPy, Matplotlib, 1 other tool, fMRI, 2 references
[10] doi:10.1016/j.celrep.2026.117646 [code]
Medial entorhinal-hippocampal desynchronization parallels the emergence of memory impairment in a mouse model of Alzheimer's disease pathology.
Journal: Cell reports
In common: pandas, SciPy, Matplotlib, 1 other tool, systems, 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.