Code Monkey home page Code Monkey logo

pymissense's Introduction

DOI

pymissense

PyMissense generates the pathogenicity plot and modified pdb as shown in the AlphaMissense paper for custom proteins.

What it does

AlphaMissense allows you to identify regions in your amino acid chain that are critical for protein function. This script does two things:

  1. It generates a plot similar to Figure 3D of the AlphaMissense paper

  2. It generates a modified PDB file where the temperature factor (bfactor) is replaced by the pathogenicity predicted by AlphaMissense, allowing the effect to be visualised with Chimerax, as in Figure 3E of the paper:

How to install

pip install pymissense

How to use it

General usage is:

usage: pymissense[-h] [--tsv TSV] [--pdbpath PDBPATH] [--maxacid MAXACID] uniprot_id output_path

AlphaMissense plot and pdb generator

positional arguments:
  uniprot_id         UNIPROT ID
  output_path        Output folder

options:
  -h, --help         show this help message and exit
  --tsv TSV          You can provide the path to the tsv file if you want to skip the download. (default: None)
  --pdbpath PDBPATH  If defined, it will write the pathogenicity as bfactor in that PDB. If its not defined or not existing it will instead download the alphafold predicted PDB (default: None)
  --maxacid MAXACID  Maximum squence number to use in the plot. (default: None)

You can give the optional argument --pdbpath if you want to use an experimental PDB, otherwise it will download the alphafold predicted PDB instead. With --tsv you can provide the decompressed AlphaMissense database, so that pymissense does not need to download it.

For example, to reproduce Figure 3D (the middle one) and generate the PDB shown in Figure 3E do:

wget https://files.rcsb.org/download/7UPI.pdb
pymissense Q9UQ13 out --maxacid 200 --pdbpath 7upi.pdb 

Note that only the first 200 amino acids are shown in the plots and the pathogenicity is shown with the experimental PDB 7upi.

Contributions

This script was developed in collaboration with Tobias Raisch

pymissense's People

Contributors

thorstenwagner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pymissense's Issues

Gradio online app

Just an idea: apparently it can be made into an online Gradio app to be hosted e.g. on HuggingFace.

Cant find chain

Hi there,
thanks for the script! I am using to generate pdb with missense mutations. It works except for this:

pymissense O95477 abaca1 --maxacid 2224 --pdbpath 7tc0.pdb --tsv /tmp/alpha.tsv

Cant find chain for O95477 in 7tc0.pdb
The pdb is from rcsb. Using --pdbpath 7TC0 it works. The chain is present and I tried also to keep only ATOM lines.

BTW, is it possible to get the tsv or the matrix used to generate the heatmap plot? To post process the data.

Best

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.