nSTAT Python Paper Examples

This page mirrors the MATLAB paper-example index for the standalone Python port.

Canonical source files:

  • examples/paper/*.py

  • nstat/paper_examples_full.py

Run Everything

python tools/paper_examples/build_gallery.py

Outputs:

  • Figure metadata: docs/figures/manifest.json

  • Gallery page: docs/paper_examples.md

  • Figures: docs/figures/example01/docs/figures/example05/

Example Index

ID

Thumbnail

Standalone source

Question

Run command

Figure gallery

example01

Example 01

example01_mepsc_poisson.py

Do mEPSCs follow constant vs piecewise Poisson firing under Mg2+ washout?

python examples/paper/example01_mepsc_poisson.py

gallery page

example02

Example 02

example02_whisker_stimulus_thalamus.py

How do explicit whisker stimulus and spike history improve thalamic GLM fits?

python examples/paper/example02_whisker_stimulus_thalamus.py

gallery page

example03

Example 03

example03_psth_and_ssglm.py

How do PSTH and SSGLM capture within-trial and across-trial dynamics?

python examples/paper/example03_psth_and_ssglm.py

gallery page

example04

Example 04

example04_place_cells_continuous_stimulus.py

Which receptive-field basis (Gaussian vs Zernike) better fits place cells?

python examples/paper/example04_place_cells_continuous_stimulus.py

gallery page

example05

Example 05

example05_decoding_ppaf_pphf.py

How well do adaptive/hybrid point-process filters decode stimulus and reach state?

python examples/paper/example05_decoding_ppaf_pphf.py

gallery page