The converter servie can be installed or deployed in three different ways:
This is for installlation of items on local machine
git clone https://github.com/NFDI4Chem/cs-ms-converter.git
msconverter-cwl-basedcd msconverter-cwl-based
How to create a python virtual environment
python3 -m venv <your desired virtual environment name>
source <path to your desired virtual environment name>/bin/activate
pip install -r requirements.txt
rest_api.pypython rest_api.py
or
python rest_api.py
This is for installlation of items on Docker
docker pull docker pull lincoln1010/mass_spectrometry_file_converter:v2.1.1
docker run --privileged -d -ti --name < name of the container > -p 5000:5000 -e CPU=<number of cpu eg: 1> -e THREAD=<number of threads eg: 1> lincoln1010/mass_spectrometry_file_converter:v2.1.1
docker exec < name of the container > dockerd >/tmp/docker.stdout 2>/tmp/docker.stderr &
The converter supports all arguments listed on the MSConvert Documentation.
docker cp < path to your config.txt file > < name of the container >:/app/config.txt
The deployment of Kubernetes instance is done via Helm chart. The helmchart repository is available at Helm Chart: Mass Sptrometry File Converter
git clone https://git.rwth-aachen.de/linsherpa/msconverter-helmchart.git
name of app, namespace, persistent volume claims, APIConnection timeouts, CPU , THREAD, etchelm install -f values.yaml < name-of-the-helm-app > .