forked from hms-dbmi/vizarr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathome.ts
74 lines (66 loc) · 1.33 KB
/
ome.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
declare module Ome {
type Version = '0.1';
interface Channel {
active: boolean;
coefficient: number;
color: string;
family: string;
inverted: boolean;
label: string;
window: {
end: number;
max?: number;
min?: number;
start: number;
};
}
interface Omero {
id: number;
name?: string;
version: Version;
channels: Channel[];
rdefs: {
defaultT?: number;
defaultZ?: number;
model: 'color' | 'greyscale';
};
}
interface Multiscale {
datasets: { path: string }[];
version?: string;
axes?: string[];
}
interface Acquisition {
id: number;
name?: string;
maximumfieldcount?: number;
description?: string;
starttime?: number;
/**
* @deprecated
*/
path?: string;
}
interface Plate {
acquisitions?: Acquisition[];
columns: { name: string }[];
field_count: 4;
name: string;
rows: { name: string }[];
version: Version;
wells: { path: string }[];
}
interface Collection {
images: {};
}
interface Well {
images: { path: string; acquisition?: number }[];
version: Version;
}
type Attrs =
| { collection: Collection }
| { multiscales: Multiscale[] }
| { omero: Omero; multiscales: Multiscale[] }
| { plate: Plate }
| { well: Well };
}