Giter VIP home page Giter VIP logo

biapol / bio-image_analysis_with_python Goto Github PK

View Code? Open in Web Editor NEW
182.0 182.0 41.0 348.76 MB

Lecture materials "Bio-image analysis, biostatistics, programming and machine learning for computational biology" at the Center of Molecular and Cellular Bioengineering (CMCB) / University of Technology, TU Dresden

License: Creative Commons Attribution 4.0 International

Jupyter Notebook 99.85% Python 0.01% Cool 0.14%
training-materials

bio-image_analysis_with_python's People

Contributors

allysonryan avatar arpoe avatar elsandal avatar haesleinhuepf avatar jo-mueller avatar lmanan avatar umang9599 avatar zoccoler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bio-image_analysis_with_python's Issues

Creating environment with conda (not mambaforge/miniconda)

Dear Robert,

I tried to create the environment listed here: https://biapol.github.io/blog/mara_lampert/getting_started_with_mambaforge_and_python/readme.html, however I did not use mambaforge but tried using base conda with this code:

conda create -n biapol devbio-napari python=3.9 pyqt -c conda-forge

However, there seems to be an issue with solving the environment, here is the current terminal session:

Collecting package metadata (current_repodata.json): - DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
\ DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): conda.anaconda.org:443
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): conda.anaconda.org:443
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
/ DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/r/noarch/current_repodata.json HTTP/1.1" 304 0
- DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/osx-64/current_repodata.json HTTP/1.1" 304 0
DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/r/osx-64/current_repodata.json HTTP/1.1" 304 0
DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/noarch/current_repodata.json HTTP/1.1" 304 0
DEBUG:urllib3.connectionpool:https://conda.anaconda.org:443 "GET /pytorch/noarch/current_repodata.json HTTP/1.1" 200 None
DEBUG:urllib3.connectionpool:https://conda.anaconda.org:443 "GET /pytorch/osx-64/current_repodata.json HTTP/1.1" 200 None
done
Solving environment: unsuccessful attempt using repodata from current_repodata.json, retrying with next repodata source.
Collecting package metadata (repodata.json): / DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): conda.anaconda.org:443
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): conda.anaconda.org:443
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): repo.anaconda.com:443
DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/osx-64/repodata.json HTTP/1.1" 304 0
DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/main/noarch/repodata.json HTTP/1.1" 304 0
DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/r/osx-64/repodata.json HTTP/1.1" 304 0
DEBUG:urllib3.connectionpool:https://conda.anaconda.org:443 "GET /pytorch/osx-64/repodata.json HTTP/1.1" 200 None
DEBUG:urllib3.connectionpool:https://repo.anaconda.com:443 "GET /pkgs/r/noarch/repodata.json HTTP/1.1" 304 0
\ DEBUG:urllib3.connectionpool:https://conda.anaconda.org:443 "GET /pytorch/noarch/repodata.json HTTP/1.1" 200 None
| WARNING conda.models.version:get_matcher(556): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.8.0.*, but conda is ignoring the .* and treating it as 1.8.0
WARNING conda.models.version:get_matcher(556): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.9.0.*, but conda is ignoring the .* and treating it as 1.9.0
WARNING conda.models.version:get_matcher(556): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.7.1.*, but conda is ignoring the .* and treating it as 1.7.1
/ WARNING conda.models.version:get_matcher(556): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.6.0.*, but conda is ignoring the .* and treating it as 1.6.0
done
Solving environment: - 

It is stuck at solving environemnt since over 1h. Is this issue caused by me not using mambaforge? Or is it a problem with downloading the packages/repodata?

I don't want to use mambaforge and conda simultaneously, as this caused a problem in my base environment path, as mamba edited it.

Thanks for your help in advance,
Best Lukas

11_voronoi_otsu_labeling, text suggestion

Concerning https://github.com/BiAPoL/Bio-image_Analysis_with_Python/blob/main/04_image_segmentation/11_voronoi_otsu_labeling.ipynb

