Skip to main content

Semi-supervised learning for peptide detection by pretrained models

Project description


PyPI version tests Documentation Status Built with Spacemacs

Fast and flexible semi-supervised learning for peptide detection.

mokapot is fundamentally a Python implementation of the semi-supervised learning algorithm first introduced by Percolator. We developed mokapot to add additional flexibility to our analyses, whether to try something experimental---such as swapping Percolator's linear support vector machine classifier for a non-linear, gradient boosting classifier---or to train a joint model across experiments while retaining valid, per-experiment confidence estimates. We designed mokapot to be extensible and support the analysis of additional types of proteomics data, such as cross-linked peptides from cross-linking mass spectrometry experiments. mokapot offers basic functionality from the command line, but using mokapot as a Python package unlocks maximum flexibility.

For more information, check out our documentation.

Installation

mokapot requires Python 3.6+ and can be installed with pip:

$ pip3 install mokapot

Additionally, you can install the development version directly from GitHub:

$ pip3 install git+git://github.com/wfondrie/mokapot

Basic Usage

Before you can use mokapot, you need PSMs assigned by a search engine available in the Percolator tab-delimited file format (often referred to as the Percolator input, or "PIN", file format).

Simple mokapot analyses can be performed at the command line:

$ mokapot psms.pin

Alternatively, the Python API can be used to perform analyses in the Python interpreter and affords greater flexibility:

>>> import mokapot
>>> psms = mokapot.read_pin("psms.pin")
>>> results, models = mokapot.brew(psms)
>>> results.to_txt()

Check out our documentation for more details and examples of mokapot in action.

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

mokapot-0.2.2.tar.gz (38.1 MB view hashes)

Uploaded Source

Built Distribution

mokapot-0.2.2-py3-none-any.whl (41.5 kB view hashes)

Uploaded Python 3

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