Tool for converting Alphafold tar shards to a database of DSSP secondary structure information.
Project description
AlphaDSSP
DSSP Analysis for Alphafold Secondary Structure Parsing
This tool generates DSSP secondary structure information and allows masks to be generated that identify specific regions of a protein by secondary structure and confidence. It can be useful when searching for sequence motifs; for example, if you're searching sequences for a short linear motif that must exist in disordered strands (rather than, say, a helix or a beta-strand), you can use AlphaDSSP to make a boolean mask that shows you everywhere in the sequence that cannot contain your motif due to incompatible secondary structure.
Alphafold provides data as tar shards for organisms by TaxID, which you can download by following the instructions at https://github.com/google-deepmind/alphafold/blob/main/afdb/README.md To use this tool, you must have a directory containing the tar shards for your organism of interest.
Usage
- Install this tool from PyPI by running the command
pip install alphadssp - Import the main function into your script as
from alphadssp import generate_dssp - Use the main function either with default arguments or your own:
excluded_results = generate_dssp(tar_dir = None, dssp_executable="/usr/bin/dssp", forbidden_codes = ("H","B","E","G","I","T"), plddt_thres=70)
dssp_executable is the path to your local installation of the DSSP program, which generally comes with BioPython
forbidden_codes refers to a tuple of DSSP single-letter codes for secondary structures that you want to mask out. For example, if you want to find everything that isn't a disordered strand, this is a tuple of all other non-disordered secondary structure codes.
plddt_thres is the pLDDT confidence threshold required for a predicted forbidden DSSP secondary structure to contribute to the mask of forbidden residues
The output is a dictionary, excluded_results, where each key is a base file name (e.g. AF-A0A023HHL0-F1-model_v4). The dict value is a tuple of (mask, dssp_str), where mask is a boolean mask of forbidden areas of the sequence containing confidently disallowed secondary structures, and dssp_str is a string of DSSP letter codes corresponding to the protein sequence.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file AlphaDSSP-0.5.1.tar.gz.
File metadata
- Download URL: AlphaDSSP-0.5.1.tar.gz
- Upload date:
- Size: 57.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c35df6c7b4865e55e663c9a274d2f13aa411c6bce2a775201bd813b82126bad7
|
|
| MD5 |
77455455ec2d2daf8eea748446606ef6
|
|
| BLAKE2b-256 |
6c8c3512d0d0e6fa1a423b140540a446c53b5c06aefd6d2d100aad7b36733c18
|
File details
Details for the file AlphaDSSP-0.5.1-py3-none-any.whl.
File metadata
- Download URL: AlphaDSSP-0.5.1-py3-none-any.whl
- Upload date:
- Size: 62.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
905bf08962b77ba224eeec6f5fd48fcd64ff42d7b58e1d7aff4dc97c561b7c63
|
|
| MD5 |
120c4f41984b23fdaa19780e8de06847
|
|
| BLAKE2b-256 |
f363b84ccff0e733dd8748154b5e563d82fb1684e6dd01830967bd5e0e3b3ef7
|