canns 0.12.7__py3-none-any.whl → 0.13.1__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.
- canns/analyzer/data/__init__.py +3 -11
- canns/analyzer/data/asa/__init__.py +84 -0
- canns/analyzer/data/asa/cohospace.py +905 -0
- canns/analyzer/data/asa/config.py +246 -0
- canns/analyzer/data/asa/decode.py +445 -0
- canns/analyzer/data/asa/embedding.py +269 -0
- canns/analyzer/data/asa/filters.py +208 -0
- canns/analyzer/data/{cann1d.py → asa/fly_roi.py} +98 -45
- canns/analyzer/data/asa/fr.py +431 -0
- canns/analyzer/data/asa/path.py +389 -0
- canns/analyzer/data/asa/plotting.py +1287 -0
- canns/analyzer/data/asa/tda.py +901 -0
- canns/analyzer/visualization/core/backend.py +1 -1
- canns/analyzer/visualization/core/config.py +77 -0
- canns/analyzer/visualization/core/rendering.py +10 -6
- canns/analyzer/visualization/energy_plots.py +22 -8
- canns/analyzer/visualization/spatial_plots.py +31 -11
- canns/analyzer/visualization/theta_sweep_plots.py +15 -6
- canns/pipeline/__init__.py +4 -8
- canns/pipeline/asa/__init__.py +21 -0
- canns/pipeline/asa/__main__.py +11 -0
- canns/pipeline/asa/app.py +1000 -0
- canns/pipeline/asa/runner.py +1095 -0
- canns/pipeline/asa/screens.py +215 -0
- canns/pipeline/asa/state.py +248 -0
- canns/pipeline/asa/styles.tcss +221 -0
- canns/pipeline/asa/widgets.py +233 -0
- canns/pipeline/gallery/__init__.py +7 -0
- canns/task/open_loop_navigation.py +3 -1
- {canns-0.12.7.dist-info → canns-0.13.1.dist-info}/METADATA +6 -3
- {canns-0.12.7.dist-info → canns-0.13.1.dist-info}/RECORD +34 -17
- {canns-0.12.7.dist-info → canns-0.13.1.dist-info}/entry_points.txt +1 -0
- canns/analyzer/data/cann2d.py +0 -2565
- canns/pipeline/theta_sweep.py +0 -573
- {canns-0.12.7.dist-info → canns-0.13.1.dist-info}/WHEEL +0 -0
- {canns-0.12.7.dist-info → canns-0.13.1.dist-info}/licenses/LICENSE +0 -0
canns/analyzer/data/__init__.py
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
"""Data analysis utilities for experimental and synthetic neural data.
|
|
1
|
+
"""Data analysis utilities for experimental and synthetic neural data."""
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
firing rates) and extracting features like bump positions, topological
|
|
5
|
-
structures, and population dynamics.
|
|
6
|
-
"""
|
|
3
|
+
from .asa import * # noqa: F401,F403
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
__all__ = [
|
|
11
|
-
"cann1d",
|
|
12
|
-
"cann2d",
|
|
13
|
-
]
|
|
5
|
+
__all__ = list(locals().get("__all__", []))
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
# Coho-space analysis + visualization
|
|
4
|
+
from .cohospace import (
|
|
5
|
+
compute_cohoscore,
|
|
6
|
+
plot_cohospace_neuron,
|
|
7
|
+
plot_cohospace_population,
|
|
8
|
+
plot_cohospace_trajectory,
|
|
9
|
+
)
|
|
10
|
+
from .config import (
|
|
11
|
+
CANN2DError,
|
|
12
|
+
CANN2DPlotConfig,
|
|
13
|
+
Constants,
|
|
14
|
+
DataLoadError,
|
|
15
|
+
ProcessingError,
|
|
16
|
+
SpikeEmbeddingConfig,
|
|
17
|
+
TDAConfig,
|
|
18
|
+
)
|
|
19
|
+
from .decode import decode_circular_coordinates, decode_circular_coordinates_multi
|
|
20
|
+
from .embedding import embed_spike_trains
|
|
21
|
+
from .fly_roi import (
|
|
22
|
+
BumpFitsConfig,
|
|
23
|
+
CANN1DPlotConfig,
|
|
24
|
+
create_1d_bump_animation,
|
|
25
|
+
roi_bump_fits,
|
|
26
|
+
)
|
|
27
|
+
from .fr import (
|
|
28
|
+
FRMResult,
|
|
29
|
+
compute_fr_heatmap_matrix,
|
|
30
|
+
compute_frm,
|
|
31
|
+
plot_frm,
|
|
32
|
+
save_fr_heatmap_png,
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
# Path utilities
|
|
36
|
+
from .path import align_coords_to_position, apply_angle_scale
|
|
37
|
+
|
|
38
|
+
# Higher-level plotting helpers
|
|
39
|
+
from .plotting import (
|
|
40
|
+
plot_2d_bump_on_manifold,
|
|
41
|
+
plot_3d_bump_on_torus,
|
|
42
|
+
plot_cohomap,
|
|
43
|
+
plot_cohomap_multi,
|
|
44
|
+
plot_path_compare,
|
|
45
|
+
plot_projection,
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
# TDA entry point
|
|
49
|
+
from .tda import tda_vis
|
|
50
|
+
|
|
51
|
+
__all__ = [
|
|
52
|
+
"SpikeEmbeddingConfig",
|
|
53
|
+
"TDAConfig",
|
|
54
|
+
"CANN2DPlotConfig",
|
|
55
|
+
"Constants",
|
|
56
|
+
"CANN2DError",
|
|
57
|
+
"DataLoadError",
|
|
58
|
+
"ProcessingError",
|
|
59
|
+
"embed_spike_trains",
|
|
60
|
+
"tda_vis",
|
|
61
|
+
"decode_circular_coordinates",
|
|
62
|
+
"decode_circular_coordinates_multi",
|
|
63
|
+
"plot_projection",
|
|
64
|
+
"plot_path_compare",
|
|
65
|
+
"plot_cohomap",
|
|
66
|
+
"plot_cohomap_multi",
|
|
67
|
+
"plot_3d_bump_on_torus",
|
|
68
|
+
"plot_2d_bump_on_manifold",
|
|
69
|
+
"BumpFitsConfig",
|
|
70
|
+
"CANN1DPlotConfig",
|
|
71
|
+
"create_1d_bump_animation",
|
|
72
|
+
"roi_bump_fits",
|
|
73
|
+
"compute_fr_heatmap_matrix",
|
|
74
|
+
"save_fr_heatmap_png",
|
|
75
|
+
"FRMResult",
|
|
76
|
+
"compute_frm",
|
|
77
|
+
"plot_frm",
|
|
78
|
+
"plot_cohospace_trajectory",
|
|
79
|
+
"plot_cohospace_neuron",
|
|
80
|
+
"plot_cohospace_population",
|
|
81
|
+
"compute_cohoscore",
|
|
82
|
+
"align_coords_to_position",
|
|
83
|
+
"apply_angle_scale",
|
|
84
|
+
]
|