Skip to content

Zeros output for coordinateTransforms time scale #280

@krokicki

Description

@krokicki

I'm trying to convert OME-TIFF images which are 2d whole slide image exported by the TissueGnostics microscope software. I wanted to use bioformats2raw to convert these to OME-Zarr for viewing in Neuroglancer. The conversion works but produces .zattrs metadata like this:

{
  "multiscales" : [ {
    "metadata" : {
      "method" : "loci.common.image.SimpleImageScaler",
      "version" : "Bio-Formats 7.3.0"
    },
    "axes" : [ {
      "unit" : "second",
      "name" : "t",
      "type" : "time"
    }, {
      "name" : "c",
      "type" : "channel"
    }, {
      "unit" : "micrometer",
      "name" : "z",
      "type" : "space"
    }, {
      "unit" : "micrometer",
      "name" : "y",
      "type" : "space"
    }, {
      "unit" : "micrometer",
      "name" : "x",
      "type" : "space"
    } ],
    "name" : "Slide 1 of 4_Region 002_channels.tiff",
    "datasets" : [ {
      "path" : "0",
      "coordinateTransformations" : [ {
        "scale" : [ 0.0, 1.0, 1.0, 0.335762932896614, 0.335762932896614 ],
        "type" : "scale"
      } ]
    }, {
      "path" : "1",
      "coordinateTransformations" : [ {
        "scale" : [ 0.0, 1.0, 1.0, 0.671525865793228, 0.671525865793228 ],
        "type" : "scale"
      } ]
    }, {
      "path" : "2",
      "coordinateTransformations" : [ {
        "scale" : [ 0.0, 1.0, 1.0, 1.343051731586456, 1.343051731586456 ],
        "type" : "scale"
      } ]
    }, {
      "path" : "3",
      "coordinateTransformations" : [ {
        "scale" : [ 0.0, 1.0, 1.0, 2.686103463172912, 2.686103463172912 ],
        "type" : "scale"
      } ]
    }, {
      "path" : "4",
      "coordinateTransformations" : [ {
        "scale" : [ 0.0, 1.0, 1.0, 5.372206926345824, 5.372206926345824 ],
        "type" : "scale"
      } ]
    }, {
      "path" : "5",
      "coordinateTransformations" : [ {
        "scale" : [ 0.0, 1.0, 1.0, 10.744413852691649, 10.744413852691649 ],
        "type" : "scale"
      } ]
    }, {
      "path" : "6",
      "coordinateTransformations" : [ {
        "scale" : [ 0.0, 1.0, 1.0, 21.488827705383297, 21.488827705383297 ],
        "type" : "scale"
      } ]
    }, {
      "path" : "7",
      "coordinateTransformations" : [ {
        "scale" : [ 0.0, 1.0, 1.0, 42.977655410766594, 42.977655410766594 ],
        "type" : "scale"
      } ]
    } ],
    "version" : "0.4"
  } ],
  "omero" : {
    "channels" : [ {
      "color" : "0000FF",
      "coefficient" : 1,
      "active" : true,
      "label" : "DAPI",
      "window" : {
        "min" : 0.0,
        "max" : 65535.0,
        "start" : 0.0,
        "end" : 65535.0
      },
      "family" : "linear",
      "inverted" : false
    }, {
      "color" : "FF8000",
      "coefficient" : 1,
      "active" : true,
      "label" : "CY3",
      "window" : {
        "min" : 0.0,
        "max" : 65535.0,
        "start" : 0.0,
        "end" : 65535.0
      },
      "family" : "linear",
      "inverted" : false
    }, {
      "color" : "FF00FF",
      "coefficient" : 1,
      "active" : true,
      "label" : "CY5",
      "window" : {
        "min" : 0.0,
        "max" : 65535.0,
        "start" : 0.0,
        "end" : 65535.0
      },
      "family" : "linear",
      "inverted" : false
    } ],
    "rdefs" : {
      "defaultT" : 0,
      "model" : "color",
      "defaultZ" : 0
    }
  }
}

This fails to load in Neuroglancer with the following error:
"Expected positive finite floating-point number, but received: 0".

This is because the coordinate transforms collapse the time axis to 0 for every scale level. If I change the time axes from 0.0's to 1.0's it loads without issue.

Is there any way to get around this issue? Is the bug in bioformats2raw, Neuroglancer, or TissueGnostics?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions