GithubHelp home page GithubHelp logo

saezlab / plugy Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 4.92 MB

Flexible processing and analysis of plug microfluidics data

License: GNU General Public License v3.0

Python 100.00%
microfluidics biological-data-analysis cell-based-assay drug-screening

plugy's Introduction

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

plugy's People

Contributors

deeenes avatar npeschke avatar

Watchers

 avatar  avatar  avatar

plugy's Issues

Workflow management

Give option to do the analysis in steps (currently all at once)

We should have this already, maybe it doesn't work, have to check

Export by condition summay table

Give summarized statistics table of drug treatments as in the table below. One table that has cycles separated, and one that averages all cycles
(almost same as #5)

Condition (drug) top list

Give a result table for ranked drug treatments, based on the chosen fold change/z-score difference (to medium control) and/or based on the chosen p-value

More plug length figures

In the QC folder, plot plug length for each drug treatment, by each cycle, and averaging all cycles

Heatmap: divergent color scale

Change heatmap colors to better distinguished between up vs down-regulation of apoptotic
signals by drug treatments vs. medium control.

  • Divergent color scale
  • Two stars for higher significance

Plot raw green signal

In the QC folder, plot green fluorescence for each drug treatment, by each cycle, and averaging all cycles

Same for the orange channel.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.