Code Monkey home page Code Monkey logo

neoseq_wdl's Introduction

HLA Binding Prediction Module

This standalone module was developed in the context of a neoantigen identification pipeline for the Immunogenomics group from Leiden University Medical Center.

Options

  -h --help           Show options.
  --version           Show version.
  -s <size(s)>        List of length(s) for the sub-peptides to be generated and have binding affinity predicted.
  -f <file>           Three column file containing var ID, WT peptide (wild type) and MUT peptide (mutant).
  -d <path/to/db>     Path to database.
  -b <HLA(s)>         HLA alleles for the binding prediction step.
  -o <output_dir>     Output folder where files and sub-folders will be created.
  -n <sample_name>    Sample name. Will be used in the file names.

Command Example

binding_prediction.py -f long_peps.txt -s 8,9 -d /path/to/db -b A*02:01,hla-a0101 -o /path/out/dir -n Sample_X

Setup and Testing

1- (Optional) Create & activate conda environment with python 3.6 and docopt:

conda create -n <ENV_NAME_HERE> python=3.6 docopt

conda activate <ENV_NAME_HERE> OR source activate <ENV_NAME_HERE>

2- Setup modified mhctools:

pip install git+https://github.com/Amfgcp/mhctools

NOTE: mhctools requires most of the binding predictors to be installed locally (see: https://pypi.org/project/mhctools/).

3- Clone this repository:

git clone https://github.com/Amfgcp/NeoSeq_WDL.git

4- Create output folder, e.g.:

mkdir test-ouput

5- Run example

python neoseq_wdl/scripts/binding-prediction/binding_prediction.py -n 1207.test -f neoseq_wdl/scripts/binding-prediction/1207.test.txt -s 8 -d /exports/path-demiranda/usr/amfgcp/databases/ncbi/v5/generated/swissprot_taxid_9606/swissprot_taxid_9606 -b HLA-C02:02 -o test-output

6- Expected output folder structure

test-output/
  ./25aa
    1207.test_25aa_swissprot_taxid_9606.fsa
  ./51aa
    1207.test_2massSpec_swissprot_taxid_9606.fsa
  ./bind-pred
    1207.test_binding_prediction_swissprot_taxid_9606.txt
  ./blast
    1207.test_blast_output_8mers_swissprot_taxid_9606.xml
    1207.test_peptides_to_blast_8mers_swissprot_taxid_9606.fsa
  ./logs
    bind-pred_1207.test_12-08-2019.log

neoseq_wdl's People

Contributors

amfgcp avatar druano avatar

Watchers

James Cloos avatar  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.