Skip to main content

BOMS : Cell Segmentation method for Spatial Transcriptomics

BOMS Overview

BOMS is a tool for cell segmentation in fluorescent in-situ hybridization (FISH) based Spatial Transcriptomics datasets. It takes as input the gene locations and labels. It assumes that a cell body is homogenous in its transcriptional signature and uses the similarity of these neighborhoods to cluster them together as one cell. The method can also incorporate the flows obtained from Cellpose Segmentation on DAPI/Cell Membrane channels to improve its cell segmentation.

Installation

The package requires Python > 3.9. The package can be installed using pip as follows:

pip install boms

Usage

The data for the method is provided in the form of three numpy arrays : x representing the x coordinates of the mRNA spots, y representing the y coordinates of the mRNA spots and g representing the labels of the mRNA spots. The cell segmentation can be performed as follows:

from boms import run_boms

"""
:param epochs: Number of iterations for the BOMS algorithm. Recommendation: 30
:param h_s: Spatial Bandwidth. Recommendation: Roughly equal to the radius of the cell body.
:param h_r: Range Bandwidth. Recommendation: 0.3 - 0.5
:param K: Number of Nearest Neighbors to form the Neighborhood Gene Expression Profile. Recommendation: 30

:return modes: N x (2 + no. of genes) array containing the final modes.
:return seg: N x 1 array containing the final segmentation.
"""

modes, seg = run_boms(x, y, g, epochs=30, h_s=10, h_r=0.3, K=30)

Demo

A demo notebook is available to run on Google Colab - BOMS Demo

Release files for boms 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for boms 1.1.0
File Size Uploaded
boms-1.1.0.tar.gz 37.7 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for boms 1.1.0
File
boms-1.1.0-pp310-pypy310_pp73-win_amd64.whl PyPy 3.10 PyPy 3.10 7.3 Windows x86-64 Details
boms-1.1.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl PyPy 3.10 PyPy 3.10 7.3 Linux glibc 2.17+ x86-64 Details
boms-1.1.0-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl PyPy 3.10 PyPy 3.10 7.3 Linux glibc 2.17+ x86-32 Details
boms-1.1.0-pp39-pypy39_pp73-win_amd64.whl PyPy 3.9 PyPy 3.9 7.3 Windows x86-64 Details
boms-1.1.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl PyPy 3.9 PyPy 3.9 7.3 Linux glibc 2.17+ x86-64 Details
boms-1.1.0-pp39-pypy39_pp73-manylinux_2_17_i686.manylinux2014_i686.whl PyPy 3.9 PyPy 3.9 7.3 Linux glibc 2.17+ x86-32 Details
boms-1.1.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
boms-1.1.0-cp310-cp310-win32.whl CPython 3.10 CPython 3.10 Windows x86-32 Details
boms-1.1.0-cp310-cp310-musllinux_1_1_x86_64.whl CPython 3.10 CPython 3.10 Linux musl 1.1+ x86-64 Details
boms-1.1.0-cp310-cp310-musllinux_1_1_i686.whl CPython 3.10 CPython 3.10 Linux musl 1.1+ x86-32 Details
boms-1.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details
boms-1.1.0-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-32 Details
boms-1.1.0-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
boms-1.1.0-cp39-cp39-win32.whl CPython 3.9 CPython 3.9 Windows x86-32 Details
boms-1.1.0-cp39-cp39-musllinux_1_1_x86_64.whl CPython 3.9 CPython 3.9 Linux musl 1.1+ x86-64 Details
boms-1.1.0-cp39-cp39-musllinux_1_1_i686.whl CPython 3.9 CPython 3.9 Linux musl 1.1+ x86-32 Details
boms-1.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details
boms-1.1.0-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-32 Details

Total release size: 5.5 MB

Release files / boms-1.1.0.tar.gz

Download URL boms-1.1.0.tar.gz
Size 37.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c64a867233148dab9d32257e86b127793022f893321a43210ceaafa02870cd7c
BLAKE2b-256 checksum
How to use checksums
8bd6b8ddafda4791e5a07fc94128c171857cecaa6720cf2909fc3c6721ada7ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / boms-1.1.0-pp310-pypy310_pp73-win_amd64.whl

