Skip to main content

3D cell shape analysis using geometric deep learning on point clouds

Project description

Python Version PyPI Downloads Wheel Development Status Tests Coverage Status Code style: black

Cellshape logo by Matt De Vries


Cellshape-cloud is an easy-to-use tool to analyse the shapes of cells using deep learning and, in particular, graph-neural networks. The tool provides the ability to train popular graph-based autoencoders on point cloud data of 2D and 3D single cell masks as well as providing pre-trained networks for inference.

To install

pip install cellshape-cloud

Usage

import torch
from cellshape_cloud import CloudAutoEncoder

model = CloudAutoEncoder(num_features=128, 
                         k=20,
                         encoder_type="dgcnn",
                         decoder_type="foldingnet")

points = torch.randn(1, 2048, 3)

recon, features = model(points)

Parameters

  • num_features: int.
    The size of the latent space of the autoencoder. If you have rectangular images, make sure your image size is the maximum of the width and height
  • k: int.
    The number of neightbours to use in the k-nearest-neighbours graph construction.
  • encoder_type: str.
    The type of encoder: 'foldingnet' or 'dgcnn'
  • decoder_type: str.
    The type of decoder: 'foldingnet' or 'dgcnn'

For developers

  • Fork the repository
  • Clone your fork
git clone https://github.com/USERNAME/cellshape-cloud 
  • Install an editable version (-e) with the development requirements (dev)
cd cellshape-cloud
pip install -e .[dev] 
  • To install pre-commit hooks to ensure formatting is correct:
pre-commit install
  • To release a new version:

Firstly, update the version with bump2version (bump2version patch, bump2version minor or bump2version major). This will increment the package version (to a release candidate - e.g. 0.0.1rc0) and tag the commit. Push this tag to GitHub to run the deployment workflow:

git push --follow-tags

Once the release candidate has been tested, the release version can be created with:

bump2version release

References

[1] An Tao, 'Unsupervised Point Cloud Reconstruction for Classific Feature Learning', GitHub Repo, 2020

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cellshape-cloud-0.0.7.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

cellshape_cloud-0.0.7-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file cellshape-cloud-0.0.7.tar.gz.

File metadata

  • Download URL: cellshape-cloud-0.0.7.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for cellshape-cloud-0.0.7.tar.gz
Algorithm Hash digest
SHA256 c55ae50a675184378d97e6eebe2a09af7cea6b558c7e07779eb722fa0a5b53b1
MD5 2dce0b6ae9567f2ab7c0e2990774942a
BLAKE2b-256 554f353be2ed8ce8ee9fe4c6a9765464351959bdb43f5884794e8807ba8ab6c3

See more details on using hashes here.

File details

Details for the file cellshape_cloud-0.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for cellshape_cloud-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c7dbfe5d0de8b5f68770e01e45933e9f29c5b7b590f6839ce7763a9695f0bf33
MD5 02529a9071a40baa520756b72640bfb6
BLAKE2b-256 af56cc6226d6acc7b1e6be5db08a66adc1410f51e30493c4a37bd3b82c501bb2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page