Logo

Using naplib

  • Overview of naplib-python
  • Install
    • pip installation instructions
    • Required Dependencies
  • Examples Gallery
    • Fitting Banded Ridge TRF Models
    • Plotting intracranial electrodes on the brain
    • Data Manipulation
    • Integrating naplib with Other Python Toolboxes
    • Statistical Testing
    • Stimulus Reconstruction
    • Fitting STRF Models
      • Fitting Banded Ridge TRF Models
      • Plotting intracranial electrodes on the brain
      • Data Manipulation
      • Integrating naplib with Other Python Toolboxes
      • Statistical Testing
      • Stimulus Reconstruction
      • Fitting STRF Models
  • API Reference
    • Core Functions
      • Data object
      • concat
      • join_fields
      • set_logging
    • Localization
      • Convert from MNI152 to FSAverage
      • Convert from FSAverage to MNI152
      • Convert from any source space to any target space
      • Localization on a Freesurfer Brain
    • Features
      • Auditory Spectrogram
      • Extract peak_rate events from the Spectrogram
      • Aligner for Phonemes and Words
      • Phoneme Labels from Phonetic Alignment File
      • Word Labels from Word Alignment File
      • Build Word Dictionary from Set of Files
    • Array Operations
      • Sliding Window
      • Concatenate and Apply
      • Resample Categorical Data
      • Forward Fill
      • Center of Mass
      • Interpolate Along Axis
    • Encoding
      • TRF
      • BandedTRF
    • IO
      • Save
      • Load
      • Import Data
      • Export Data
      • Load EDF
      • Load NWB
      • Load TDT
      • Load BIDS
      • Load CND
      • Read HTK
      • Load Directory of Wav Files
      • Load Sample Speech Task Dataset
    • Model Selection
      • KFold
    • Preprocessing
      • Normalize
      • Rereference Data
      • Make Rereference Array for Contacts
      • Filter Line Noise
      • Phase Amplitude Extract
      • Filter Hilbert
      • Filterbank Hilbert
      • Butterworth Filter
    • Segmentation
      • Get Label Change Points
      • Segment Around Label Transitions
      • Shift Label Onsets
      • Electrode Lags from F-Ratio
    • Stats
      • Correlation
      • T-Test Responsive Electrodes
      • T-Test with Feature Control
      • Discriminability
      • Linear Mixed Effects Model
      • Stars for P-Values
    • Visualization
      • Shaded Error Plot
      • Kernel Density and Histogram
      • Hierarchical Cluster Plot
      • STRF Plot
      • Intracranial Electrodes
      • Brain Surface Overlay
      • Frequency Response
      • EEG Channel Locs
    • NAPLab Internal Lab Tools
      • Process iEEG Raw Data
      • Align Stimulus Audio to Recorded Audio
  • Changelog
    • Version 2.5.0
    • Version 2.4.0
    • Version 2.3.0
    • Version 2.2.0
    • Version 2.1.0
    • Version 2.0.0
    • Version 1.4.0
    • Version 1.3.0
    • Version 1.2.0
    • Version 1.1.0
    • Version 1.0.0
    • Version 0.3.0
    • Version 0.2.0
    • Version 0.1.10
    • Version 0.1.9
    • Version 0.1.8
    • Version 0.1.7
    • Version 0.1.6
    • Version 0.1.5
    • Version 0.1.4
    • Version 0.1.2
    • Version 0.1.1
    • Version 0.1.0
  • Citation

Developer Information

  • Contributing to naplib-python
    • Submitting a bug report or a feature request
      • How to make a good bug report
    • Contributing Code
      • Pull Request Checklist
    • Guidelines
      • Coding Guidelines
      • Docstring Guidelines
  • License

Useful Links

  • naplib-python @ GitHub
  • Issue Tracker
naplib
  • Examples Gallery
  • Edit on GitHub

Examples Gallery¶

The examples gallery provides working code samples demonstrating what can be done with the naplib library.

Fitting Banded Ridge TRF Models¶

Banded Ridge: Robustness Check with Null Bands

Banded Ridge: Robustness Check with Null Bands

TRF Comparison: Iterative RidgeCV vs. Banded Regularization

TRF Comparison: Iterative RidgeCV vs. Banded Regularization

Plotting intracranial electrodes on the brain¶

Plot Intracranial Electrodes

Plot Intracranial Electrodes

Data Manipulation¶

Importing Data from BIDS

Importing Data from BIDS

Array operations in naplib

Array operations in naplib

Data Objects in naplib

Data Objects in naplib

Preprocessing Neural Response Data

Preprocessing Neural Response Data

Integrating naplib with Other Python Toolboxes¶

Plotting EEG Topomap of Alpha/Theta Ratio with MNE

Plotting EEG Topomap of Alpha/Theta Ratio with MNE

Statistical Testing¶

Linear Mixed Effects Models

Linear Mixed Effects Models

Stimulus Reconstruction¶

Stimulus Reconstruction Basics

Stimulus Reconstruction Basics

Fitting STRF Models¶

STRF Models Basics

STRF Models Basics

Download all examples in Python source code: auto_examples_python.zip

Download all examples in Jupyter notebooks: auto_examples_jupyter.zip

Gallery generated by Sphinx-Gallery

Previous Next

© Copyright 2023, Neural Acoustic Processing Lab, Columbia University, New York, NY.

Built with Sphinx using a theme provided by Read the Docs.