Processing plug microfluidics data
Project description
Plugy: Python module for plug microfluidics data analysis
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file plugy-1.0.9.tar.gz
.
File metadata
- Download URL: plugy-1.0.9.tar.gz
- Upload date:
- Size: 65.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.26.0 setuptools/57.4.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f97a8feeee4ae406bca522b4b58642bc9c2d452942a29fbf69f08f383e418d0 |
|
MD5 | 5418395d2948c0f9e3729ca0da9c6b98 |
|
BLAKE2b-256 | d1ce614bdfd752c078649dd823d093af0f777a0b92a4a6400fd4bbd1730caecc |