Science Score: 49.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 1 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.0%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: biomarkersParkinson
- License: apache-2.0
- Language: MATLAB
- Default Branch: main
- Size: 50.8 KB
Statistics
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 4
- Releases: 2
Metadata Files
README.md
Matlab wrapper for the Python tsdf library
Installation
In order to use the tsdf library in Matlab, you need to install the tsdf library in Python and then link it to MatLab. The following steps will guide you through the installation process.
Setting Up MATLAB-Python Integration
Ensure you have MATLAB version R2021b or higher.
Check your MATLAB version by running
verin MATLAB.(optional) Visit MATLAB's Python Support Page to verify compatible Python versions for your MATLAB version.
Download and install a Python version >= 3.9.
In MATLAB, execute the following code, replacing
'enter_path_to_python_executable_here'with the path to yourpython.exefile:
matlab
pyenv('Version','enter_path_to_python_executable_here')
For example:
matlab
pyenv('Version','C:\Users\username\AppData\Local\Programs\Python\Python39\python.exe')
- Confirm the setup by running:
matlab
pe = pyenv;
pe.Version
You should receive confirmation messages indicating the Python version linked to MATLAB.
Installing Required Libraries
If you had a previous Python version installed, ensure the required libraries are installed in your new Python 3.9 environment (linked to MATLAB).
Open the Windows command terminal and navigate to the Python 3.9 installation folder:
bash
cd C:\Users\username\AppData\Local\Programs\Python\Python39
- Launch the Python terminal:
bash
python
- Install necessary libraries (e.g., NumPy and SciPy) by entering:
python
import sys
import subprocess
subprocess.check_call([sys.executable, '-m', 'pip', 'install','tsdf'])
Using the MATLAB Wrapper
Clone this repository to your local machine.
Open MATLAB and add the cloned folder to your MATLAB path.
matlab
addpath('full_path_to_cloned_folder')
Note
We aim to use this tutorial to integrate tsdf into the matlab code:
https://aleksandarhaber.com/tutorial-on-how-to-execute-python-code-directly-matlab/
The tutorial covers how to import numpy arrays from python code export them from Matlab double. A discussion on the topic is available here:
https://www.mathworks.com/matlabcentral/answers/157347-convert-python-numpy-array-to-double
Another article that is needed is on how to import python dict into Matlab and how to export them from Matlab struct.
https://nl.mathworks.com/help/matlab/matlab_external/python-dict-variables.html
Owner
- Name: Digital Biomarkers for Parkinson's disease
- Login: biomarkersParkinson
- Kind: organization
- Location: Netherlands
- Repositories: 1
- Profile: https://github.com/biomarkersParkinson