Skip to content

Commit

Permalink
fix disulphide bond node filtering #205 (#209)
Browse files Browse the repository at this point in the history
* fix disulphide bond node filtering #205

* Local dataset (#208) (#211)

* add load local pdb_files to ProteinGraphDataset

* load local pdb_files from a list

* test and black and isort and add CHANGELOG.md

* docstring formatting

* comment jupyter; just run  and ssh or vscode to interact with container

* install dependency of jupyter nbextension

* Fixed Dockerfile and unit tests

* Update chage log

Co-authored-by: xutingfeng <xutingfeng@big.ac.cn>
Co-authored-by: Arian Jamasb <arjamasb@gmail.com>
Co-authored-by: ryan <ryan.greenhalgh@hotmail.co.uk>

Co-authored-by: Nicktf <49584439+1511878618@users.noreply.github.com>
Co-authored-by: xutingfeng <xutingfeng@big.ac.cn>
Co-authored-by: ryan <ryan.greenhalgh@hotmail.co.uk>

* fix typo

Co-authored-by: Nicktf <49584439+1511878618@users.noreply.github.com>
Co-authored-by: xutingfeng <xutingfeng@big.ac.cn>
Co-authored-by: ryan <ryan.greenhalgh@hotmail.co.uk>
  • Loading branch information
4 people committed Sep 16, 2022
1 parent 421b306 commit 6c4ffd0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CHANGELOG.md
@@ -1,9 +1,9 @@
### 1.5.2
### 1.5.2 - UNRELEASED

### Protein
#### Protein
* [Bugfix] - [#206](https://github.com/a-r-j/graphein/pull/206) Fixes `KeyError` when using `graphein.protein.edges.distance.node_coords`

### GRN
#### GRN
* [Bugfix] - [#208](https://github.com/a-r-j/graphein/pull/208) - Resolves SSL issues with RegNetwork.

#### ML
Expand All @@ -16,6 +16,7 @@
#### CI
* [Bugfix] - [#208](https://github.com/a-r-j/graphein/pull/208) explicitly installs `jupyter_contrib_nbextensions` in Docker.


### 1.5.1

#### Protein
Expand Down
4 changes: 4 additions & 0 deletions graphein/protein/edges/distance.py
Expand Up @@ -237,6 +237,10 @@ def add_disulfide_interactions(
disulfide_df = filter_dataframe(
disulfide_df, "atom_name", DISULFIDE_ATOMS, True
)
# Ensure only residues in the graph are kept
disulfide_df = filter_dataframe(
disulfide_df, "node_id", list(G.nodes), True
)
distmat = compute_distmat(disulfide_df)
interacting_atoms = get_interacting_atoms(2.2, distmat)
add_interacting_resis(G, interacting_atoms, disulfide_df, ["disulfide"])
Expand Down

0 comments on commit 6c4ffd0

Please sign in to comment.