look at this in this part of the notebook:

## Applying the algorithm
Voronoi-Otsu-labeling is a **command in clesperanto**, which asks for two sigma parameters. The first sigma controls how close detected cells can be (`spot_sigma`) and second controls how precise segmented objects are outlined (`outline_sigma`). This is the algorithm implemented in the [napari-segment-blobs-and-things-with-membranes](https://github.com/haesleinhuepf/napari-segment-blobs-and-things-with-membranes):

First you state it is a command in clesperanto, then you use napari-segment-blobs-and-things-with-membranes instead. This is a bit confusing. Probably you could just change the command in clesperanto to command in napari-segment-blobs-and-things-with-membranes

Error with nppas.to_napari_surface_data

Hi,

in /05_feature_extraction/02_sphericity_and_solidity we have the followng code block:

mesh_gastruloid = vedo.load('data/gastruloid.ply')

napari_mesh_gastruloid = nppas.to_napari_surface_data(mesh_gastruloid)
napari_mesh_gastruloid

When running this, I get the following Error:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
File ~/anaconda3/envs/biapol2/lib/python3.9/site-packages/IPython/core/formatters.py:344, in BaseFormatter.__call__(self, obj)
    342     method = get_real_method(obj, self.print_method)
    343     if method is not None:
--> 344         return method()
    345     return None
    346 else:

File ~/anaconda3/envs/biapol2/lib/python3.9/site-packages/napari_process_points_and_surfaces/_vedo.py:70, in SurfaceTuple._repr_html_(self)
     68 bounds = "<br/>".join(["{min_x:.3f}...{max_x:.3f}".format(min_x=min_x, max_x=max_x) for min_x, max_x in zip(mesh.bounds()[::2], mesh.bounds()[1::2])])
     69 average_size = "{size:.3f}".format(size=mesh.average_size())
---> 70 center_of_mass = ",".join(["{size:.3f}".format(size=x) for x in mesh.centerOfMass()])
     71 scale = ",".join(["{size:.3f}".format(size=x) for x in mesh.scale()])
     72 histogram = ""

AttributeError: 'Mesh' object has no attribute 'centerOfMass'

I am using nppas ==0.5.0. and Python==3.9.18
I suspect that in 'centerOfMass'` We have a ZERO instead of a "O".

Thanks for any help!

Solutions to Exercises

Dear BIAPol-Team,

first of all many thanks for offering this incredible resource. As an external self-learner, i wanted to ask if there is there a way to get the solutions to the exercises in the jupyter notebook files?

Best,
Lukas

Block 8 Lecture - Variance

On slide 15/18 of the descriptive statistics lecture from block 8, I believe that the left side of the equation for the calculation of variance is incorrect. I know this isn't a huge issue, but I wanted to point it out!

Screen Shot 2022-03-09 at 11 27 02 AM

On another note, I want to thank the group for making these lectures available. This is a highly valuable resource that I've found real benefit from and have enjoyed using!

Suggestion: brief git tutorial

I noticed that many students during the class are a little confused about git and github and they struggled and asked questions about how to use the course's repository, where to find the pdfs, jupyter notebooks etc. very frequently.

A brief git tutorial (like the one on conda installation and usage) might be enlightening for the students. This will not only be useful for the course but git and github are amazing tools for students, especially if they start programming for bio-imaging, bioinformatics/statistics, computational biology projects. The tutorial could be done either in the very beginning with the conda installation and focus on version control or it could be done right after the python basics.

napari OpenGL Mac (Big Sur)

Did anyone found a solution to our problem using Napari on Mac?
After installing Napari and using this code:

import napari

start napari

viewer = napari.Viewer()

add image

viewer.add_image(image)

add binary image as labels

labels = viewer.add_labels(binary_image)

...the Error-Message was:
"RuntimeError: Could not load OpenGL library, gl cannot be used"

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.