timeawarepc 2.0.0__tar.gz → 2.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. {timeawarepc-2.0.0 → timeawarepc-2.0.1}/PKG-INFO +27 -17
  2. {timeawarepc-2.0.0 → timeawarepc-2.0.1}/README.md +25 -15
  3. {timeawarepc-2.0.0 → timeawarepc-2.0.1}/setup.cfg +2 -2
  4. {timeawarepc-2.0.0 → timeawarepc-2.0.1}/setup.py +2 -2
  5. {timeawarepc-2.0.0 → timeawarepc-2.0.1}/timeawarepc/__init__.py +1 -1
  6. {timeawarepc-2.0.0 → timeawarepc-2.0.1}/timeawarepc.egg-info/PKG-INFO +27 -17
  7. {timeawarepc-2.0.0 → timeawarepc-2.0.1}/timeawarepc.egg-info/requires.txt +1 -1
  8. {timeawarepc-2.0.0 → timeawarepc-2.0.1}/LICENSE +0 -0
  9. {timeawarepc-2.0.0 → timeawarepc-2.0.1}/pyproject.toml +0 -0
  10. {timeawarepc-2.0.0 → timeawarepc-2.0.1}/test/test_optional_bootstrap.py +0 -0
  11. {timeawarepc-2.0.0 → timeawarepc-2.0.1}/test/test_partial_corr_shift_invariance.py +0 -0
  12. {timeawarepc-2.0.0 → timeawarepc-2.0.1}/timeawarepc/find_cfc.py +0 -0
  13. {timeawarepc-2.0.0 → timeawarepc-2.0.1}/timeawarepc/gc.py +0 -0
  14. {timeawarepc-2.0.0 → timeawarepc-2.0.1}/timeawarepc/pcalg.py +0 -0
  15. {timeawarepc-2.0.0 → timeawarepc-2.0.1}/timeawarepc/pcalg_helpers.py +0 -0
  16. {timeawarepc-2.0.0 → timeawarepc-2.0.1}/timeawarepc/simulate_data.py +0 -0
  17. {timeawarepc-2.0.0 → timeawarepc-2.0.1}/timeawarepc/tpc.py +0 -0
  18. {timeawarepc-2.0.0 → timeawarepc-2.0.1}/timeawarepc/tpc_helpers.py +0 -0
  19. {timeawarepc-2.0.0 → timeawarepc-2.0.1}/timeawarepc/tutorial.py +0 -0
  20. {timeawarepc-2.0.0 → timeawarepc-2.0.1}/timeawarepc.egg-info/SOURCES.txt +0 -0
  21. {timeawarepc-2.0.0 → timeawarepc-2.0.1}/timeawarepc.egg-info/dependency_links.txt +0 -0
  22. {timeawarepc-2.0.0 → timeawarepc-2.0.1}/timeawarepc.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: timeawarepc
3
- Version: 2.0.0
3
+ Version: 2.0.1
4
4
  Summary: Time-Aware PC Python Package
5
5
  Home-page: https://github.com/biswasr/TimeAwarePC
6
6
  Author: Rahul Biswas
@@ -15,7 +15,7 @@ Description-Content-Type: text/markdown
15
15
  License-File: LICENSE
16
16
  Requires-Dist: numpy
17
17
  Requires-Dist: pandas
18
- Requires-Dist: rpy2==3.5.11
18
+ Requires-Dist: rpy2>=3.5.11
19
19
  Requires-Dist: networkx
20
20
  Requires-Dist: scipy
21
21
  Dynamic: author
@@ -39,11 +39,25 @@ Dynamic: summary
39
39
 
40
40
  ## Installation
41
41
 
