2023-04-17 Offline Service Documentation

Before working with stand-alone service, advised to test offline using application (Windows): http://client:newversionscsa@versions.chromsword.com/Chromsword_Offline_5.2.358.992.exe

License key: PR0S9-POO44-45404-4S9R3-4O492-O7533

Video how to use app with explanations:

http://share.yellowrobot.xyz/quick/2023-4-17-6E55363B-A173-4103-8A13-AB6F307992D4.mkv

 

First task

  1. Using Offline program and RPTX files try to replicate video.

  2. Compare if you enter N-1 runs as input, can you replicate Nth output of run with real run output using gradient simulation - if you cannot - try different calibrated columns, consult with Andrius, make sure we can reliably predict behavior of peaks before using API

RPTX generated by Developer (Fine optimization) http://share.yellowrobot.xyz/1631869217-chromsword/GrunFine.rptx http://share.yellowrobot.xyz/1631869217-chromsword/GrunFine-5-0-spectra.rptx

RPTX generated by Developer (Rapid optimization) http://share.yellowrobot.xyz/1631869217-chromsword/GrunRapid.rptx


API

 

Launch ChromSwordOfflineService.exe (INCLUDED in Offline installation - it runs silently this in background, if you close Offline.exe you can run itself) in backgound or compile it using FPC Lazarus from source code ./service to Linux https://bitbucket.org/evaldsurtans/chromsword-offline-service-fpc/src/master/

It will start TCP based JSON service at 127.0.0.1:7890

 

Input in messages must be ASCII encoded Output must be UTF8 encoded

 

Execution procedure

Set common method params
Add data from runs
Build model
Init pre-build model
Manually set concentration gradient
Simulate chromatogram
simulate peak table
Optimize for best concentration gradient
Get peak resolution map 1D/2D

 

Request format

 

Generic Response format

Build model commands

Common in all requests for building model Request:

Response (model tied to every compound with values in response):

 

 

command :

 

 

Init pre-built model

Request

 

Simulate peak table

command:

 

Simulate chromatogram

Generated from Peak table using following equations - used only for visualization

 

 

 

Other commands

command:

Response: