Skip to main content

About

This repository contains the source code, data and figures made available for the article Blob-B-Gone: a lightweight framework for removing blob artifacts from 2D/3D MINFLUX single-particle tracking data published in Frontiers in Bioinformatics.

Blob-B-Gone

Basic Usage

from blobBgone import blobBgone

BBEG = blobBgone.from_npy('path/to/dir/')        # <- from files
BBEG = blobBgone.from_pointCloud(Dict[int,np.ndarray])  # <- from point cloud

BBEG.run()                                              # <- run the algorithm

blob_IDs = BBEG.blob_IDs()                              # <- get the blob IDs
free_IDs = BBEG.free_IDs()                              # <- get the free IDs

BBEG.plot_PCA()                                         # <- plot the PCA

Advanced Usage

from blobBgone import blobBgone

# create an instance of the blobBgone class #

# create a dictionary with the custom weights
custom_weights_2D = {MAX_DIST: float, CV_AREA:float, SPHE:float, ELLI:float, CV_DENSITY:float}
custom_weights_3D = {MAX_DIST: float, CV_VOL:float, SPHE:float, ELLI:float, CV_DENSITY:float}

# set custom weights depending on the dimensionality of your data
BBEG.custom_weights = custom_weights_2D/custom_weights_3D 

Installation

Via pip

pip install blobBgone

From source

git clone
pip install .

Python Environment

To run the notebooks found within this repository, you may need to create a conda environment with the required dependencies. The dev_env.yml file contains the necessary dependencies to run the code.

Requirements: miniconda or anaconda installed. Dont forget that you can "skip registration" even when installing anaconda don't get confused by the dark pattern they put up.

Create the environment

Open a terminal or anaconda prompt and navigate to the root of the repository. Then run the following command:

conda env create -f dev_env.yml

After that you can activate the environment with:

conda activate BBEG

Examples

The notebooks folder contains a series of Jupyter notebooks that demonstrate the use of and explain the logic behind the blobBgone package.

Repository Structure

The code is organized in a Python package called blobBgone and the data used in the article is available in the Example_Data folder. The figures appearing in the main text are available in the Figures folder.

C:.
├───blobBgone
│   └───__pycache__
├───blobBgone.egg-info
├───build
│   ├───bdist.win-amd64
│   └───lib
│       └───blobBgone
├───dist
├───Example_Data
│   ├───Additional_MFX_Data
│   │   ├───Labelled_Data
│   │   │   ├───blob
│   │   │   └───free
│   │   └───Labelled_Thumbnails
│   │       ├───blob
│   │       └───free
│   ├───MINFLUX Data
│   │   ├───Blob_GQ23nm_2D_Tracks
│   │   ├───Blob_GQ23nm_3D_Tracks
│   │   └───MINFLUX Tracking Sequences
│   └───Simulation
│       ├───2D_Mix_dynamicSTD
│       └───3D_Mix_dynamicSTD
├───Figures
│   ├───In Paper
│   │   ├───Main Text
│   │   └───Supplementary
│   └───Raw
│       ├───Additional
│       └───Initial
├───notebooks
└───__pycache__

Metadata

Release files for blobBgone 0.2.1

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

Source distribution (sdist)

Source distribution for blobBgone 0.2.1
File Size Uploaded Provenance Actions
blobbgone-0.2.1.tar.gz 16.1 kB Without provenance Details for blobbgone-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for blobBgone 0.2.1
File Interpreter ABI Platform Actions
blobBgone-0.2.1-py3-none-any.whl Python 3 none any Details for blobBgone-0.2.1-py3-none-any.whl

Total release size: 32.3 kB

Release files / blobbgone-0.2.1.tar.gz

Download URL blobbgone-0.2.1.tar.gz
Size 16.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6912baa8c082d1316ded30dda240d7cfb48c96c897c30e6c1757d69621f436b0
BLAKE2b-256 checksum
How to use checksums
8ed60b5d323d49608cdd8f4b7f6bc4dd7b093e69b72296a4561e023e4a4c3325
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / blobBgone-0.2.1-py3-none-any.whl

Download URL blobBgone-0.2.1-py3-none-any.whl
Size 16.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
90825d88e9bc0abd08b97839bf83fb0c369ca445565e4661c5962554d7544972
BLAKE2b-256 checksum
How to use checksums
c5983ce969c1f6204c57a3898a1c8d663412293f4e08da8aa765793a728499bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Security for blobBgone 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files No provenance

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