Skip to main content

Time-Aware PC Python Package

Project description

TimeAwarePC: A Python Package for Finding Causal Connectivity from Time Series Data image Documentation Status

TimeAwarePC is a Python package that implements the Time-Aware PC Algorithm for finding the Causal Functional Connectivity from time series data, based on recent research in directed probabilistic graphical modeling with time series [1]. The package also includes implementations of Granger Causality and the PC algorithm.

Installation

You can get the latest version of TimeAwarePC as follows.

$ pip install timeawarepc

Requirements

  • Python >=3.6
  • Python packages automatically checked and installed as part of the setup. To use Granger Causality, additional dependency of nitime which can be installed by pip install nitime.
  • R >=4.0
  • R package kpcalg and its dependencies. They can be installed in R or RStudio as follows:
> install.packages("BiocManager")
> BiocManager::install("graph")
> BiocManager::install("RBGL")
> install.packages("pcalg")
> install.packages("kpcalg")

Documentation

Documentation is available at readthedocs.org

Tutorial

See the Quick Start Guide for a quick tutorial of the main functionalities of this library and check if it is installed properly.

Contributing

Your help is absolutely welcome! Please do reach out or create a feature branch!

Citation

Biswas, R., & Shlizerman, E. (2022). Statistical Perspective on Functional and Causal Neural Connectomics: The Time-Aware PC Algorithm. https://arxiv.org/abs/2204.04845

Biswas, R., & Shlizerman, E. (2021). Statistical Perspective on Functional and Causal Neural Connectomics: A Comparative Study. Frontiers in Systems Neuroscience. https://doi.org/10.3389/fnsys.2022.817962

References

R Clay Reid. (2012) From functional architecture to functional connectomics. Neuron, 75(2):209–217.

Smith, S. M., Miller, K. L., Salimi-Khorshidi, G., Webster, M., Beckmann, C. F., Nichols, T. E., ... & Woolrich, M. W. (2011). Network modelling methods for FMRI. Neuroimage, 54(2), 875-891.

Judea Pearl. (2009) Causality. Cambridge University press.

Markus Kalisch and Peter Bhlmann. (2007) Estimating high-dimensional directed acyclic graphs with the pc-algorithm. In The Journal of Machine Learning Research, Vol. 8, pp. 613-636.

Peter Spirtes, Clark N Glymour, Richard Scheines, and David Heckerman. (2000) Causation, prediction, and search. MIT press.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

timeawarepc-1.1.0.tar.gz (22.0 MB view details)

Uploaded Source

Built Distribution

timeawarepc-1.1.0-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file timeawarepc-1.1.0.tar.gz.

File metadata

  • Download URL: timeawarepc-1.1.0.tar.gz
  • Upload date:
  • Size: 22.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for timeawarepc-1.1.0.tar.gz
Algorithm Hash digest
SHA256 71424bb3fd255d72aec27dc37547926caa889af1a493e68a19e6dc5755980fcb
MD5 172509f375ea8a4a28be8b06b5c4b410
BLAKE2b-256 1957a158838b87b876a9bb9f5cc1fa8423eb1575bf8a9257b60f62e94ae9a83f

See more details on using hashes here.

File details

Details for the file timeawarepc-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: timeawarepc-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for timeawarepc-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 baed08e7659cbafa2d987542694218f1898cfa36a65f832976a6a87691816711
MD5 81ae7bf3c50b89e4f05ac7df6cd6ac89
BLAKE2b-256 0528a6199e078ba573d57cf3b1cbf8f279eac5d7f5cde6435287eb6c8210774a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page