2023-04-17 Offline Service Documentation


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: