Skip to main content

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

  1. Install this tool from PyPI by running the command pip install alphadssp
  2. Import the main function into your script as from alphadssp import generate_dssp
  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

AlphaDSSP-0.4.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

AlphaDSSP-0.4-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file AlphaDSSP-0.4.tar.gz.

File metadata

  • Download URL: AlphaDSSP-0.4.tar.gz
  • Upload date:
  • Size: 19.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.6

File hashes

Hashes for AlphaDSSP-0.4.tar.gz
Algorithm Hash digest
SHA256 06e98e8365d4f6e7ca9e2b00ffe4f40488d5ee7e6b7d55148974ba5ebd5ccc3b
MD5 7d1f2d1d85e661b26f4efdc64ae14f59
BLAKE2b-256 d09927e84823bbd0946b4fccef22b664c8eac22d7986d6870936857a14142e14

See more details on using hashes here.

File details

Details for the file AlphaDSSP-0.4-py3-none-any.whl.

File metadata

  • Download URL: AlphaDSSP-0.4-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.6

File hashes

Hashes for AlphaDSSP-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ad7785553a3298478e86fbc46d92dfa7801a759e3417099e2db2a11e3402db74
MD5 52b9f60b8a727f39d89d9ead492ae285
BLAKE2b-256 55b294e1572ceebac5d3db62e537d981809c52798545de8159808f9e72c548f5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page