Giter Club home page Giter Club logo

pepsyn's Introduction

pepsyn

Peptide library design

Installation

pepsyn is developed for Python 3.6+ and requires biopython. The CLI uses click.

pip install pepsyn

or for the latest development version

git clone https://github.com/lasersonlab/pepsyn.git
cd pepsyn
python setup.py install

To run the tests

py.test

Usage

pepsyn can be used as a library, but also comes with a CLI.

The main CLI command is pepsyn and it can read from stdin and stdout by specifying - as the input or output. Input and output files are FASTA formatted.

$ pepsyn -h
Usage: pepsyn [OPTIONS] COMMAND [ARGS]...

  pepsyn -- peptide synthesis design

Options:
  -h, --help  Show this message and exit.

Commands:
  prefix      add a prefix to each sequence
  recodesite  remove site from each sequence's CDS by...
  revtrans    reverse translate amino acid sequences into...
  stats       compute some sequence statistics
  suffix      add a suffix to each sequence
  tile        tile a set of sequences

For example, to tile a set of sequences, use the pepsyn tile command. Each subcommand has its own help message with relevant options.

$ pepsyn tile -h
Usage: pepsyn tile [OPTIONS] INPUT OUTPUT

  tile a set of sequences

Options:
  -l, --length INTEGER   Length of output oligos
  -p, --overlap INTEGER  Overlap of oligos
  -h, --help             Show this message and exit.

Commands can be piped into each other. (Note: stdin and stdout are signified with -.)

cat pepsyn/tests/proteins.fasta \
    | pepsyn tile -l 10 -p 3 - - \
    | pepsyn revtrans - - \
    | pepsyn prefix -p ACGGG - - \
    | pepsyn suffix -s TGCTG - - \
    | pepsyn recodesite --site EcoRI --clip-left 5 --clip-right 5 - -

pepsyn's People

Contributors

laserson avatar

Watchers

James Cloos avatar Viswanadham (Vish) Sridhara 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.