lbm_suite2p_python 3.0.6__tar.gz → 3.0.8__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 (32) hide show
  1. {lbm_suite2p_python-3.0.6/lbm_suite2p_python.egg-info → lbm_suite2p_python-3.0.8}/PKG-INFO +2 -2
  2. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8}/lbm_suite2p_python/__init__.py +4 -0
  3. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8}/lbm_suite2p_python/cli.py +6 -0
  4. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8}/lbm_suite2p_python/conversion.py +2 -2
  5. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8}/lbm_suite2p_python/db_settings.py +531 -531
  6. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8}/lbm_suite2p_python/postprocessing.py +78 -7
  7. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8}/lbm_suite2p_python/run_lsp.py +140 -27
  8. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8}/lbm_suite2p_python/volume.py +35 -24
  9. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8}/lbm_suite2p_python/zplane.py +97 -85
  10. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8/lbm_suite2p_python.egg-info}/PKG-INFO +2 -2
  11. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8}/lbm_suite2p_python.egg-info/requires.txt +1 -1
  12. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8}/pyproject.toml +106 -106
  13. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8}/tests/test_pipeline_parameters.py +29 -0
  14. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8}/tests/test_refactored_pipeline.py +4 -2
  15. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8}/LICENSE.md +0 -0
  16. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8}/MANIFEST.in +0 -0
  17. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8}/README.md +0 -0
  18. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8}/lbm_suite2p_python/__main__.py +0 -0
  19. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8}/lbm_suite2p_python/_benchmarking.py +0 -0
  20. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8}/lbm_suite2p_python/cellpose.py +0 -0
  21. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8}/lbm_suite2p_python/default_ops.py +0 -0
  22. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8}/lbm_suite2p_python/grid_search.py +0 -0
  23. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8}/lbm_suite2p_python/gui.py +0 -0
  24. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8}/lbm_suite2p_python/merging.py +0 -0
  25. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8}/lbm_suite2p_python/utils.py +0 -0
  26. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8}/lbm_suite2p_python.egg-info/SOURCES.txt +0 -0
  27. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8}/lbm_suite2p_python.egg-info/dependency_links.txt +0 -0
  28. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8}/lbm_suite2p_python.egg-info/entry_points.txt +0 -0
  29. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8}/lbm_suite2p_python.egg-info/top_level.txt +0 -0
  30. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8}/setup.cfg +0 -0
  31. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8}/tests/test_frame_count_aliases.py +0 -0
  32. {lbm_suite2p_python-3.0.6 → lbm_suite2p_python-3.0.8}/tests/test_run_volume.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lbm_suite2p_python
3
- Version: 3.0.6
3
+ Version: 3.0.8
4
4
  Summary: Calcium Imaging Pipeline built with Suite2p, Cellpose and Rastermap
5
5
  License-Expression: BSD-3-Clause
6
6
  Project-URL: homepage, https://github.com/MillerBrainObservatory/LBM-Suite2p-Python
@@ -11,7 +11,7 @@ Classifier: Programming Language :: Python :: 3 :: Only
11
11
  Requires-Python: <3.14,>=3.12.7
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE.md
14
- Requires-Dist: mbo_utilities>=3.0.3
14
+ Requires-Dist: mbo_utilities>=3.0.7
15
15
  Requires-Dist: suite2p>=1.0.0.1
16
16
  Requires-Dist: setuptools<81
17
17
  Provides-Extra: rastermap
@@ -70,6 +70,8 @@ from lbm_suite2p_python.postprocessing import (
70
70
  load_ops,
71
71
  load_planar_results,
72
72
  dff_rolling_percentile,
73
+ zscore_trace,
74
+ baseline_percentile_dff,
73
75
  dff_shot_noise,
74
76
  compute_roi_stats,
75
77
  )
@@ -131,6 +133,8 @@ __all__ = [
131
133
  "load_ops",
132
134
  "load_planar_results",
133
135
  "dff_rolling_percentile",
136
+ "zscore_trace",
137
+ "baseline_percentile_dff",
134
138
  "dff_shot_noise",
135
139
  "compute_roi_stats",
136
140
 
@@ -207,6 +207,11 @@ Examples:
207
207
  "--dff-smooth", type=int, dest="dff_smooth_window",
208
208
  help="smoothing window for dF/F"
209
209
  )
210
+ dff.add_argument(
211
+ "--norm-method", choices=["dff", "zscore"], default="dff",
212
+ dest="norm_method",
213
+ help="normalization for norm_traces.npy (default: dff)"
214
+ )
210
215
  dff.add_argument(
211
216
  "--correct-neuropil", dest="correct_neuropil",
212
217
  action=argparse.BooleanOptionalAction, default=True,
@@ -570,6 +575,7 @@ def main():
570
575
  dff_window_size=args.dff_window_size,
571
576
  dff_percentile=args.dff_percentile,
572
577
  dff_smooth_window=args.dff_smooth_window,
578
+ norm_method=args.norm_method,
573
579
  correct_neuropil=args.correct_neuropil,
574
580
  cell_filters=cell_filters,
575
581
  accept_all_cells=args.accept_all_cells,
@@ -871,7 +871,7 @@ def get_results(path, include_traces=True):
871
871
  "F": None,
872
872
  "Fneu": None,
873
873
  "spks": None,
874
- "dff": None,
874
+ "norm_traces": None,
875
875
  "ops": None,
876
876
  "seg_file": None,
877
877
  }
@@ -902,7 +902,7 @@ def get_results(path, include_traces=True):
902
902
 
903
903
  # Load traces if requested
904
904
  if include_traces and fmt == "suite2p":
905
- for name in ["F", "Fneu", "spks", "dff"]:
905
+ for name in ["F", "Fneu", "spks", "norm_traces"]:
906
906
  trace_file = path / f"{name}.npy"
907
907
  if trace_file.exists():
908
908
  result[name] = np.load(trace_file)