Tools for modeling brain responses using (multivariate)temporal response functions.
Project description
mTRFpy - multivariate linear modeling
This is an adaptation of the matlab mTRF-toolbox using only basic Python and Numpy. It aims to implement the same methods as the original toolbox and advance them. This documentation provides tutorial-like demonstrations of the core functionalities like model fitting, visualization and optimization as well as a comprehensive reference documentation.
Installation
You can get the stable release from PyPI:
pip install mtrf
Or get the latest version from this repo:
pip install git+https://github.com/powerfulbean/mTRFpy.git
While mTRFpy only depends on numpy, matplotlib is an optional dependency used to visualize models. It can also be installed via pip:
pip install matplotlib
We also provide an optional interface to MNE-Python so it might be useful to install mne as well.
Getting started
For a little tutorial on the core features of mTRFpy, have a look at our online documentation
Found a bug?
- Please use the issue search to check if the issue has already been reportet.
- Try to reproduce problem using the latest
master
branch. - Create an issue with a minimal example that reproduces the problem.
Missing a feature?
Feature requests are welcome. But take a moment to find out whether your idea fits with the scope and aims of the project. It's up to you to make a strong case to convince the project's developers of the merits of this feature. Please provide as much detail and context as possible.
Want to contribute to the project?
Great! Please take a moment to read the before you do.
Citing mTRFpy
Bialas et al., (2023). mTRFpy: A Python package for temporal response function analysis. Journal of Open Source Software, 8(89), 5657, https://doi.org/10.21105/joss.05657
@article{Bialas2023,
doi = {10.21105/joss.05657},
url = {https://doi.org/10.21105/joss.05657},
year = {2023}, publisher = {The Open Journal},
volume = {8},
number = {89},
pages = {5657},
author = {Ole Bialas and Jin Dou and Edmund C. Lalor},
title = {mTRFpy: A Python package for temporal response function analysis},
journal = {Journal of Open Source Software} }
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mtrf-2.0.4.tar.gz
.
File metadata
- Download URL: mtrf-2.0.4.tar.gz
- Upload date:
- Size: 20.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3747537faeb348ddf107f5479ecd6c4674ea0cc7b88de8659ccbf1ae22a9bb18 |
|
MD5 | 3398c8acd2e69b68f2f63fcfdd02478a |
|
BLAKE2b-256 | 9b8de1c2bf296772bc4d6f2d38b865bd88d32c5b74db1d52f0b5b8b6068addfc |
File details
Details for the file mtrf-2.0.4-py3-none-any.whl
.
File metadata
- Download URL: mtrf-2.0.4-py3-none-any.whl
- Upload date:
- Size: 18.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9d364adebd040549dfd37dc368b10e7248963914260a7a6a44c4459395d4fb8 |
|
MD5 | 994aa9eadcc7157df97fa1e050db6762 |
|
BLAKE2b-256 | dc2adc2f98be8da3e4d819ce4269189678a901eb9c460b6bc92a4d1a1e5d17d5 |