fiji-hpc / hpc-datastore

Server-side of the HPC DataStore project - Java API, shell scripts
1 stars 3 forks source link
big-image-data image-processing image-storage

HPC DataStore

This is the server-side of the HPC DataStore project.

The DataStore is shortest described as BigDataServer that can also accept images besides serving them. In other words, it is a REST HTTP-based client-server for downloading/uploading chunks from images from/to a remote dataset. The server is storing image data using the N5 on disk in a BigDataViewer unique XML/N5 dialect. The server communicates with its clients using our own simple protocol.

Motivation as well some reasoning, application examples and more details in general can be found here.

:tada: DataStore is actively working on storing data in NGFF OME.Zarr :sparkles::sparkles:

Table of contents is here.

Notes that shall not be overlooked...

Folks, this is a young project. Still quite a few things are "under heavy development". Also the functionality of the reference Fiji client is often a bit lacking behind what the server currently can do. But the future is bright :-)

At this moment, this is not Zarr compatible. Sadly! We, however, wish and plan to be. It requires to switch to N5 Zarr backend, which we will do once the BigDataViewer will be able to read Zarr files directly on disk (where we also plan to be active and help) -- we want to preserve the current access scheme. Everything needs its time, you know.

Main author: Jan Kožusznik

Contact person: Vladimir Ulman, vladimir.ulman@vsb.cz

Technicalities

This repository hosts implementation of the DatasetsRegisterService and DatasetServer, as discussed here.

The repository recognizes three types of branches:

Starting the server

To make the DataStore act truly as an image file format on its own with no compromise in performance, it is advisable to operate one's own DataStore server. In what follows is precisely how to do it.

From command line

The easiest way to get the server up and running is to execute the following:

git clone https://github.com/fiji-hpc/hpc-datastore.git
cd hpc-datastore
git checkout -b production origin/production
./mvnw clean package
(on Windows: mvnw.cmd clean package)
./start-server

This downloads the recent sources, compiles them (also downloads dependencies which will take some time) and runs the starting script. The starting script will only print out help and ask you to provide path to where datasets shall be stored, hostname and port to which the server shall bind to (where it should listen at).

(There used to be a period of time when Fiji client and this server was out-of-sync, this is no longer truth and one can/should be using the latest code from the client(s) and server.)

The server is for real started with the following command:

./start-server PATH HOST PORT

One can (re)start the server on a folder with some datasets already inside, the server will be serving them too.

One probably want to execute that inside a screen or tmux environment.

From IDE

Run the class cz.it4i.fiji.datastore.App. It accepts the following properties:

You can pass them as a parameter to the JVM with the -D<property.name> construct. The last parameter (datastore.ports) is currently not used.

Public testing server

We are running a demo server for testing it out. Please, be nice to it :-) (don't upload tons of data). The server is hosting, among other, a dataset that shows the first 11 time points of a TRIF training video 02 from the CellTrackingChallenge.net. We thank the challenge organizers for kindly agreeing to use their data.

The access parameters are:

Testing it with BigDataViewer

To test it out, navigate your BigDataViewer, which comes with Fiji, on that particular dataset. The outcome could look like this:

Example of BDV showing DataStore-served image

Choose browsing of BigDataServer, use http://alfeios.fi.muni.cz:9080/bdv/bd2e4ae0-64bb-48d7-8154-1c9846edbff6 for the remote url, choose the version 0, and the BigDataViewer window should show up.

Testing it with Fiji Client

Or, try to download one or more images from the DataStore:

Example of Fiji plugin downloading image from DataStore

Here, have HPC-DataStore update site installed in your Fiji, then start Request Dataset Serving in the HPC DataStore menu, provide the access information (left dialog window), convenience dialog (right window) shows up that aids and guards the user when changing the dialog items. Eventually, the requested image (or its sub-region based on what chunks are requested) gets downloaded. Notice the ImageJ macro command reported for exactly that operation. One could cut-and-paste it as such or as a template into own macros.

Again, the HPC-DataStore Fiji update site should be enabled to obtain the client plugins:

HPC DataStore Fiji update site

Start with Importing Own Dataset

...and here's how.