In the usage I'd like to be able to support in the web application, it should be possible to query for the spatial metrics based on entirely user-defined phenotypes, up to 2 phenotypes. Right now the query parameters only support named/predefined phenotypes by identifier or single-channel.
For this issue, either create a new endpoint (like the "anonymous" endpoint for counts), or add optional query parameters that allow the user to specify 0, 1, or 2 lists of positive and negative markers.
Tests pass.
(This also includes a small bugfix for reproducibility of one of the tests. For some reason at significant digits >20 or so there were the tiniest discrepancies depending on architecture.)
In the usage I'd like to be able to support in the web application, it should be possible to query for the spatial metrics based on entirely user-defined phenotypes, up to 2 phenotypes. Right now the query parameters only support named/predefined phenotypes by identifier or single-channel.
For this issue, either create a new endpoint (like the "anonymous" endpoint for counts), or add optional query parameters that allow the user to specify 0, 1, or 2 lists of positive and negative markers.