Skip to content

Commit

Permalink
Add AYA to constants #387 (#390)
Browse files Browse the repository at this point in the history
* add AYA to constants #387

* bump changelog

* reset index after handling altlocs #384

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: Arian Jamasb <arian.jamasb@roche.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Aug 3, 2024
1 parent 848a3f8 commit 90be006
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Fixes progress bar for `download_pdb_multiprocessing`. [#394](https://github.com/a-r-j/graphein/pull/394)
* Add support for DSSP >4. Backwards compatibility is still supported. [#355](https://github.com/a-r-j/graphein/pull/355). Fixes [#353](https://github.com/a-r-j/graphein/issues/353).
* Fixes bug where RSA features are missing from nodes with insertion codes. [#355](https://github.com/a-r-j/graphein/pull/355). Fixes [#354](https://github.com/a-r-j/graphein/issues/353).
* Fix bug where the `deprotonate` argument is not wired up to `graphein.protein.graphs.construct_graphs`. [#375](https://github.com/a-r-j/graphein/pull/375)
* Add missing modified residue `AYA` to constants [#390](https://github.com/a-r-j/graphein/pull/390)
* Fix bug where the `deprotonate` argument is not wired up to `graphein.protein.graphs.construct_graphs` [#375](https://github.com/a-r-j/graphein/pull/375)
* Fix cluster file loading bug in `pdb_data.py` [#396](https://github.com/a-r-j/graphein/pull/396)

Expand Down
2 changes: 1 addition & 1 deletion graphein/protein/graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def remove_alt_locs(
# Unsort
if keep in ["max_occupancy", "min_occupancy"]:
df = df.sort_index()

df = df.reset_index(drop=True)
return df


Expand Down
4 changes: 4 additions & 0 deletions graphein/protein/resi_atoms.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@
"ABA",
"ACE",
"AIB",
"AYA",
"BMT",
"BOC",
"CBX",
Expand Down Expand Up @@ -535,6 +536,7 @@
"ABA",
"ACE",
"AIB",
"AYA",
"ALA",
"ARG",
"ASN",
Expand Down Expand Up @@ -639,6 +641,7 @@
"ASN": "N",
"ASP": "D",
"ASX": "B",
"AYA": "A",
"BMT": "T",
"BOC": "X",
"CBX": "X",
Expand Down Expand Up @@ -795,6 +798,7 @@
"ABA": "ALA",
"ACE": "-",
"AIB": "ALA",
"AYA": "ALA",
"BMT": "THR",
"BOC": "-",
"CBX": "-",
Expand Down

0 comments on commit 90be006

Please sign in to comment.