GithubHelp home page GithubHelp logo

virtualembryo / foambryo Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 2.0 27.8 MB

Python package to infer tensions and pressures from 3D microscopy images of embryos and tissues

Home Page: https://www.turlierlab.com

License: Other

Python 100.00%
embryogenesis foam inference pressure tissue image-analysis surface-tension

foambryo's People

Contributors

mperez-cdf avatar sacha-ichbiah avatar virtualembryo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sacha-ichbiah

foambryo's Issues

Issue with importing some functions

Hi,
This is an amazing tool and thanks for making it available! Could you help me identify the problem with importing the some of the functions?

After using pip to install foambryo and foambryo[viewing], I am able to import and use the following:

  1. from foambryo import plot_force_inference, plot_tension_inference
  2. from foambryo import infer_forces

However, the following imports do not work and I get a similar error for each one:

Error: ImportError: cannot import name 'dcel_mesh_from_segmentation_mask' from 'foambryo' (C:\ProgramData\anaconda3\Lib\site-packages\foambryo_init_.py)

Functions that cause the error above:

  1. from foambryo import dcel_mesh_from_segmentation_mask
  2. from foambryo.viewing import plot_force_inference, plot_tension_inference
  3. from foambryo import infer_pressures, infer_tensions
  4. from foambryo import PressureComputationMethod, TensionComputationMethod

Since the dcel_mesh_from_segmentation_mask cannot be imported, I am using the following method to build the mesh from the segmentation mask and use plot_force_interface:

Load the labels

import skimage.io as io
Segmentation = io.imread('E:/ablation/ABTZL-cftr-hsp-h2a-tdtom-col8a1a-gfpCaax-2dpf/fish1/T_-1/closed_stack.tif')

Reconstruct a multimaterial mesh from the labels

DW = geometry_reconstruction_3d(Segmentation,min_dist = 3)
Verts, Faces_multimaterial = DW.return_mesh()
Mesh = DCEL_Data(Verts,Faces_multimaterial)

Isotropic scaling

Hi all,

Thank you for this awesome package - very exciting!
I just had a question about the scaling of the image after import. I'm trying to use this on confocal data that's not isotropic, but I noticed my image was scaled isotopically after importing and running the viewer so it looked a bit squashed. I can overcome this by rescaling z manually before feeding it into the package pipeline. However, I was just wondering if there was anyway to set the x,y,z resolution from the metadata before generating the mesh as I assume it would change any tension/pressure inferences not having the correct shape?

Thank you for any help,

Zimeng

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.