Thanks to visit codestin.com
Credit goes to github.com

Skip to content

aloksneurobot1/NP2scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IBL Flow

A Python package for information flow analysis of IBL Neuropixels data.

Installation

pip install .

Example Usage

from ibl_flow.analysis import run_flow_analysis
from ibl_flow.plotting import plot_connectivity_matrix

# Example session ID
eid = "a2a17073-82f8-43b6-857c-26f6a066a337"

# Define the brain regions of interest
region_list = ["CA1", "VISp", "DG"]

# Run Granger Causality analysis
gc_matrix = run_flow_analysis(eid, region_list, method='granger')

# Plot the resulting connectivity matrix
plot_connectivity_matrix(gc_matrix, title='Granger Causality')

About

NP2 python scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages