Coder Social home page Coder Social logo

abs's Introduction

tuned-abs

You can try tuned-abs in Google Colab.

Requirements

The following tools should be installed:

  • HMMER (jackhmmer and esl-reformat binaries are used)
  • HH-suite (hhsearch binary is used)

In conda environment, HMMER and HH-suite can be installed with the following commands:

$ conda install bioconda::hmmer
$ conda install -c conda-forge -c bioconda hhsuite

Installation

pip3 install git+https://github.com/bogdanmagometa/abs

Usage

Note: the first use of the pipeline will cause the download of weights unless other pipelines that require the same weights have been already used.

From command line

$ python3 -m tuned_abs --help
usage: python3 -m tuned_abs <input fasta> <output pdb> [--pipeline PIPELINE]

positional arguments:
  input_fasta          Path to .fasta file with two sequences (one for each chain)
  output_pdb           Save the predicted structure to specified .pdb file

optional arguments:
  -h, --help           show this help message and exit
  --pipeline PIPELINE  Which pipeline to use. Can be one of 'Finetuned', 'Finetuned 1x5',
                       'FinetunedValid', 'FinetunedValid 1x5', 'FinetunedValidRefined',
                       'SingleSequence' (default: SingleSequence)
  --quiet              Inference in quiet mode (default: False)
$ python3 -m tuned_abs input.fasta output.pdb --pipeline 'Finetuned 1x5'

From code

from tuned_abs import Pipeline

pipeline = Pipeline.from_name('SingleSequence') # 'Finetuned', 'Finetuned 1x5', 
# 'FinetunedValid', 'FinetunedValid 1x5', 'FinetunedValidRefined', 'SingleSequence'

pdb_string = pipeline.run(
    {
        'H': 'EVQLVESGGGVVQPGRSLRLSCAASGFTFSSYGMHWVRQAPGKGLEWVAVIWYDGSNRYYADSVKGRFTISRDNSKNTLFLQMNSLRAEDTAVYYCHRNYYDSSGPFDYWGQGTLVTVSS',
        'L': 'DIQMTQSPSTLSASVGDRVTITCRASQFISRWLAWYQQKPGKAPKLLIYKASSLESGVPSRFSGSGSETHFTLTISSLQPDDVATYYCQEYTSYGRTFGQGTKVEIKRTV',
    }
)

with open('output.pdb') as f:
    f.write(pdb_string)

Visualize

You can visualize the predicted structure using Mol* website, PyMol program, ProDy package or other tools:

myfile

abs's People

Contributors

bogdanmagometa avatar

Watchers

 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.