42
- ## Requirements
43
- - Python >=3.7, <3.11
44
- - 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```.
45
- - R == 4.4.2
46
- - R package ```kpcalg``` and its dependencies. They can be installed in R or RStudio as follows:
42
+ ### Recommended: conda environment (handles R + kpcalg automatically)
43
+
44
+ ```
45
+ $ git clone https://github.com/shlizee/TimeAwarePC.git
46
+ $ cd TimeAwarePC
47
+ $ conda env create -f environment.yml
48
+ $ conda activate timeawarepc
49
+ $ Rscript install_r_deps.R # installs kpcalg from CRAN archive
50
+ ```
51
+
52
+ This installs Python, R, rpy2, all required R packages (graph, RBGL, pcalg), and TimeAwarePC v2.0.0 in a single isolated environment.
53
+
54
+ ### Manual install (alternative)
55
+
56
+ If you prefer to install without conda:
57
+
58
+ - Python >=3.9, <3.11
59
+ - R >= 4.0
60
+ - R package ```kpcalg``` and its dependencies, installed via R or RStudio:
47
61
  ```
48
62
  > install.packages("BiocManager")
49
63
  > BiocManager::install("graph")
@@ -51,17 +65,13 @@ Dynamic: summary
51
65
  > install.packages("pcalg")
52
66
  > install.packages("https://cran.r-project.org/src/contrib/Archive/kpcalg/kpcalg_1.0.1.tar.gz")
53
67
  ```
54
- <!-- - In addition, if you like to use Granger Causality functions in this package, please separately install nitime as follows:
55
- ```
56
- pip install nitime
57
- ``` -->
58
-
59
- After meeting these requirements, you can get the latest version of TimeAwarePC as follows.
60
-
68
+ - Then:
61
69
  ```
62
70
  $ pip install timeawarepc
63
71
  ```
64
72
 
73
+ To use Granger Causality, also install `nitime` (`pip install nitime`).
74
+
65
75
  ## Documentation
66
76
 
67
77
  [Documentation is available at readthedocs.org](https://timeawarepc.readthedocs.io/en/latest/)
@@ -70,11 +80,11 @@ $ pip install timeawarepc
70
80
 
71
81
  See the [Quick Start Guide](https://timeawarepc.readthedocs.io/en/latest/gettingstarted.html) for a quick tutorial of the main functionalities of this library and check if it is installed properly.
72
82
 
73
- ## What's new in v2.0.0 (BREAKING)
83
+ ## What's new in v2.0.0
74
84
 
75
85
  - `cfc_tpc` now defaults to **no bootstrap subsampling**: a single PC run is performed on the full time-delayed data.
76
- - To enable the legacy bootstrap behavior (50-row windows, 25 iterations), pass `subsampsize=50, niter=25` explicitly.
77
- - Both `subsampsize` and `niter` must be specified together (or both left as the default `None`).
86
+ - To use bootstrap stability scoring, pass `subsampsize` and `niter` together (e.g., `subsampsize=50, niter=25`).
87
+ - Both arguments must be specified together (or both left as the default `None`).
78
88
  - `partial_corr` now fits an intercept and is shift-invariant. Previously the regression was forced through the origin, biasing residuals when the data was not mean-centered.
79
89
  - See [CHANGELOG.md](CHANGELOG.md) for the full list of changes and migration notes.
80
90
  <!--
@@ -7,11 +7,25 @@
7
7
 
8
8
  ## Installation
9
9
 
10
- ## Requirements
11
- - Python >=3.7, <3.11
12
- - 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```.
13
- - R == 4.4.2
14
- - R package ```kpcalg``` and its dependencies. They can be installed in R or RStudio as follows:
10
+ ### Recommended: conda environment (handles R + kpcalg automatically)
11
+
12
+ ```
13
+ $ git clone https://github.com/shlizee/TimeAwarePC.git
14
+ $ cd TimeAwarePC
15
+ $ conda env create -f environment.yml
16
+ $ conda activate timeawarepc
17
+ $ Rscript install_r_deps.R # installs kpcalg from CRAN archive
18
+ ```
19
+
20
+ This installs Python, R, rpy2, all required R packages (graph, RBGL, pcalg), and TimeAwarePC v2.0.0 in a single isolated environment.
21
+
22
+ ### Manual install (alternative)
23
+
24
+ If you prefer to install without conda:
25
+
26
+ - Python >=3.9, <3.11
27
+ - R >= 4.0
28
+ - R package ```kpcalg``` and its dependencies, installed via R or RStudio:
15
29
  ```
16
30
  > install.packages("BiocManager")
17
31
  > BiocManager::install("graph")
@@ -19,17 +33,13 @@
19
33
  > install.packages("pcalg")
20
34
  > install.packages("https://cran.r-project.org/src/contrib/Archive/kpcalg/kpcalg_1.0.1.tar.gz")
21
35
  ```
