https://github.com/hbpmedical/mip_schema

Open-source Python package to manipulate Common Data Elements Metadata Schema for the Medical Informatics Platform (MIP).

https://github.com/hbpmedical/mip_schema

Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 3 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 (10.4%) to scientific vocabulary
Last synced: 6 months ago · JSON representation

Repository

Open-source Python package to manipulate Common Data Elements Metadata Schema for the Medical Informatics Platform (MIP).

Basic Info
  • Host: GitHub
  • Owner: HBPMedical
  • License: apache-2.0
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 43.9 KB
Statistics
  • Stars: 1
  • Watchers: 9
  • Forks: 0
  • Open Issues: 0
  • Releases: 4
Created almost 3 years ago · Last pushed over 2 years ago
Metadata Files
Readme License

README.md

MIP Common Data Elements Metadata Schema Tool (mip_schema)

Latest GitHub Release Latest GitHub Release Date DOI

Open-source Python package to manipulate Common Data Elements Metadata Schema for the Medical Informatics Platform (MIP).

How to install?

For the user

  1. Create your installation directory, go to this directory, and create a new virtual Python 3.9 environment:

bash $ mkdir -p "/installation/directory" $ cd "/prefered/directory" $ virtualenv venv -p python3.9

  1. Activate the environment and install the package, at a specific version, directly from GitHub with Pip:

bash $ source ./venv/bin/activate (venv) $ pip install git+https://github.com/HBPMedical/mip_schema.git@0.0.5

For the developer

  1. Clone the Git repository in your prefered directory:

bash $ cd "/prefered/directory" $ git clone git@github.com:HBPMedical/mip_schema.git

  1. Go to the cloned repository and create a new virtual Python 3.9 environment:

bash $ cd mip_schema $ virtualenv venv -p python3.9

  1. Activate the environment and install the package with Pip:

bash $ source ./venv/bin/activate (venv) $ pip install -e .

Available command-line tools

mip_schema_update

Script to update the CDES JSON/EXCEL file pair to make this process more reproducible.

Usage

In a terminal, you can run it with the folllowing command: $ mip_schema_update \ --cdes_json_file "/path/to/CDEsMetadata.json" \ --cdes_excel_file "/path/to/myCDEs.xlxs" \ --command "remove_dashes_and_underscores" \ --output_suffix "updated" \ --log_file "/path/to/CDEs_update.log" Note: You can use the option -hto show more help about command usage.

Available commands:

  • remove_dashes_and_underscores: Remove dashes and underscores.

mip_schema_convert_from_json

Script to convert the CDES in JSON format back to the EXCEL format ingested by the Data Catatog.

Usage

In a terminal, you can run it with the folllowing command: $ mip_schema_convert_from_json \ --json "/path/to/CDEsMetadata.json" \ --excel "/path/to/myOutputCDEs.xlxs" \ Note: You can also use the option -hto show more help about command usage.

Funding

This project received funding from the European Union's H2020 Framework Programme for Research and Innovation under the Specific Grant Agreement No. 945539 (Human Brain Project SGA3, as part the Medical Informatics Platform (MIP)).

Owner

  • Name: HBP Medical Informatics Platform
  • Login: HBPMedical
  • Kind: organization
  • Email: support@ebrains.eu
  • Location: CHUV, Lausanne, Switzerland

GitHub Events

Total
Last Year

Dependencies

requirements.txt pypi
  • openpyxl ==3.1.2
  • pandas ==2.0.0