Skip to main content

Join subcellular Visium HD bins into cells

Project description

Bin2cell

Visium HD captures gene expression data at a subcellular 2um resolution. It should be possible to use this data to reconstruct cells more accurately than just using the next resolution up (8um), especially if additionally using the available high resolution morphology images.

Bin2cell proposes 2um bin to cell groupings based on segmentation, which can be done on the H&E image and/or a visualisation of the gene expression. The package also corrects for a novel technical effect in the data stemming from variable bin dimensions. The end result is an object with cells, created from grouped 2um bins assigned to the same object after segmentation, carrying spatial information and sharper H&E images for visualisation. More details in the demo notebook.

Label evolution

Installation

pip install bin2cell

Additionally, TensorFlow needs to be installed for StarDist to perform segmentation. The CPU version (installed via pip install tensorflow) should suffice for the scale of work performed here.

Usage and Documentation

Please refer to the demo notebook. Function docstrings are available on ReadTheDocs.

The repository also has notebooks comparing bin2cell output to standard 8um SpaceRanger output:

Citation

Please cite our preprint.

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

bin2cell-0.3.0.tar.gz (32.8 kB view details)

Uploaded Source

Built Distribution

bin2cell-0.3.0-py3-none-any.whl (33.8 kB view details)

Uploaded Python 3

File details

Details for the file bin2cell-0.3.0.tar.gz.

File metadata

  • Download URL: bin2cell-0.3.0.tar.gz
  • Upload date:
  • Size: 32.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for bin2cell-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b523f910f1b490f3d947554a7306c5d4a99794ad0984c2f5cc6e7cd6fadd0a9f
MD5 ac837c96d593507b053b9be620bf7633
BLAKE2b-256 385ae1e6f1eff36bab6bda99626f3cbeda9962f6109bcd07d3bcc425fabfd376

See more details on using hashes here.

File details

Details for the file bin2cell-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: bin2cell-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 33.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for bin2cell-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 82a88e0a1de654eac2b8ee3fb128728d43d5df9cb78db6dff70dfd5c61b0a972
MD5 a2d2f6aae308429192f04c9d59fa6b45
BLAKE2b-256 b9bf897f85fcd106c262018d9129a4a26ba46299f04d9b505930c64a5edeaf45

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