Download URL boms-1.1.0-pp310-pypy310_pp73-win_amd64.whl
Size 161.3 kB
Tags PyPy 3.10 PyPy 3.10 7.3 Windows x86-64
SHA-256 checksum
How to use checksums
7bd939f1f85b31afb1339d46b06e4c9368000ee0dbc9626510cf4bab979d7a62
BLAKE2b-256 checksum
How to use checksums
09747ebdaa0f31db6f375836d6017735c75cfbcc090878dd5b2f90783b3effb3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / boms-1.1.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL boms-1.1.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 198.1 kB
Tags Linux glibc 2.17+ x86-64 PyPy 3.10 PyPy 3.10 7.3
SHA-256 checksum
How to use checksums
2cef943b6273b5a544852c1cc05c6202eec2674a67c0f5dcb6a1dc82833c76ea
BLAKE2b-256 checksum
How to use checksums
f2aeba28685ebe9269d52b28a59b54a0b1145b47a24732db10f7fb0bd71e0f06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / boms-1.1.0-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl

Download URL boms-1.1.0-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
Size 205.4 kB
Tags Linux glibc 2.17+ x86-32 PyPy 3.10 PyPy 3.10 7.3
SHA-256 checksum
How to use checksums
625b344f5eac103911aafe092d2d0c05baad9dedecdfd323079129e442233f21
BLAKE2b-256 checksum
How to use checksums
ff57398f33f0f63267f390d087f979b0f7f2ccea4a2ba85dc5d6c6494d38e0ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / boms-1.1.0-pp39-pypy39_pp73-win_amd64.whl

Download URL boms-1.1.0-pp39-pypy39_pp73-win_amd64.whl
Size 161.4 kB
Tags PyPy 3.9 PyPy 3.9 7.3 Windows x86-64
SHA-256 checksum
How to use checksums
5a31bbd1621e8ef9bcbad8713d92d75e5f1aecbc32253f597b8b2050c2899667
BLAKE2b-256 checksum
How to use checksums
3d1469a5c8fd0c42ddb56a871c4a50d1843685fcb68c5ce20b059a1e517e8bcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / boms-1.1.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL boms-1.1.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 198.0 kB
Tags Linux glibc 2.17+ x86-64 PyPy 3.9 PyPy 3.9 7.3
SHA-256 checksum
How to use checksums
a22183d55a1d5ea7b1d99fcbf780aa22dc35482aaef3f0fd5f07a28c066e68ae
BLAKE2b-256 checksum
How to use checksums
5edce1e82e8ee558c78310f69caeb6dac7047304f62ff3f58b8de2ace200ca7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / boms-1.1.0-pp39-pypy39_pp73-manylinux_2_17_i686.manylinux2014_i686.whl

Download URL boms-1.1.0-pp39-pypy39_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
Size 205.2 kB
Tags Linux glibc 2.17+ x86-32 PyPy 3.9 PyPy 3.9 7.3
SHA-256 checksum
How to use checksums
e32cd7ea4143ffc81dd9fb4e8a1a00bb71fdcbb4e7fc5f1e24392fd67b74b02c
BLAKE2b-256 checksum
How to use checksums
01cd2a29e33349008891843806a92da780762581bb6b3eedcb8e7ba45d9ebbf6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / boms-1.1.0-cp310-cp310-win_amd64.whl

Download URL boms-1.1.0-cp310-cp310-win_amd64.whl
Size 161.1 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
b8c41cb326db94be0354ba9c86c179b2d9a9b44de726eb6f4339d472e26ba96a
BLAKE2b-256 checksum
How to use checksums
612488cca1965dc6c8fc436b6510e5239e9bb82393dd34325f56ab3ff5c96186
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / boms-1.1.0-cp310-cp310-win32.whl

Download URL boms-1.1.0-cp310-cp310-win32.whl
Size 142.2 kB
Tags CPython 3.10 Windows x86-32
SHA-256 checksum
How to use checksums
bf94f2253069c62039e36d619b7cc08b5631c33223d8465e8dce213327969eb3
BLAKE2b-256 checksum
How to use checksums
dff8005529798a3e73b134fece3b3d7a131afada3a0ee348d3459ec1663fa836
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / boms-1.1.0-cp310-cp310-musllinux_1_1_x86_64.whl

Download URL boms-1.1.0-cp310-cp310-musllinux_1_1_x86_64.whl
Size 716.5 kB
Tags CPython 3.10 Linux musl 1.1+ x86-64
SHA-256 checksum
How to use checksums
4fe99c34dc7b47e521b89cff30401bc27e52d31640acc550f47d6f54f7237e5f
BLAKE2b-256 checksum
How to use checksums
92c1c4e362a24a6fbc151e092949c98ffb690dfdce1a785af5340c248ae85496
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / boms-1.1.0-cp310-cp310-musllinux_1_1_i686.whl

