Skip to content

Commit

Permalink
Merge branch 'a-r-j:master' into amorehead-pdbmanager-chain-interface…
Browse files Browse the repository at this point in the history
…-filtering
  • Loading branch information
amorehead authored Aug 21, 2023
2 parents 4b39a4b + e0d5d63 commit 6518dc7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* Fixes initialisation of `Protein` objects. [#317](https://github.com/a-r-j/graphein/issues/317) [#318](https://github.com/a-r-j/graphein/pull/318)
* Fixes incorrect `rad` and `embed` argument logic in `graphein.protein.tensor.angles.dihedrals/sidechain_torsion` [#321](https://github.com/a-r-j/graphein/pull/321)
* Fixes incorrect start padding in pNeRF output [#321](https://github.com/a-r-j/graphein/pull/321)
* Fixes setting ID for PyG data objects when loading from a path to a `.pdb` file [#332](https://github.com/a-r-j/graphein/pull/332)

#### Other Changes
* Adds transform composition to FoldComp Dataset [#312](https://github.com/a-r-j/graphein/pull/312)
Expand All @@ -35,6 +36,7 @@
* Adds transform composition to FoldComp Dataset [#312](https://github.com/a-r-j/graphein/pull/312)
* Improve FoldComp dataloading performance and include B factors (pLDDT) in output. [#313](https://github.com/a-r-j/graphein/pull/313) [#315](https://github.com/a-r-j/graphein/pull/315)
* Add new helper functions to PDBManager [#322](https://github.com/a-r-j/graphein/pull/322) (@amorehead)
* Add non-standard 'CYX' to `RESI_THREE_TO_1`.

### 1.7.0 - 10 /04/2023

Expand Down
1 change: 1 addition & 0 deletions graphein/protein/resi_atoms.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,7 @@
"CSX": "C",
"CXM": "M",
"CYS": "C",
"CYX": "C",
"DAL": "A",
"DAR": "R",
"DCY": "C",
Expand Down
6 changes: 4 additions & 2 deletions graphein/protein/tensor/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,11 @@ def protein_to_pyg(
# Get ID
if path is not None:
id = (
path.split("/")[-1] + "_" + "".join(chain_selection)
os.path.splitext(path)[0].split("/")[-1]
+ "_"
+ "".join(chain_selection)
if chain_selection != "all"
else path
else os.path.splitext(path)[0].split("/")[-1]
)
elif pdb_code is not None:
id = (
Expand Down

0 comments on commit 6518dc7

Please sign in to comment.