Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/qupath/qupath-bioimageio-spec

Support for parsing the BioImage Model Zoo spec in Java
https://github.com/qupath/qupath-bioimageio-spec

Last synced: 18 days ago
JSON representation

Support for parsing the BioImage Model Zoo spec in Java

Awesome Lists containing this project

README

        

# QuPath BioImage Model Zoo Spec

Support for parsing the [BioImage Model Zoo spec](https://github.com/bioimage-io/spec-bioimage-io) in Java.

With thanks to the @bioimage-io for all their work in creating this spec and the model zoo.

## Purpose

This was written mostly to help support the BioImage Model Zoo in [QuPath](https://qupath.github.io).

It's separated out from QuPath's code in case it could be useful to anyone else.

## Dependencies

The spec is implemented in a single Java file with 3 dependencies:

* SnakeYAML
* Gson
* slf4j-api

Gson might be removed as a dependency in the future.

## Compatibility

The code here should be compatible with Java 11.

It was written for the model spec v0.4.x, but attempts too also handle most yaml files written with the model spec v0.3.x.

## Building

The jar can be built with:
```
gradlew build
```

There are a few sample model spec files for testing.
To test more, you can pass a base directory and the test code will search recursively (up to 5 levels deep) to find model yaml files to read.
```
gradlew test -Ptest.models=path/to/base/directory
```

> Note: The testing isn't very extensive. Currently, it just checks the models can be parsed without exceptions.