Download URL boms-1.1.0-cp310-cp310-musllinux_1_1_i686.whl
Size 752.0 kB
Tags CPython 3.10 Linux musl 1.1+ x86-32
SHA-256 checksum
How to use checksums
8c80dba6394ba970bcc0ebcc0b76e1a1bd63970f5edee45c86264e1ce4569ff9
BLAKE2b-256 checksum
How to use checksums
caabda3acb1b379095d1c065bd707306b68e1a5fbc939a23a72e6788b2a443f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / boms-1.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL boms-1.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 195.7 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
f0412c6902844cc9f9097e3bb0e923ecc0681055a12574d09c2508029b9238c0
BLAKE2b-256 checksum
How to use checksums
2bc1b52496e2b65d77ce5f8f36a61aa23cba1c552f2a14ae85c6eea9bcbe31cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / boms-1.1.0-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl

Download URL boms-1.1.0-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Size 204.4 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-32
SHA-256 checksum
How to use checksums
99c0ddd5b2dd2ed0a5fc681d880c748fe4ba65f884914437ae0722b97e570c22
BLAKE2b-256 checksum
How to use checksums
9f70260e113a7d1a42240bb1bace24573be121a78e5331ddd8990c4b024d5db2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / boms-1.1.0-cp39-cp39-win_amd64.whl

Download URL boms-1.1.0-cp39-cp39-win_amd64.whl
Size 160.7 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
c014ab88477bc5b4971dfc42a4a4e0f1fde6d30e2720c79a1e727ceb1ca9a133
BLAKE2b-256 checksum
How to use checksums
31d82c8bcce347f5998ac7785842f8f9369b90412b48bd15fb0f14fc325428fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / boms-1.1.0-cp39-cp39-win32.whl

Download URL boms-1.1.0-cp39-cp39-win32.whl
Size 142.5 kB
Tags CPython 3.9 Windows x86-32
SHA-256 checksum
How to use checksums
1362650671563045ca962f64af2359a3fa3aabd3224c4ec8ae75917cd8b09719
BLAKE2b-256 checksum
How to use checksums
be5e168acb8ac65bfb289dec179d3c37e07dcee853a7cbcc909bd5389b075dda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / boms-1.1.0-cp39-cp39-musllinux_1_1_x86_64.whl

Download URL boms-1.1.0-cp39-cp39-musllinux_1_1_x86_64.whl
Size 716.5 kB
Tags CPython 3.9 Linux musl 1.1+ x86-64
SHA-256 checksum
How to use checksums
e58c8d6a4cbeb7f0e68e9d789267dd6ad48a8cfd3dd79b808a518cbadb06148f
BLAKE2b-256 checksum
How to use checksums
2fe8a24a010bd312aa74c6d70f5104d7af3e6d1ca43eae7148e6618f8887cee9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / boms-1.1.0-cp39-cp39-musllinux_1_1_i686.whl

Download URL boms-1.1.0-cp39-cp39-musllinux_1_1_i686.whl
Size 752.1 kB
Tags CPython 3.9 Linux musl 1.1+ x86-32
SHA-256 checksum
How to use checksums
84f9ed26c58f0268548415266c198dbfd5d25105ae2ca23192fee47a96f35557
BLAKE2b-256 checksum
How to use checksums
e0c96bc73e3784d83e385bc707963f7149e0f58616c5f546021e7fe34a22bd09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / boms-1.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL boms-1.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 195.9 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
f1dd9f2da1338706ab30dc4872b3ea0c1e0eb2d5813e2951c9f6b52d6250ddd6
BLAKE2b-256 checksum
How to use checksums
d842f27175d4ef3aa72a8ebd2a2ba07c699550ae901417b567632713d520506d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / boms-1.1.0-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl

Download URL boms-1.1.0-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl
Size 204.7 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-32
SHA-256 checksum
How to use checksums
90fabd9ca29560a64abae1992e8d4fc14da906bb4595be11088f22ba960cc6b9
BLAKE2b-256 checksum
How to use checksums
878fe8f80754f1c1d017f7918f4bf47adeacc7d367ed6b03f28ce9599ee25ac1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

1.1.0 This release

19 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page