MultiModal Big Image Data Sharing and Exploration
MoBIE collection tables provide a convenient human editable way to define large (correlative) image data sets, including images, segmentation images, segmentation annotations and annotated spots.
You may skip the below explanations and immediately try it out using the below quick start section.
Each row specifies one dataset, which can be configured by one of these columns:
uri (mandatory): defines the location of a dataset
type: defines the type of dataset; this column can be omitted if all data are intensity images.
intensities (default): normal imageslabels: label mask (segmentation) imagesspots: a table with annotated spotschannel: the index of the channel that should be opened; necessary to load an image with multiple channels, please add one row per channel (note that MoBIE works with a single channel data model and thus each channel of an image must be loaded individually); this column can be omitted if all your data only has a single channel (e.g. EM data)
color: supports various encodings, e.g.
r(0)-g(255)-b(0)-a(255)white, red, etc.blend: defines the blending mode
sum (default): image intensities will be displayed in an additive manneralpha: images that are displayed later will be rendered “on top” of the previous images; the corresponding opacity can be configured in the user interfaceview: free text
display: free text
view that have been acquired with the same microscope settings, e.g. a tiled acquisition of GFP images (in which case you could use “GFP” as the table cell entry)grid layouts (s.b.) where all images may have been acquired with comparable settingsaffine: additional transformation(s) to apply on display (i.e. where/how the image is rendered in the viewer)
1;0;0;0;0;1;0;0;0;0;1;0
- e.g. x-shift: 1;0;0;-105.34;0;1;0;0;0;0;1;0
type (required)value (required)name (optional)
supported type entries in that table: affine, displacement_field_uri, elastix_bspline_uri, thin_plate_spline_urithin_plate_spline: legacy column name for inline BigWarp JSON in the collection table cell
affine, with type = thin_plate_spline_urithin_plate_spline_uri: transformation-table type token
value is a URI/path to BigWarp landmark JSONelastix_bspline_uri: transformation-table type token
value is a URI/path to an Elastix TransformParameters file for a BSpline transformdisplacement_field_uri: transformation-table type token
value is a URI/path to a JSON metadata file for a precomputed 3D inverse displacement fieldPlugins > MoBIE > Create > Create Inverse Displacement Field From Elastix BSpline...exclusive: boolean
true: when displaying the dataset all other currently displayed datasets will be removedfalse (default): when displaying the dataset it will be shown on top of already displayed datasetsname: free text
group: free text
labels_table: path to a labels table
type: labelscontrast_limits: min;max or auto
10;240 or 1000;38000 or autoauto will trigger an auto-contrast algorithmgrid: free text
grid_position: x;y
0;0, 1;0, 5;2grid entry.format:
OmeZarr: needed if the path to an OME-Zarr does not contain .ome.zarrspot_radius: number larger than zero
type spotsbounding_box: configures the size of a spot image. E.g., 0.0;0;0-200.5;200;50.3
type spotsThe only required column is uri, which must contain a valid path to that dataset. This path can be local (File system) or in the cloud (S3 or HTTP).
For a more complete specification of all columns please read the comments in the code.
In addition to the specified columns, the table may contain an arbitrary number of additional columns, where you can annotate your respective data sets.
Several fields in the table accept list values (for example numeric lists or group lists).
You can write list items using:
a;b;ca, b, cOptional surrounding brackets are accepted and ignored:
(a;b;c) or (a, b, c)[a;b;c] or [a, b, c]{a;b;c} or {a, b, c}Whitespace around items is ignored, so these are equivalent:
1;2;31; 2; 3( 1 ; 2 ; 3 );) without bracketsWe recommend using semicolon-separated lists without enclosing brackets whenever possible.
Recommended style:
1;2;3views;qc;publicationBrackets remain optional and equivalent when you prefer them.
Why:
If you choose comma-separated lists in a CSV file, make sure the full cell is quoted:
"1,2" or "(1, 2)"As an alternative, consider using tab-separated files (TSV), which avoids comma ambiguity in list cells.
3;5(3;5)"(3, 5)" in CSV0.1;1.5;3.0[0.1;1.5;3.0]views;qc;publicationWithin the Fiji menu select: Plugins > MoBIE > Open > Open Collection Table...
A user interface will pop up with the following fields:
Table Uri: Location of a MoBIE collection table.
( S3 Access Key ) & ( S3 Secret Key ): free text
uri column of the collection table points to data in a protected S3 bucket.The advantage of the collection table is that it is easy to create. A disadvantage as compared to a traditional MoBIE project is that you cannot define very complex views on your data.
However, you can do the following: After opening a collection table, you can configure a complex view and then right click in the BigDataViewer window and say “Save current view…”. It will ask you for the name of this view and importantly also for the file in which you want to save it. Please call this file “mobie-views.json” and save it in the same folder as your collection table. The next time you open the collection table, MoBIE will automatically pick it up and then you can look at the views defined in this file. Note that you can add several views to that file. So next time you want to save a view, simply select that file again as the destination. Please note that any changes in your collection table will probably invalidate those views! Thus, in practice, once you created such a mobie-views.json, you may not change the collection table anymore.
Plugins > MoBIE > Open > Open Collection Table...
Table Uri: Enter path to one-image-collection.csv or two-images-collection.csvData Root: UseTableFolderViewing Mode: TwoDimensionalFor remote data it is convenient to use Google Sheets as the collection table, as this will allow you to have an entirely cloud based solution that you can readily share with anyone.
Please note that the Google Sheet link must allow public read access.
Here are some Google Sheet collection tables that are pointing to remotely hosted data. They can be opened like this:
Plugins > MoBIE > Open > Open Collection Table...
Table Uri: Paste link to the Google SheetData Root: PathsInTableAreAbsoluteViewing Mode: ThreeDimensionaluri column is mandatory. It can be instructive to remove some or all of the other columns and see what you get. You can then sequentially add back the other columns and observe how the visualisation changes (and/or errors appear).
affine (recognised) to x_affine (not recognised).The motivation of using a table format to specify image collections was that it should be very easy to manually create such tables, for example in spreadsheet software like Excel. We recommend taking any of the above examples as a starting point and modify them according to your needs.
For local image data, you can use Plugins > MoBIE > Create > Create MoBIE Collection Table... to get started and then modify or add columns in the table.
Here is a simple example of how to create a MoBIE collection table using pandas in python. The example is intended as an inspiration and does not cover every situation. Feel free to copy and adjust to your needs!
Make sure to have MoBIE installed on your computer.
Within the Fiji menu select: Plugins > MoBIE > Open > Open Collection Table....
In the user interface that pops up choose:
Table Uri: https://docs.google.com/spreadsheets/d/1xZ4Zfpg0RUwhPZVCUrX_whB0QGztLN_VVNLx89_rZs4/edit?gid=0#gid=0Data Root: PathsInTableAreAbsoluteViewing mode: ThreeDimensionalHave fun browsing the data!