ONE Matlab Installation Guide¶
Matlab-specific dependency : Matlab R2016b or higher.
Clone or download the repository here: https://github.com/int-brain-lab/ibllib-matlab
Set the Matlab path, add with subfolders the full
Instantiate One class: Define connection settings¶
The first step is to instantiate the One class: behind the scenes, the constructor connects to the IBL cloud database and gets credentials.
The connections settings are defined in a JSON parameter file (named .one_params).
In Linux, the file is in
In Windows, the file is in the Roaming App directory
In Mac OS, the file is in the user directory
In case of doubt, type the command
io.getappdir in a Matlab prompt. It will return the directory of the JSON
There are two manners to define the connection settings.
setup() static method in Matlab¶
In a Matlab prompt, write:
You will be asked to enter the following information:
ALYX_LOGIN % Input your IBL user name ALYX_PWD % Input your IBL password ALYX_URL: % Should be automatically set as: https://alyx.internationalbrainlab.org - press ENTER CACHE_DIR: % Local repository, can ammend or press ENTER HTTP_DATA_SERVER: % Should be automatically set as: http://ibl.flatironinstitute.org - press ENTER HTTP_DATA_SERVER_LOGIN: % Should be automatically set as: iblmember - press ENTER HTTP_DATA_SERVER_PWD % Request Password for HTTP from Olivier
The path to the .one_params file is displayed in the Matlab prompt as
One.setup changes the JSON .one_params file. Also note that the file is shared across Python and Matlab platforms.
2. Edit the JSON .one_params¶
Note: In Mac OS or Linux, use the command
nano in a terminal.
Once the connections settings are defined, there is no need to setup the class One again if willing to connect with the credentials saved in the JSON .one_params file.
The tutorial in the next section will show you how to change credentials without changing the JSON file (useful for a temporary connection with different credentials).
Once the One class is instantiated with your IBL credentials, run the suite of Unit tests to check the installation:
If you see any Failure message, please report on GitHub or contact data admins (Olivier / Niccolo). If not, you are ready for the tutorial - go to next section !