einarolafsson/spacr-example-import
spaCR — Import test data The same four microscope fields written in every container format and filename convention the Import module of spaCR reads, each with its cell, nucleus and pathogen masks and the measurements of its cells. It is the data behind Load test data… on the Import screen: pick a variant, and spaCR fills the screen with it and previews the import, so you can see every file land on the well, field and channel it came from. About 283 MB in one uncompressed archive… See the full description on the dataset page: https://huggingface.co/datasets/einarolafsson/spacr-example-import.
spaCR — Import test data
The same four microscope fields written in every container format and filename convention the Import module of spaCR reads, each with its cell, nucleus and pathogen masks and the measurements of its cells. It is the data behind Load test data… on the Import screen: pick a variant, and spaCR fills the screen with it and previews the import, so you can see every file land on the well, field and channel it came from.
About 283 MB in one uncompressed archive, spacr-example-import.tar. One download covers every variant.
Where the fields come from
Wells E01 and E02, fields 9 and 10, channels 1–3 of the toxomito example plate `plate1` (`einarolafsson/toxomito`): Toxoplasma-infected host cells, channel 1 nuclei, channel 2 host cells, channel 3 parasites.
- Images are the raw acquisition planes (16-bit, not rescaled), cut to 896 × 896 px. The window is the one that keeps the most whole cells.
- Masks are the cell, nucleus and pathogen label images of the Mask run on the same plate (
einarolafsson/spacr-example-measure), cut the same way. Every object the cut went through was removed, so no mask holds half an object. - Measurements are the Measure rows of exactly the cells left in the masks (
einarolafsson/spacr-example-annotate).reference/measurements.dbhas them as spaCR wrote them (cell, nucleus, pathogen and cytoplasm tables); each variant'smeasurements.dbhas the cell table the way a collaborator's table would arrive: spaCR's own key columns removed, and animagecolumn naming that variant's own file.
Channels are named DAPI, FITC and TRITC in the conventions that name channels rather than number them. Import numbers named channels in sorted order, and these three sort in channel order.
The variants
variants/<key>/plate1/ holds the images, variants/<key>/masks/{cell,nucleus,pathogen}/ the masks named the same way, and variants/<key>/measurements.db the table.
What is true of every file: manifest.csv
One row per file. path is relative to the unpacked import_example/ folder; well, field, channel, z and t are what the file truly is, and source_field is the field number on the original plate. field_identity says what an import should recover: number means the field number itself (field 9 stays field 9); rank means the order within the well, for the variants whose names carry no field number (a folder layout, a Leica Matrix Screener X/Y position, a file of channels). The manifest is the last member of the archive, so a download that died part-way has none and reads as absent.
Verified
Every variant was imported with spaCR's own planner and each output plane compared with the manifest: well, field, channel, z and t, every mask paired with its field, and every measurement row matched to an object in the masks.
What a pass proves, and what it does not: the files were written to follow each convention as spaCR's convention table documents it (the same table Mask uses, including which numbers count from zero), and read back by the Import module. It shows Import inverts those conventions. It cannot show that the table is right about every instrument; conventions marked provisional in spaCR's Naming list are the ones built from few real examples.
ND2 and LIF
No open library writes Nikon ND2 or Leica LIF, so those two variants are not these fields: they are public sample files from downloads.openmicroscopy.org, redistributed under their licence, CC BY 4.0 (the text is in each folder as LICENSE-CC-BY-4.0.txt). They carry no masks, so their buttons fill the Format Converter rather than the Import screen.
variants/nikon_nd2/plate1/A01/WellA01_ChannelBF_Seq0001.nd2— https://downloads.openmicroscopy.org/images/ND2/maxime/BF007.nd2 -- (c) Maxime Woringer, CC BY 4.0variants/leica_lif/plate1/A01/FRAP.lif— https://downloads.openmicroscopy.org/images/Leica-LIF/seanwarren/150519FRAPtestROIschromagreen/150519FRAPtestROIschromagreen.lif -- (c) Sean Warren, CC BY 4.0variants/leica_lif/plate1/A01/PR2729_frameOrderCombinedScanTypes.lif— https://downloads.openmicroscopy.org/images/Leica-LIF/michael/PR2729_frameOrderCombinedScanTypes.lif -- (c) Michael Goelzer, CC BY 4.0
Using it
In spaCR, open Import and press Load test data…. The first choice downloads the archive into ~/.cache/spacr/example_data/plate1/import_example/; later choices open from there. From a terminal: spacr-download import.
Licence
MIT, like spaCR's other example sets, except the two sample folders variants/nikon_nd2 and variants/leica_lif, which are CC BY 4.0 by the authors named above.
