Giter Site home page Giter Site logo

bio2byte / bio2byte-peptidebuilder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from clauswilke/peptidebuilder

0.0 0.0 0.0 1.23 MB

A simple Python library to generate model peptides (incl. capping groups and modified residues)

License: MIT License

Python 99.81% Makefile 0.19%

bio2byte-peptidebuilder's Introduction

Bio2byte :: PeptideBuilder

This repository is a fork of PeptideBuilder: A simple Python library to generate model peptides by Matthew Z. Tien, Dariya K. Sydykova, Austin G. Meyer, and Claus O. Wilke.

Installation

You can install bio2byte-peptidebuilder directly from GitHub:

# Create a virtual environment (optional)
python -m venv peptidebuilder
source peptidebuilder/bin/activate

# Install directly from GitHub
pip install git+https://github.com/Bio2Byte/bio2byte-peptidebuilder

Usage

A simple example is shown below. Other examples can be found in the examples/ folder.

# Import the library
from Bio.PDB import PDBIO
import bio2byte.PeptideBuilder as PeptideBuilder
from bio2byte.PeptideBuilder import Geometry

# Dihedral angles for an alpha-helix
helix_phipsi = (-60., -40.)

# Sequence (case insensitive)
sequence = "LYS-GLY-GLU-ARG-GLN-SEP-ALA-VAL-ASP-ILE-ASP".split("-")

# Build an alpha-helical peptide with N-terminal acetyl and
# C-terminal N-methyl capping groups
structure = PeptideBuilder.initialize_ACE()
for res in sequence:
    geo = Geometry.geometry(res)
    geo.phi, geo.psi_im1 = helix_phipsi
    PeptideBuilder.add_residue(structure, geo)
PeptideBuilder.add_terminal_NME(structure)

# Write to PDB file
pdbwriter = PDBIO()
pdbwriter.set_structure(structure)
pdbwriter.save("peptide.pdb")

Added features

Version 1.2.0

  • Include new residue geometries
    • SEP (phosphoserine)
    • TPO (phosphothreonine)
    • PTR (phosphotyrosine)
  • Include new initialization/termination residues
    • ACE (N-terminal acetyl group)
    • NME (C-terminal N-methyl group)
    • NH2 (C-terminal amide group)
  • Allow three-letter residue names in geometry funtion
  • Allow alternative residue names for protonation states:
    • ASH (neutral aspartatic acid)
    • GLH (neutral glutamic acis)
    • HIP (protonated histidine)
    • S1P (protonated phosphoserine, net charge = -1)
    • T1P (protonated phosphothreonine, net charge = -1)
    • Y1P (protonated phosphotyrosine, net charge = -1)

Misc

The software is provided to you under the MIT license (see file LICENSE.txt). The most up-to-date version of this software is available at https://github.com/clauswilke/PeptideBuilder.

To test whether your installation works properly, run pytest in the top-level project folder.

Reference

Please cite the original package:

M. Z. Tien, D. K. Sydykova, A. G. Meyer, C. O. Wilke (2013). PeptideBuilder: A simple Python library to generate model peptides. PeerJ 1:e80.

bio2byte-peptidebuilder's People

Contributors

clauswilke avatar mtien avatar aethertier avatar seanny123 avatar benjaminjack avatar hongbo-zhu-cn avatar avanteijlingen 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.