Skip to main content

Python module for single-molecule image processing.

Project description

rSNAPed

rSNAPed : RNA Sequence to NAscent Protein Experiment Designer.

Authors: Luis U. Aguilera, William Raymond, Brooke Silagy, Brian Munsky.

License: MIT

:warning: This software is in a very early and experimental stage: at this point, it is intended to be used for testing and debugging purposes!

Description

This library is intended to quantify single-molecule gene expression experiments. Specifically, the code uses Cellpose to segment the cell in the image. Then, it uses Trackpy to detect spots inside the mask. Finally, it uses the spot position to quantify the spot intensity. The code also generates simulated data using rSNAPsim. If you use rSNAPed, please make sure you properly cite cellpose, trackpy and rSNAPsim.

Usage

  • Tracking for single-molecule translation (RNA + nascent protein) spots.
  • Tracking for single-molecule RNA spots.
  • RNA detection spots for FISH images.
  • Simulating the single-molecule translation for any gene.
  • Design of single-molecule gene expression experiments.

Simulating translation

The code is intended to simulated single-molecule translation. A video with the simulated cell and a data frame containing spot and intensity positions are generated. This simulation can be used to train new algorithms or for teaching new students.

Local installation using PIP

  • To create a virtual environment using:
    conda create -n rsnaped_env python=3.8.5 -y
    source activate rsnaped_env
  • Open the terminal and use pip for the installation:
    pip install rsnaped

Local installation from the Github repository

  • To create a virtual environment navigate to the location of the requirements file, and use:
    conda create -n rsnaped_env python=3.8.5 -y
    source activate rsnaped_env
  • To install GPU for Cellpose (Optional step). Only for Linux and Windows users check the specific version for your computer on this link :
    conda install pytorch cudatoolkit=10.2 -c pytorch -y
  • To install CPU for Cellpose (Optional step). Only for Mac users check the specific version for your computer on this link :
    conda install pytorch -c pytorch
  • To include the rest of requirements use:
    pip install -r requirements.txt

Additional steps to deactivate or remove the environment from the computer:

  • To deactivate the environment use
    conda deactivate
  • To remove the environment use:
    conda env remove -n rsnaped_env

References for main dependencies

  • rSNAPsim: Aguilera, Luis U., et al. "Computational design and interpretation of single-RNA translation experiments." PLoS computational biology 15.10 (2019): e1007425.

  • Trackpy: Dan Allan, et al. (2019, October 16). soft-matter/trackpy: Trackpy v0.4.2 (Version v0.4.2). Zenodo. http://doi.org/10.5281/zenodo.3492186

  • Cellpose: Stringer, Carsen, et al. "Cellpose: a generalist algorithm for cellular segmentation." Nature Methods 18.1 (2021): 100-106.

Licenses for dependencies

For a complete list containing the complete licenses for the dependencies, check file: Licenses_Dependencies.txt.

  • License for rSNAPsim: MIT. Copyright © 2018 Dr. Luis Aguilera, William Raymond
  • License for Trackpy: BSD-3-Clause. Copyright © 2013-2014 trackpy contributors https://github.com/soft-matter/trackpy. All rights reserved.
  • License for Cellpose: BSD 3-Clause. Copyright © 2020 Howard Hughes Medical Institute

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

rsnaped-0.0.9.tar.gz (42.5 kB view details)

Uploaded Source

Built Distribution

rsnaped-0.0.9-py3-none-any.whl (40.4 kB view details)

Uploaded Python 3

File details

Details for the file rsnaped-0.0.9.tar.gz.

File metadata

  • Download URL: rsnaped-0.0.9.tar.gz
  • Upload date:
  • Size: 42.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.2.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

File hashes

Hashes for rsnaped-0.0.9.tar.gz
Algorithm Hash digest
SHA256 327c284817d553171f774e2f911f34058bb3fb29cc23b9f5223c952b431445d2
MD5 e2bc57ca8d7fee2304f1b9c1ec85f335
BLAKE2b-256 a76803394b374b6933048cbc97d9a1d8b177f4561b7b38b3b74e1e59af3bd1e5

See more details on using hashes here.

File details

Details for the file rsnaped-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: rsnaped-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 40.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.2.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

File hashes

Hashes for rsnaped-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 f518f4093b177fbf1321bd7d43c14ef679af9c8a28df11dbcacf2048c96a3d29
MD5 567af069ee8325ffa279f13a340f56fc
BLAKE2b-256 03409fecea8907ecbe02e7ee15e401653ab732e6c8a44b0c3ea014a97ea2c6c4

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