Skip to main content

Processing plug microfluidics data

Project description

Plugy: Python module for plug microfluidics data analysis

pipeline status

Issues

Feedback, questions, bug reports are welcome: https://github.com/saezlab/plugy/issues

Installation

Imports & Setup

You can now install plugy as a package using pip in your conda environment. To install pip in your conda environment run the following lines on your bash or conda prompt.

# Activate your conda environment replacing 'YOUR_ENVIRONMENT' with the name of your environment
conda activate YOUR_ENVIRONMENT

# Install pip git support, such that plugy can be directly installed from gitlab
conda install pip git

# Install plugy into your environment
pip install git+https://github.com/saezlab/plugy@master

# If you want to use the latest development version use this instead
pip install --force-reinstall git+https://github.com/saezlab/plugy@dev

Quick start

This notebook will show you how to run a plugy based analysis of a drug combination Braille display microfluidics experiment.

First, make sure your Python shell is running in the working directory where (or in its subdirectories) you have the data and where you want to save the results.

The simplest workflow, which is sufficient most of the times, looks like this:

import plugy
exp = plugy.PlugExperiment()
exp.main()

Further settings, parameters can be passed to PlugExperiment:

import plugy
exp = plugy.PlugExperiment(
    peak_min_threshold = 0.02,
    barcoding_param = {
        'times': (.2, 4.0),
    },
    heatmap_second_scale = 'pos-ctrl',
)
exp.main()

If you want to interact with the data use the contents of the exp object. It contains all the plug, pmt, channel and sequence data that was used in the analysis. For example, a pandas.DataFrame containing the statistics for each sample:

exp.sample_statistics

Tutorial

You can find more examples in the plugy guide: https://github.com/saezlab/plugy/blob/master/notebooks/plugy_guide.ipynb

Development history

https://github.com/saezlab/plugy/blob/master/NEWS.md

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

plugy-1.1.0.tar.gz (76.0 kB view details)

Uploaded Source

Built Distribution

plugy-1.1.0-py3-none-any.whl (83.6 kB view details)

Uploaded Python 3

File details

Details for the file plugy-1.1.0.tar.gz.

File metadata

  • Download URL: plugy-1.1.0.tar.gz
  • Upload date:
  • Size: 76.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/32.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.62.3 importlib-metadata/4.9.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.10.7

File hashes

Hashes for plugy-1.1.0.tar.gz
Algorithm Hash digest
SHA256 94e62bc0ba5ea65da5de620835e052c95886b2c26cb42c6d82d58076639b775c
MD5 b3adce396c6a24184c61059ce243c6ef
BLAKE2b-256 9221d2cc4c979af103ebcb1361e3c8cbd0194f64f9d4a56603e10c06b780fd4b

See more details on using hashes here.

File details

Details for the file plugy-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: plugy-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 83.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/32.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.62.3 importlib-metadata/4.9.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.10.7

File hashes

Hashes for plugy-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d0bbefe2512965b019ff256ada33c5c712601a2ade543c8d33cddc2d5e57eaf3
MD5 c5222dd7e332699b3c6cc33039974dd2
BLAKE2b-256 54f70a5a7f940a13e30d3ca797d52069e8c025e03003e18c19eebdfe3c93ee6c

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