Code Monkey home page Code Monkey logo

pepsea's Introduction

Peptide SAR: MAFFT based API for multiple sequence alignment

API for the alignment of multiple peptide sequences represented in the HELM notation. Input sequences can contain up to 256 non-natural amino acids.

Deployment

  1. Download and install MAFFT. Proceed to the MAFFT page. In the Download and Installation section choose your system and follow the installation instructions.

    By default MAFFT is installed into the /usr/local/bin/ folder. The same path for MAFFT is specified in the local.env file. Please, edit this file if you installed MAFFT into other folder.

  2. Create Python 3.8 virtual environment and activate it:

    python3 -m venv ENV_NAME
    source ENV_NAME/bin/activate
  3. Install dependencies specified in requirements.txt:

    python3 -m pip install -r requirements.txt
  4. Run the API using uvicorn HTTP server. Execute the following command through the terminal, while you are in the root directory:

    uvicorn alignment.api:api --env-file local.env
  5. Access the API through a web-browser. Copy the address specified on the last line of the terminal, after execution of the uvicorn command(by default it is http://127.0.0.1:8000), or you can use any API testing tool (e.g. Postman: https://www.postman.com/api-platform/)

Testing

Execute the following command to run all the tests:

python -m pytest -v

Execute the following command to run a specific test:

python -m pytest tests/unit_tests/*script_name* -v

Links

For more information about MAFFT follow this link https://mafft.cbrc.jp/alignment/software/

For more information on FastAPI deployment you can refer to: https://fastapi.tiangolo.com/deployment/

For more information on uvicorn package you can refer to: https://www.uvicorn.org/

pepsea's People

Contributors

michaelturnbach 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.