You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6c60067
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+72Lines changed: 72 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,78 @@ Current OME-NGFF (i.e. OME-Zarr) tools tend to support different aspects of the
8
8
9
9
Each tool could optionally publish a "capability manifest" which describes the tool's implementd capabilities with regards to the current and former NGFF Specifications. This manifest could simply live in the tool's Github repo, to be updated whenever relevant changes are made to the code. This manifest can then be interpreted computationally by any platform that wants to launch OME-NGFF tools (OMERO, BFF, Fileglancer, etc.)
10
10
11
+
## Library Usage
12
+
13
+
This package can be used as a library to determine which OME-Zarr viewers are compatible with a given dataset.
14
+
15
+
### Installation
16
+
17
+
```bash
18
+
npm install @bioimagetools/capability-manifest
19
+
```
20
+
21
+
### Usage
22
+
23
+
```typescript
24
+
import {
25
+
initialize,
26
+
getCompatibleViewers,
27
+
typeOmeZarrMetadata
28
+
} from'@bioimagetools/capability-manifest';
29
+
30
+
// Initialize once at application startup
31
+
awaitinitialize();
32
+
33
+
// For each dataset, pass pre-parsed metadata
34
+
const metadata:OmeZarrMetadata= {
35
+
version: '0.4',
36
+
axes: [
37
+
{ name: 'z', type: 'space' },
38
+
{ name: 'y', type: 'space' },
39
+
{ name: 'x', type: 'space' }
40
+
],
41
+
// ... other metadata
42
+
};
43
+
44
+
// Get list of compatible viewer names
45
+
const viewers =getCompatibleViewers(metadata);
46
+
// Returns: ['Avivator', 'Neuroglancer']
47
+
```
48
+
49
+
### API
50
+
51
+
#### `initialize(): Promise<void>`
52
+
53
+
Loads all viewer capability manifests. Must be called once at application startup before using other functions.
0 commit comments