Skip to main content

A lightweight tool to remove blob artifacts from 2D/3D point cloud data as produced by MINFLUX

Project description

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__

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

blobbgone-0.2.1.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

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

blobBgone-0.2.1-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file blobbgone-0.2.1.tar.gz.

File metadata

  • Download URL: blobbgone-0.2.1.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for blobbgone-0.2.1.tar.gz
Algorithm Hash digest
SHA256 6912baa8c082d1316ded30dda240d7cfb48c96c897c30e6c1757d69621f436b0
MD5 80ef1ad2720b965f4a6a5a49d477c10f
BLAKE2b-256 8ed60b5d323d49608cdd8f4b7f6bc4dd7b093e69b72296a4561e023e4a4c3325

See more details on using hashes here.

File details

Details for the file blobBgone-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: blobBgone-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 16.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for blobBgone-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 90825d88e9bc0abd08b97839bf83fb0c369ca445565e4661c5962554d7544972
MD5 9f9ca7c25075712884d09d42fb3d71aa
BLAKE2b-256 c5983ce969c1f6204c57a3898a1c8d663412293f4e08da8aa765793a728499bc

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