-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from RationAI/development
Improve module for wsi-service communication.
- Loading branch information
Showing
5 changed files
with
53 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,3 @@ | ||
# Standalone WSI Service | ||
|
||
Implementation of OpenSeadragon Tile Source access to the standalone WSI service. | ||
|
||
> [!CAUTION] | ||
> This module collides with different empaia slide service access (e.g. `EmpationAPI`) - the protocols used | ||
> are the same and only one will be used (without user control over which one). | ||
Modified by RationAI, the WSI service can read proprietary WSI file formats | ||
in the standalone mode, accessing WSIs by their standalone IDs (generated via the service local path mapper), | ||
or accessing the files directly by a file path (must replace `/` chars with `>` for `/slides` endpoint). | ||
|
||
Also supports multifile access on the API extension `/files`. | ||
|
||
### Usage | ||
|
||
You need to provide an URL to the WSI server that uses empaia API, for example: | ||
````json | ||
"image_group_server": "http://localhost:8080", | ||
"image_group_protocol": "`${path}/v3/batch/info?slides=${data}`", | ||
"image_group_preview": "`${path}/v3/batch/thumbnail/max_size/250/250?slides=${data}`", | ||
"data_group_server": "http://localhost:8080", | ||
"data_group_protocol": "`${path}/v3/batch/info?slides=${data.join(\",\")}`", | ||
```` | ||
Deprecated. Use rationai-wsi-tile-source instead. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Standalone WSI Service | ||
|
||
Implementation of OpenSeadragon Tile Source access to the standalone WSI service. | ||
|
||
Modified by RationAI, the WSI service can read proprietary WSI file formats | ||
in the standalone mode, accessing WSIs by their IDs (dependent on the mapper usage). | ||
|
||
Also supports multifile access on the API extension `/files`. | ||
|
||
### Usage | ||
Configure the default viewer ENV | ||
````json | ||
"image_group_server": "http://localhost:8080", | ||
"image_group_protocol": "{url: `$${path}/v3/files/info?paths=$${data}`, type: 'empaia-standalone'}", | ||
"image_group_preview": "`${path}/v3/batch/thumbnail/max_size/250/250?slides=${data}`", | ||
"data_group_server": "http://localhost:8080", | ||
"data_group_protocol": "{url:`$${path}/v3/files/info?paths=$${data.join(\",\")}`, type: 'empaia-standalone'}", | ||
```` | ||
or provide particular strings in the ``protocol`` for sessions. | ||
|
||
You can also just set an URL to the WSI server, for example: | ||
````json | ||
"image_group_server": "http://localhost:8080", | ||
"image_group_protocol": "`${path}/v3/batch/info?slides=${data}`", | ||
"image_group_preview": "`${path}/v3/batch/thumbnail/max_size/250/250?slides=${data}`", | ||
"data_group_server": "http://localhost:8080", | ||
"data_group_protocol": "`${path}/v3/batch/info?slides=${data.join(\",\")}`", | ||
```` | ||
But this approach has its limitations. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters