search and extract field names or variables from MATLAB .mat files and return a pandas Dataframe
Project description
matgrab
Search and extract field names or variables from MATLAB .mat files and return a pandas Dataframe
installation
PYPI
pip install matgrab
usage
python
import matgrab
df = matgrab.mat2df("PATH","VARS")
PATH may be a file path, directory path, or list of either VARS may be a string or list of strings that correspond to field names of desired matlab variables
if your desired data is nested within another named data structure or array, that structure name must proceed the desired variable separated by a "."
EEG.mat
├── dataset_description {string}
└── sub-D0048 {struct}
├── anat {struct}
│ ├── T1w {string}
│ └── CT {float}
└── ieeg {array}
├── channels {column}
└── values {column}
To retrieve the values from the above mat file, the command would be:
matgrab.mat2df("EEG.mat",["sub-D0048.anat.T1w","sub-D0048.anat.CT","sub-D0048.ieeg.channels","sub-D0048.ieeg.values"])
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file matgrab-0.1.0.tar.gz.
File metadata
- Download URL: matgrab-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ca45ff540c82aecf4bb398af786d7575d607cc2635a0c2617d421de6fe1d853
|
|
| MD5 |
a38ad16011220f4249ed1d16323928c9
|
|
| BLAKE2b-256 |
409a79bfcd464bd89260a75087d9b5aa5e63daecfcf100cd43b7b66effcb6656
|
File details
Details for the file matgrab-0.1.0-py3-none-any.whl.
File metadata
- Download URL: matgrab-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8be01122d951877789c1eab03644cdd65cced66eca40846566b8c6722b3669f5
|
|
| MD5 |
2764451738a629d04d18a429149a311c
|
|
| BLAKE2b-256 |
9938f8992b9cf5bb45aa1df1512b93f3658926f5a60c0fb6ab18d589b2dab145
|