GithubHelp home page GithubHelp logo

pariswu1988 / padua Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mfitzp/padua

0.0 2.0 0.0 2.04 MB

Proteomic Data Analysis with Python (pandas, scikit-learn, numpy, scipy)

License: BSD 2-Clause "Simplified" License

Python 100.00%

padua's Introduction

PaDuA

A Python package for Proteomic Data Analysis, offering processing and analysis of the output of proteomics software MaxQuant.

Installation

PaDuA is available via the Python package index at PyPi and can be installed in the usual way with:

pip install padua

Once installed the package is available for import using:

import padua

The package is organised into multiple submodules for different purposes, eg.

  1. io for reading and writing both MaxQuant and Perseus format files (input/output)
  2. filters for filtering data by quality and features
  3. process incorporating experimental design, labels to index, expand-side-table (Perseus) and more
  4. normalization for performing normalisation methods, e.g. remove column median
  5. annotations adding annotation metadata for quantified proteins
  6. analysis performing simple analyses, e.g. column correlations
  7. plots standard plot outputs for overviews of data

What is it for?

The goal is to provide a simple scripting approach to replicate many of the common steps for interacting with the output of MaxQuant. Many of the steps implemented are based on similar steps used in the MaxQuant sister software Perseus. While currently Perseus has more features, it has stability issues with the larger datasets we are currently using. Having the processing steps implemented in Python allows for simple processing workflow scripts to be created and re-used.

Examples

An example Phosphoproteomic label-free-quantification workflow would be as follows:

import padua
df = padua.io.read_maxquant('Phospho (STY)Sites.txt')

df = padua.filter.filter_localization_probability(df)

df = padua.filter.remove_reverse(df)
df = padua.filter.remove_only_identified_by_site(df)
df = padua.filter.remove_potential_contaminants(df)

# Use standard Pandas dataframe manipulations to set an index
df.set_index('Proteins', inplace=True)
df = df.filter(regex='Intensity ')

df = df.process.expand_side_table(df)

# Remove the multiplicity column
df = df.filter(regex='Intensity ')

df = padua.process.apply_experimental_design(df, 'experimentalDesignTable.txt')

# The result of this step will be a multilevel index Class, Replicate
# built by matching sample labels using regex
indices = [
    ('Class': '^(.*)_',
    ('Replicate': '_(\d)', 
]
df = padua.process.build_index_from_labels(df, indices)

Future

Provided functions are based on our current requirements, but will be expanded in future.

License

PaDuA is open source software and available under the BSD 2-clause (Simplified) license.

padua's People

Contributors

mfitzp avatar hwpvdtoorn avatar annaressa avatar

Watchers

James Cloos avatar  avatar

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.