pycbas 0.1.0__py3-none-any.whl
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.
- pycbas/__init__.py +48 -0
- pycbas/_app.py +1575 -0
- pycbas/_numba.py +13 -0
- pycbas/bootstrap.py +240 -0
- pycbas/cli.py +63 -0
- pycbas/core.py +149 -0
- pycbas/io.py +105 -0
- pycbas/params.py +29 -0
- pycbas/pipeline.py +113 -0
- pycbas/resources.py +76 -0
- pycbas/stepdown.py +392 -0
- pycbas-0.1.0.dist-info/METADATA +159 -0
- pycbas-0.1.0.dist-info/RECORD +16 -0
- pycbas-0.1.0.dist-info/WHEEL +4 -0
- pycbas-0.1.0.dist-info/entry_points.txt +2 -0
- pycbas-0.1.0.dist-info/licenses/LICENSE +21 -0
pycbas/__init__.py
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"""
|
|
2
|
+
pycbas -- Choice-Wide Behavioral Association Study.
|
|
3
|
+
|
|
4
|
+
A Python implementation of the CBAS algorithm for identifying behavioral
|
|
5
|
+
sequences that differ between experimental groups or correlate with a
|
|
6
|
+
continuous measure. Uses Romano-Wolf step-down for multiple comparison
|
|
7
|
+
correction and k-FWER iteration for false discovery proportion control.
|
|
8
|
+
|
|
9
|
+
Reference: Kastner et al., "Choice-Wide Behavioral Association Study"
|
|
10
|
+
(2026 preprint) https://www.biorxiv.org/content/10.1101/2024.02.26.582115v4
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from .params import CBASParams, CBASResult
|
|
14
|
+
from .io import (load_subject_data, extract_choice_stream, extract_choice_streams_by_block,
|
|
15
|
+
enumerate_sequences, enumerate_sequences_block_aware)
|
|
16
|
+
from .core import build_count_matrix, compute_test_stats, compute_test_stats_correlative
|
|
17
|
+
from .bootstrap import bootstrap_test_stats, bootstrap_test_stats_correlative
|
|
18
|
+
from .stepdown import (
|
|
19
|
+
romano_wolf_stepdown,
|
|
20
|
+
find_k_fwer,
|
|
21
|
+
find_k_fwer_k1,
|
|
22
|
+
find_k_fwer_chunked,
|
|
23
|
+
)
|
|
24
|
+
from .resources import estimate_resources, print_resource_estimate
|
|
25
|
+
from .pipeline import run_cbas_comparative, run_cbas_correlative
|
|
26
|
+
|
|
27
|
+
__all__ = [
|
|
28
|
+
"CBASParams",
|
|
29
|
+
"CBASResult",
|
|
30
|
+
"load_subject_data",
|
|
31
|
+
"extract_choice_stream",
|
|
32
|
+
"extract_choice_streams_by_block",
|
|
33
|
+
"enumerate_sequences",
|
|
34
|
+
"enumerate_sequences_block_aware",
|
|
35
|
+
"build_count_matrix",
|
|
36
|
+
"compute_test_stats",
|
|
37
|
+
"compute_test_stats_correlative",
|
|
38
|
+
"bootstrap_test_stats",
|
|
39
|
+
"bootstrap_test_stats_correlative",
|
|
40
|
+
"romano_wolf_stepdown",
|
|
41
|
+
"find_k_fwer",
|
|
42
|
+
"find_k_fwer_k1",
|
|
43
|
+
"find_k_fwer_chunked",
|
|
44
|
+
"run_cbas_comparative",
|
|
45
|
+
"run_cbas_correlative",
|
|
46
|
+
"estimate_resources",
|
|
47
|
+
"print_resource_estimate",
|
|
48
|
+
]
|