Skip to main content

Utility package for handling peptide and protein sequences

Project description

Peptacular

Peptacular is a Python library for simulating the enzymatic digestion of protein sequences. It allows users to define custom enzymes and cleavage rules using regular expressions and to generate peptide products with varying levels of missed cleavages. The library also supports semi-enzymatic and non-enzymatic digestion.

Features

  • Custom enzyme definition using regular expressions

  • Control over the number of missed cleavages

  • Supports semi-enzymatic and non-enzymatic digestion

  • Filters peptides based on minimum and maximum length

  • Converts peptide results to a pandas DataFrame for easy analysis

  • Installation

To install Peptacular, run:

pip install peptacular

Usage

Here is a basic example of using Peptacular to digest a protein sequence with a custom enzyme:

from peptacular.protein import digest_protein, peptides_to_df

protein_sequence = 'PEPKTIDEPERPTIDE'

enzyme_regexes = (
    [('([KR])([^P])', 1)],

    [])

missed_cleavages = 1
min_len = 3
max_len = 20
non_enzymatic = False
semi_enzymatic = False

peptides = digest_protein(
    protein_sequence,
    enzyme_regexes,
    missed_cleavages,
    min_len,
    max_len,
    non_enzymatic,
    semi_enzymatic
)

peptide_df = peptides_to_df(peptides)
print(peptide_df)

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

peptacular-0.0.6.tar.gz (16.8 kB view hashes)

Uploaded Source

Built Distribution

peptacular-0.0.6-py3-none-any.whl (13.2 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