openMINDS Metadata Models for MATLAB

A MATLAB toolbox to create metadata instances using the openMINDS metadata models
11 téléchargements
Mise à jour 26 fév. 2024
<themed-picture data-catalyst-inline="true"><picture> <source media="(prefers-color-scheme: dark)" srcset="/img/dark_openMINDS-MATLAB-logo.png"> <source media="(prefers-color-scheme: light)" srcset="/img/light_openMINDS-MATLAB-logo.png"> <img alt="openMINDS MATLAB logo" src="https://raw.githubusercontent.com/openMetadataInitiative/openMINDS_MATLAB/main//img/light_openMINDS-MATLAB-logo.png" title="openMINDS MATLAB" align="right" style="height:70;"> </source></source></picture></themed-picture>

openMINDS Metadata Models for MATLAB

Open in MATLAB Online View openMINDS_MATLAB on File Exchange

MATLAB package for the openMINDS metadata framework for linked data in neuroscience. The package contains all the latest openMINDS schemas as MATLAB classes in addition to schema base classes and utility methods.

To generally learn more about the openMINDS metadata framework please go to ➡️ ReadTheDocs.
You can test and learn how to use openMINDS in MATLAB by going through a small ➡️ DEMO on MATLAB Online.

MathWorks provides a free basic version of MATLAB Online, but you need to register for a MathWorks Account.

Installation

openMINDS for MATLAB can be installed from MATLAB's Add-On Explorer (recommended). It is also possible to download the MATLAB toolbox from FileExchange or from the Releases page of this repository and install it manually. If you are new to MATLAB, see the detailed installation instructions

Before you start

% Verify that openMINDS_MATLAB is installed
disp( openminds.toolboxversion )
Version 0.9.1

If you have installed openMINDS_MATLAB and the above command does not work, most likely openMINDS_MATLAB is not added to MATLAB's search path.

Getting Started

See also: Crew Member Collection Tutorial

Configure MATLAB's path to use the latest model versions

% Schema classes for all the openMINDS model versions are available in this
% toolbox. To ensure the latest version is used, run the following command:
selectOpenMindsVersion("latest")

Import schemas from the core model

import openminds.core.*

Create a Subject

% Create a new demo subject
subject1 = Subject('species', 'musMusculus', 'biologicalSex', 'male', 'lookupLabel', 'demo_subject1');
disp(subject1)
  Subject (https://openminds.ebrains.eu/core/Subject) with properties:
         biologicalSex: male  (BiologicalSex)
    internalIdentifier: ""
              isPartOf: [None]  (SubjectGroup)
           lookupLabel: "demo_subject1"
               species: Mus musculus  (One of: Species, Strain)
          studiedState: [None]  (SubjectState)
  Required Properties: species, studiedState

Create a Subject State

subjectState = openminds.core.SubjectState('lookupLabel', 'demo_state')
subjectState = 
  SubjectState (https://openminds.ebrains.eu/core/SubjectState) with properties:
         additionalRemarks: ""
                       age: [None]  (One of: QuantitativeValue, QuantitativeValueRange)
               ageCategory: [None]  (AgeCategory)
                 attribute: [None]  (SubjectAttribute)
             descendedFrom: [None]  (SubjectState)
                handedness: [None]  (Handedness)
        internalIdentifier: ""
               lookupLabel: "demo_state"
                 pathology: [None]  (Any of: Disease, DiseaseModel)
    relativeTimeIndication: [None]  (One of: QuantitativeValue, QuantitativeValueRange)
                    weight: [None]  (One of: QuantitativeValue, QuantitativeValueRange)
  Required Properties: ageCategory
% Add subject state to subject
subject1.studiedState = subjectState;
disp(subject1)
  Subject (https://openminds.ebrains.eu/core/Subject) with properties:
         biologicalSex: male  (BiologicalSex)
    internalIdentifier: ""
              isPartOf: [None]  (SubjectGroup)
           lookupLabel: "demo_subject1"
               species: Mus musculus  (One of: Species, Strain)
          studiedState: demo_state  (SubjectState)
  Required Properties: species, studiedState
% Update the value of the lookup label
subjectState.lookupLabel = "demo_subjectstate_pre_recording";

% Create a new subject state
subjectStatePost = openminds.core.SubjectState('lookupLabel', 'demo_subjectstate_post_recording')
subjectStatePost = 
  SubjectState (https://openminds.ebrains.eu/core/SubjectState) with properties:
         additionalRemarks: ""
                       age: [None]  (One of: QuantitativeValue, QuantitativeValueRange)
               ageCategory: [None]  (AgeCategory)
                 attribute: [None]  (SubjectAttribute)
             descendedFrom: [None]  (SubjectState)
                handedness: [None]  (Handedness)
        internalIdentifier: ""
               lookupLabel: "demo_subjectstate_post_recording"
                 pathology: [None]  (Any of: Disease, DiseaseModel)
    relativeTimeIndication: [None]  (One of: QuantitativeValue, QuantitativeValueRange)
                    weight: [None]  (One of: QuantitativeValue, QuantitativeValueRange)
  Required Properties: ageCategory
% Append the new subject state to the subject's studiedState property
subject1.studiedState(end+1) = subjectStatePost;
disp(subject1)
  Subject (https://openminds.ebrains.eu/core/Subject) with properties:
         biologicalSex: male  (BiologicalSex)
    internalIdentifier: ""
              isPartOf: [None]  (SubjectGroup)
           lookupLabel: "demo_subject1"
               species: Mus musculus  (One of: Species, Strain)
          studiedState: [demo_subjectstate_pre_recording    demo_subjectstate_post_recording]  (SubjectState)
  Required Properties: species, studiedState

Detailed Installation Instructions

The easiest way to install the openMINDS for MATLAB is to use the Add-on Explorer:

  1. Launch the Add-on Explorer from MATLAB's Home tab. Click Add-Ons -> Get Add-Onsopenminds_installation_step1
  2. Search for "openminds"
  3. Select openMINDS Metadata Models for MATLABopenminds_installation_step2
  4. Press the "Add" button.openminds_installation_step4

Acknowledgements

EU Logo

This open source software code was developed in part or in whole in the Human Brain Project, funded from the European Union's Horizon 2020 Framework Programme for Research and Innovation under Specific Grant Agreements No. 945539 (Human Brain Project SGA3).

Citation pour cette source

Eivind Hennestad (2024). openMINDS Metadata Models for MATLAB (https://github.com/openMetadataInitiative/openMINDS_MATLAB/releases/tag/v0.9.1.1), GitHub. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2023b
Compatible avec les versions R2019b et ultérieures
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Human Brain Mapping dans Help Center et MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Publié le Notes de version
0.9.1.1

See release notes for this release on GitHub: https://github.com/openMetadataInitiative/openMINDS_MATLAB/releases/tag/v0.9.1.1

0.9.1

See release notes for this release on GitHub: https://github.com/openMetadataInitiative/openMINDS_MATLAB/releases/tag/v0.9.1

0.9.0.0

See release notes for this release on GitHub: https://github.com/openMetadataInitiative/openMINDS_MATLAB/releases/tag/v0.9.0

Pour consulter ou signaler des problèmes liés à ce module complémentaire GitHub, accédez au dépôt GitHub.
Pour consulter ou signaler des problèmes liés à ce module complémentaire GitHub, accédez au dépôt GitHub.