Coder Social home page Coder Social logo

bluebrain / vessmorphovis Goto Github PK

View Code? Open in Web Editor NEW
34.0 34.0 6.0 65.63 MB

A lightweight, interactive, extensible and cross-platform framework for building, visualizing and analyzing vasculature (or blood vessels) morphologies.

Home Page: https://portal.bluebrain.epfl.ch/

License: GNU General Public License v3.0

Python 99.51% Shell 0.49%
bbp blender-addon blood-vessels blood-vessels-visualization blue-brain-project meshing morphology simulation-based-neuroscience vascular-flow vascular-networks visualization

vessmorphovis's People

Contributors

alex4200 avatar jplanasc avatar marwan-abdellah 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vessmorphovis's Issues

Attempting to load any of the supplied .vmv files results in the following error

Traceback (most recent call last):
File "/Applications/Blender.app/Contents/Resources/2.80/scripts/addons/VessMorphoVis/vmv/interface/ui/io_panel.py", line 281, in execute
vmv.scene.clear_scene()
File "/Applications/Blender.app/Contents/Resources/2.80/scripts/addons/VessMorphoVis/vmv/scene/ops/scene_ops.py", line 59, in clear_scene
vmv.utilities.disable_std_output()
File "/Applications/Blender.app/Contents/Resources/2.80/scripts/addons/VessMorphoVis/vmv/utilities/std_output.py", line 39, in disable_std_output
sys.stdout = open('stdout.output', 'w')
PermissionError: [Errno 13] Permission denied: 'stdout.output'

location: :-1

Section connectivity data.

Add a flag after loading the dataset to indicate if it has the connectivity information or not. Disable the connected sections builder if this flag is set to false.

Visualize full brain morphologies with huge sizes

We recently received a dataset for the full mouse brain that has more than 5 million samples. Using polylines to visualize such a huge dataset is not applicable without commodity GPUs.
To resolve this issue and visualze the dataset, we can sample the loaded section list and visualize a subset of the morphology.

Note that the analysis will be applied on the entire dataset, while the resampled one is only used for the visual representation.

We should also add a note in the UI that we only visualze a subset of the morphology.

Radii unififcation

Add a flag to allow the user to unify the radii at the branching points for better and smoother visualization.

Rendering of isometric views of the datasets

To complete the analysis, we should integrate a way to visualize the datasets (either morphologies or meshes) with an isometric camera (orthographic camera with a 45 degree alignment) from the 3 views. The bounding box should rendered slightly to give an insight on the depth cues.

Analysis of directional components

Further analysis is required to analysis to the total length of the different components in the morphologies along the XYZ coordinates to complement the color-code visual analysis.

Request of Access to Supplementary material

Hi,

Thanks for the great work and public-available software. I am particularly interested in the mesh generation. I can see most of the method details are in supplementary materials. However, it seems not able to retrieve the supplementary from the bioinformatics website. https://academic.oup.com/bioinformatics/article/36/Supplement_1/i534/5870503?login=false.

May I ask if there is anywhere else I can find the supplementary materials? Otherwise, would you mind providing a pdf file?

Thanks a lot in advance!

Implement a point cloud visualizer

The current samples builder is indeed limited for large scale visualization. It is better to implement or integrate a point cloud visualizer with OpenGL code and some transparency. This will allow us to visualize extremely large scale datasets.

Feature Request: area-weighted analysis

Please include area-weighted quantities (instead of giving each point a weight of one, since this is not robust to arbitrary sampling) in network-wide analyses since, these quantities are more biologically relevant. See figure 4C from the SLAVV methods paper preprint for example area-weighted histograms.

Further Connected Section options

  • If the connectivity data is not available, simply don't add the mode to the list.
  • Add a feature to allow the users to use number of pre- and -post samples to be added from the parent and children respectively.

Color Coding

Thank you for considering my feature request for the VessMorphoVis plugin: I would like to encode the directions of the vessels as a color (x-alignment->R,y->G,z->B). I may want to encode other attributes in color, so I would love more control over the coloring of the vessel objects. Ideally, I would love it if the last three fields of the point coordinates comprising the vessel centerline locations in the .vmv file could be interpreted as RGB values for that specific location along the vessel.

Thank you,
Pleased user of VessMorphoVis

Issue: discontinuous colormap for 3D directions (angle vs. sine)

Hi Marwan,

Thanks again for adding the 3D directional color-coding feature...

I noticed some choppiness (discontinuities) in the colormap. Did you perhaps encode the angle to each axis or the sines of those angles in the colormap? I believe the sines of those angles (the 3-space components of the direction unit vector) to be the better quantity to encode because it will utilize the color-space more evenly.

Proof: a random variable uniformly distributed on the surface of the unit sphere will be uniformly distributed in three components (sine of angle from axis) independently, but will have an uneven distribution when binned by the angles.

For example, looking at this authentic in vivo anatomy:

image

Here is the histogram of segment directions binned by Z-component (quite uniform):

image

And here is the histogram of (area-weighted) section directions binned by angle from Z axis (the histogram is heavily concentrated on 0 (because a random direction is more likely to be aligned to a plane than a line).

image

Thanks,
Sam

Implementation of the vmvh5 format

To improve the loading and export performance of the datasets, we should implement a similar a binary like format similar to the ascii one in VMV. We can call it .vmvh5 and simply store the vertices and strands in two different datasets.

Feature Request: Color coded direction (2D color space: aligned to viewing angle or the perpendicular plane)

Hi Marwan,

Thanks again for completing my other feature request for color-coding 3D direction as XYZ alignment -> RGB color sphere...

Will you please add a similar feature:

I would like again for the colors to represent alignment, but I would like a 2 Dimensional colormap, where one end of the spectrum represents alignment to the viewing angle of the camera, while the other end represents alignment to the plane perpendicular to that axis.

This feature would be nice because it will reduce the number of colors needed to deliver the information, and will still encode the most important directional information (direction in the image plane can be seen without the aid of color-coding).

If it is too hard to change color dynamically to the viewing angle, then we could allow the user to input the (3D spherical) angles, or choose an axis (e.g. Z axis)?

Thank you,
Sam

Feature Request: logarithmic bin limits for color-coding

Please allow for the color bin limits (for color-coding radius, length, area, etc.) to be logarithmically distributed. (Currently linearly distributed. I believe logarithmic should be the default, but having the option would be helpful too. Thank you.

Visualize morphologies w.r.t time

It was required by the cells and circuits team to visualize a time series of the morphology to reveal the differences in several properties like pressure, velocity or diameters, etc ...

Feature Request: directional color coding

Please add a color map option that maps vessel direction at each point (by comparing change in position between each point and one or both neighbors) to colors: [ |dx|, |dy|, |dz| ] -> [ R, G, B ] where |dx|, |dy|, |dz| are the absolute-valued difference in position with respect to trace-location along vessel section.

Gallery

We must add a gallery for some of the images that are created with VessMorphoVis.

Color interpolation function

To minimize the dependencies, we would like to integrate a function to interpolate colors for a certain range given three colors only.

3D rendering

Add a new direction for rendering the datasets from a 3d camera.

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.