Custom Chromatograms
Peaksel doesn’t limit you in doing things only the way it does. If the standard mechanisms on extracting chromatograms doesn’t work for you, you can create your own traces by providing the signal intensity (y-axis) and the domain (x-axis).
To do this, send a POST
request to the /api/chromatogram endpoint with the following fields:
{ "injectionId": "...",
"name": "Custom Chromatogram",
"signal": "base64-encoded array of 4-byte floats in Big Endian format",
"domain": "base64-encoded array of 4-byte floats in Big Endian format" }
The name must be unique within the same injection and at most 50 characters long. It uses the same peak detection as other 1D chromatograms. Unless, you want to select peaks via scripts too.
SDK
It’s much easier though to create custom chromatograms programmatically using the SDK:
peaksel.chroms().add_chromatogram("[injection id]", "Custom name",
[0.1, .2, .3, .4, 1, 2, 3, 4],
[1, 5, 7, 9, 2, 1, 1, 2])