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 morphology 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 morphology images for visualisation. More details in the demo notebook.

Label evolution

Installation

pip install bin2cell

For b2c.stardist() to work, StarDist needs to be installed. Bin2cell comes with a dependency group to handle this:

pip install bin2cell[stardist]

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 (also viewable on GitHub). Function docstrings are available on ReadTheDocs. An additional notebook comparing destriped and non-destriped expression data can be accessed here.

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

Using bin2cell output from R

Write out your objects as .h5ads and use schard to read them.

Citation

Please cite our paper.

@article{polanski2024bin2cell,
  title={Bin2cell reconstructs cells from high resolution Visium HD data},
  author={Pola{\'n}ski, Krzysztof and Bartolom{\'e}-Casado, Raquel and Sarropoulos, Ioannis and Xu, Chuan and England, Nick and Jahnsen, Frode L and Teichmann, Sarah A and Yayon, Nadav},
  journal={Bioinformatics},
  volume={40},
  number={9},
  pages={btae546},
  year={2024},
  publisher={Oxford University Press}
}

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.4.tar.gz (46.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bin2cell-0.3.4-py3-none-any.whl (47.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bin2cell-0.3.4.tar.gz
Algorithm Hash digest
SHA256 c035a8dd591425d334dbf37cd7a60ed1f1a9f843e02f1979d40fd364f70f1151
MD5 b63b67ff213e6a26f5fe8cf029d58f08
BLAKE2b-256 b6c76b29ed30866846d931179e4b753f0d503a123ab332ce268ab99c2ee17ad4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for bin2cell-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 179fda830e6baf56e46135a79a1b6cea1b0d2606d60bd54b8c09edcb9566ea77
MD5 c997f4fa8fad56eb84777b93850783dd
BLAKE2b-256 17558ada439254f6a2af78ebf8a7b36317e0ea493c249ebbde2899f26db7468c

See more details on using hashes here.

Supported by

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