Code Monkey home page Code Monkey logo

Comments (7)

SeanLeRoy avatar SeanLeRoy commented on August 15, 2024

Hi @TomPJWyatt, do you have an example file we could test with? I'd also be interested in knowing how you are initializing the image, like if perhaps supplying the LifReader directly may change anything (like so)

from aicsimageio import AICSImage
from aicsimageio.readers import LifReader

img = AICSImage(filepath, reader=LifReader)
img.dims
img.shape

img = AICSImage(filepath)
img.dims
img.shape

from aicsimageio.

TomPJWyatt avatar TomPJWyatt commented on August 15, 2024

Hi Sean, I have an example file but github won't allow uploading of lif files, any ideas?

I just tried your suggestiong with supplying the LifReader directly and the channels/z are still mixed up I'm afraid.

from aicsimageio.

toloudis avatar toloudis commented on August 15, 2024

@TomPJWyatt Maybe you can use dropbox, or other cloud file storage that allows link sharing. We can just download the file and then you could remove it once we confirm we got it.

from aicsimageio.

TomPJWyatt avatar TomPJWyatt commented on August 15, 2024

Hello, here's a link to a lif that opens fine in fiji but with aicsimagebio the chanel/z-slices get mixed up:
https://we.tl/t-zlX9sCoO9j

It should have 5 channels and 27 z-slices and should be clear that they are mixed up e.g. from the fact that the first channel is the only nuclei stain but you'll see slices from this channel showing up in other channels

from aicsimageio.

SeanLeRoy avatar SeanLeRoy commented on August 15, 2024

I am able to reproduce this with your file; other LIF files I have on hand seem to not have this issue. I'm able to get it to read correctly using a change to the way the xy dimensions are ordered together, but it doesn't seem to solve the issue consistently nor am I sure how to flag files like yours as needing to be arranged differently (compared to the other LIF files I have for example) such that if that fix worked we could apply it when needed.

That is all to say this might not be an issue with aicsimageio per se. Was this file saved using the LAS X Stage Navigator? This might be a known issue with readlif the underlying package responsible for reading LIF files in aicsimageio as described here. I'll keep poking around a bit longer to see if I can find something to assist this.

from aicsimageio.

TomPJWyatt avatar TomPJWyatt commented on August 15, 2024

Hi @SeanLeRoy yes it was saved with LAS X Navigator. Thanks for the update!

from aicsimageio.

SeanLeRoy avatar SeanLeRoy commented on August 15, 2024

Moving this issue over to bioio-lif. aicsimageio is moving into "maintenance" mode where only easy to implement bugfixes deemed critical (or community contributed) work will be done in aicsimageio. Instead of aicsimageio, we are creating a package soon to be released called bioio and plugins like the one aforementioned. See the reason for this change here.

from aicsimageio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.