Skip to content

Commit

Permalink
Fixes padding in pNerF computations (#320)
Browse files Browse the repository at this point in the history
* add PSW to nonstandard residues

* improve insertion and non-standard residue handling

* refactor chain selection

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

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

* remove unused verbosity arg

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

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

* fix chain selection in tests

* fix chain selection in tutorial notebook

* fix notebook chain selection

* fix chain selection typehint

* Update changelog

* Add NLW to non-standard residues

* add .ent support

* add entry for construction from dataframe

* add missing stage arg

* improve obsolete mapping retrieving to include entries with no replacement

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

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

* update changelog

* add transforms to foldcomp datasets

* fix jaxtyping syntax

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

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

* Update changelog

* fix double application of transforms

* improve foldcomp data loading performance

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

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

* remove unused imports

* linting

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

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

* Update changelog

* add B factors to FC parsing output

* bugfix to alpha & kappa angle embedding

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

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

* update changelog

* handle selenocysteine in sidechain torsion angle computation

* fix protein data object initialisation #317

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

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

* restore eq dunder

* update changelog

* add x to foldcomp examples for correct batching

* fix pnerf padding

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

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

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
a-r-j and pre-commit-ci[bot] committed May 22, 2023
1 parent b1190eb commit b701d18
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions graphein/protein/tensor/pnerf.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,13 +277,14 @@ def extend(prev_three_coords, point, multi_m):
)
coords_trans = torch.cat([coords_pretrans[i], transformed_coords], 0)

# coords = F.pad(
# coords_trans[: total_num_angles - 1], (0, 0, 0, 0, 1, 0)
# ) # original
coords = F.pad(
coords_trans[: total_num_angles - 1], (0, 0, 0, 0, 1, 0)
) # original
# coords = F.pad(coords_trans[: total_num_angles - 2], (0, 0, 0, 0, 2, 0))
# coords = F.pad(coords_trans[: total_num_angles - 3], (0, 0, 0, 0, 3, 0))
# return coords
return coords_trans
# return coords_trans
return coords


def sn_nerf(
Expand Down

0 comments on commit b701d18

Please sign in to comment.