Giter Site home page Giter Site logo

yuanx749 / bcell Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 1.07 MB

A framework for linear B-cell epitope prediction and classification. (ECML PKDD 2023)

Home Page: https://yuanx749.github.io/bcell/

License: MIT License

Python 100.00%
pytorch research

bcell's Introduction

BeeTLe

A deep learning framework for linear B-cell epitope prediction and antibody type-specific epitope classification using Transformer and LSTM encoders.

arXiv | ECML PKDD 2023

Installation

Linux is preferred. GPU is not required.

  • Clone this repo and navigate to the repo folder.

  • Install with pip, preferably in a virtual environment:

    pip install -r requirements.txt
  • Alternatively, to be more specific, use mamba in Linux:

    mamba env create -p ./envs -f environment.yml
    mamba activate ./envs

Usage

Run command like below. It takes a few seconds to predict 10000 peptides.

python cli.py -i input.fasta -o output.csv

To show help, run python cli.py -h. The input is a FASTA file of peptides. The output is a table with following columns:

  • identifier: FASTA header.
  • sequence: FASTA sequence.
  • score: Probability of being epitope.
  • epitope: {0, 1}. 1 for epitope (score > 0.5).
  • Ig: {A, E, M}. The antibody most probably binds to in these three types.

Data

Follow the notebook data/dataset.py to generate datasets, in which redundancy and false negatives are reduced. The raw data is on figshare.

Development

The code is designed to be reusable and extensible. It may be adopted in other peptide classification tasks. Some useful components are:

  • Loss functions: logit-adjusted, focal; sigmoid, softmax.
  • LSTM (packed variable length input), Transformer encoder, attention.
  • Amino acid encoder.

bcell's People

Contributors

yuanx749 avatar

Watchers

Kostas Georgiou avatar

Forkers

hfsamanzoor

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.