22
- <!-- - In addition, if you like to use Granger Causality functions in this package, please separately install nitime as follows:
23
- ```
24
- pip install nitime
25
- ``` -->
26
-
27
- After meeting these requirements, you can get the latest version of TimeAwarePC as follows.
28
-
36
+ - Then:
29
37
  ```
30
38
  $ pip install timeawarepc
31
39
  ```
32
40
 
41
+ To use Granger Causality, also install `nitime` (`pip install nitime`).
42
+
33
43
  ## Documentation
34
44
 
35
45
  [Documentation is available at readthedocs.org](https://timeawarepc.readthedocs.io/en/latest/)
@@ -38,11 +48,11 @@ $ pip install timeawarepc
38
48
 
39
49
  See the [Quick Start Guide](https://timeawarepc.readthedocs.io/en/latest/gettingstarted.html) for a quick tutorial of the main functionalities of this library and check if it is installed properly.
40
50
 
41
- ## What's new in v2.0.0 (BREAKING)
51
+ ## What's new in v2.0.0
42
52
 
43
53
  - `cfc_tpc` now defaults to **no bootstrap subsampling**: a single PC run is performed on the full time-delayed data.
44
- - To enable the legacy bootstrap behavior (50-row windows, 25 iterations), pass `subsampsize=50, niter=25` explicitly.
45
- - Both `subsampsize` and `niter` must be specified together (or both left as the default `None`).
54
+ - To use bootstrap stability scoring, pass `subsampsize` and `niter` together (e.g., `subsampsize=50, niter=25`).
55
+ - Both arguments must be specified together (or both left as the default `None`).
46
56
  - `partial_corr` now fits an intercept and is shift-invariant. Previously the regression was forced through the origin, biasing residuals when the data was not mean-centered.
47
57
  - See [CHANGELOG.md](CHANGELOG.md) for the full list of changes and migration notes.
48
58
  <!--
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = timeawarepc
3
- version = 2.0.0
3
+ version = 2.0.1
4
4
  author = Rahul Biswas
5
5
  author_email = rahul.biswas@ucsf.edu
6
6
  description = Time-Aware PC Python Package
@@ -24,7 +24,7 @@ python_requires = >=3.7, <3.11
24
24
  install_requires =
25
25
  numpy
26
26
  pandas
27
- rpy2==3.5.11
27
+ rpy2>=3.5.11
28
28
  networkx
29
29
  scipy
30
30
 
@@ -3,7 +3,7 @@ import setuptools
3
3
  with open('README.md','r') as fh:
4
4
  README = fh.read()
5
5
 
6
- VERSION = "2.0.0"
6
+ VERSION = "2.0.1"
7
7
 
8
8
  setuptools.setup(
9
9
  name = 'timeawarepc',
@@ -19,7 +19,7 @@ setuptools.setup(
19
19
  install_requires=[
20
20
  'numpy',
21
21
  'pandas',
22
- 'rpy2==3.5.11',
22
+ 'rpy2>=3.5.11',
23
23
  'networkx',
24
24
  'scipy'
25
25
  ],
@@ -2,5 +2,5 @@
2
2
  Time-Aware PC Algorithm for estimating Causal Functional Connectivity from Time Series
3
3
  """
4
4
 
5
- __version__ = "0.0.1"
5
+ __version__ = "2.0.1"
6
6
  __all__ = ["tpc_helpers","tpc","find_cfc","pcalg","pcalg_helpers","simulate_data"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: timeawarepc
3
- Version: 2.0.0
3
+ Version: 2.0.1
4
4
  Summary: Time-Aware PC Python Package
5
5
  Home-page: https://github.com/biswasr/TimeAwarePC
6
6
  Author: Rahul Biswas
@@ -15,7 +15,7 @@ Description-Content-Type: text/markdown
15
15
  License-File: LICENSE
16
16
  Requires-Dist: numpy
17
17
  Requires-Dist: pandas
18
- Requires-Dist: rpy2==3.5.11
18
+ Requires-Dist: rpy2>=3.5.11
19
19
  Requires-Dist: networkx
20
20
  Requires-Dist: scipy
21
21
  Dynamic: author
@@ -39,11 +39,25 @@ Dynamic: summary
39
39
 
40
40
  ## Installation
41
41
 
42
- ## Requirements
43
- - Python >=3.7, <3.11
44
- - 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```.
45
- - R == 4.4.2
46
- - R package ```kpcalg``` and its dependencies. They can be installed in R or RStudio as follows:
42
+ ### Recommended: conda environment (handles R + kpcalg automatically)
43
+
44
+ ```
45
+ $ git clone https://github.com/shlizee/TimeAwarePC.git
46
+ $ cd TimeAwarePC
47
+ $ conda env create -f environment.yml
48
+ $ conda activate timeawarepc
49
+ $ Rscript install_r_deps.R # installs kpcalg from CRAN archive
50
+ ```
51
+
52
+ This installs Python, R, rpy2, all required R packages (graph, RBGL, pcalg), and TimeAwarePC v2.0.0 in a single isolated environment.
53
+
54
+ ### Manual install (alternative)
55
+
56
+ If you prefer to install without conda:
57
+
58
+ - Python >=3.9, <3.11
59
+ - R >= 4.0
60
+ - R package ```kpcalg``` and its dependencies, installed via R or RStudio:
47
61
  ```
48
62
  > install.packages("BiocManager")
49
63
  > BiocManager::install("graph")
@@ -51,17 +65,13 @@ Dynamic: summary
51
65
  > install.packages("pcalg")
52
66
  > install.packages("https://cran.r-project.org/src/contrib/Archive/kpcalg/kpcalg_1.0.1.tar.gz")
53
67
  ```
54
- <!-- - In addition, if you like to use Granger Causality functions in this package, please separately install nitime as follows:
55
- ```
56
- pip install nitime
57
- ``` -->
58
-
59
- After meeting these requirements, you can get the latest version of TimeAwarePC as follows.
60
-
68
+ - Then:
61
69
  ```
62
70
  $ pip install timeawarepc
63
71
  ```
64
72
 
73
+ To use Granger Causality, also install `nitime` (`pip install nitime`).
74
+
65
75
  ## Documentation
66
76
 
67
77
  [Documentation is available at readthedocs.org](https://timeawarepc.readthedocs.io/en/latest/)
@@ -70,11 +80,11 @@ $ pip install timeawarepc
70
80
 
71
81
  See the [Quick Start Guide](https://timeawarepc.readthedocs.io/en/latest/gettingstarted.html) for a quick tutorial of the main functionalities of this library and check if it is installed properly.
72
82
 
73
- ## What's new in v2.0.0 (BREAKING)
83
+ ## What's new in v2.0.0
74
84
 
75
85
  - `cfc_tpc` now defaults to **no bootstrap subsampling**: a single PC run is performed on the full time-delayed data.
76
- - To enable the legacy bootstrap behavior (50-row windows, 25 iterations), pass `subsampsize=50, niter=25` explicitly.
77
- - Both `subsampsize` and `niter` must be specified together (or both left as the default `None`).
86
+ - To use bootstrap stability scoring, pass `subsampsize` and `niter` together (e.g., `subsampsize=50, niter=25`).
87
+ - Both arguments must be specified together (or both left as the default `None`).
78
88
  - `partial_corr` now fits an intercept and is shift-invariant. Previously the regression was forced through the origin, biasing residuals when the data was not mean-centered.
79
89
  - See [CHANGELOG.md](CHANGELOG.md) for the full list of changes and migration notes.
80
90
  <!--
@@ -1,5 +1,5 @@
1
1
  numpy
2
2
  pandas
3
- rpy2==3.5.11
3
+ rpy2>=3.5.11
4
4
  networkx
5
5
  scipy
File without changes
File without changes