Skip to content

Commit

Permalink
Update to calculate SASA internally
Browse files Browse the repository at this point in the history
  • Loading branch information
maxall41 committed Feb 13, 2024
1 parent 3eda7ff commit 1f35c01
Show file tree
Hide file tree
Showing 12 changed files with 52,808 additions and 20 deletions.
Binary file added .DS_Store
Binary file not shown.
175 changes: 172 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ edition = "2021"
[dependencies]
clap = { version = "4.4.18", features = ["derive"] }
colored = "2.1.0"
nalgebra = "0.32.3"
pdbtbx = "0.11.0"
polars = "0.37.0"
rust-sasa = "0.1.1"
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# DPXRust

![Image of protein that has been run through DPXRust](example.png)
![Image of protein (3ZYZ) that has been run through DPXRust](example.png)
*Image of 3ZYZ after being run through DPXRust colorized by DPX value*

This is a rewrite of the DPX algorithm in Rust. DPX is an algorithm for computing a score that indicates to what degree an atom is buried in a protein structure by finding the distance between every atom and the nearest atom with an ASA/SASA above a threshold (Defaults to 10.0 Angstroms squared) [1].
This is a rewrite of the DPX algorithm in Rust. DPX is an algorithm for computing a score that indicates to what degree an atom is buried in a protein structure by finding the distance between every atom and the nearest atom with an ASA/SASA above a threshold (Defaults to 150.0 Angstroms squared) [1].

## Usage

Make sure that the SASA/ASA value for each atom is in the B-factor field before running DPXRust. We recommend generating SASA values with DSSP or Freesasa.

Output CSV Example:
```shell
./DPXRust --input-path my_protein.pdb --csv-output-path output.csv
Expand All @@ -19,8 +17,14 @@ Output PDB Example (When outputting as PDB DPX values are saved in B-factor colu
./DPXRust --input-path my_protein.pdb --pdb-output-path output.pdb
```

Since version 1.1.0 DPXRust automaticlly generates SASA values for input proteins. But if you want to provide your own custom SASA values then you can add the SASA value for each atom to the B-factor field of the input file.

Note: DPXRust also supports mmCIF files

Note: Make sure to split protein complexes into different files before running DPXRust.

For a full list of CLI arguemnts run DPXRust with `--help`

## Citations:

[1]: Pintar A., Carugo O., Pongor S. DPX: for the analysis of the protein core. Bioinformatics. 2003;19:313–314
Binary file modified example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/.DS_Store
Binary file not shown.
Loading

0 comments on commit 1f35c01

Please sign in to comment.