Skip to content

Commit

Permalink
removed uniprot id from get_maxint_pdb
Browse files Browse the repository at this point in the history
  • Loading branch information
mgiulini committed Jul 5, 2023
1 parent 31a22e8 commit 06de1d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/arctic3d/modules/pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,6 @@ def get_best_pdb(
pdb_f, cif_f, top_hit, filtered_interfaces = get_maxint_pdb(
validated_pdbs_and_cifs,
interface_residues,
uniprot_id,
)

if pdb_f is None or cif_f is None:
Expand Down
5 changes: 2 additions & 3 deletions tests/test_pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def test_get_maxint_pdb_empty():
"""Test get_maxint_pdb with empty output."""
empty_validated_pdbs = []
pdb_f, cif_f, top_hit, filtered_interfaces = get_maxint_pdb(
empty_validated_pdbs, {}, uniprot_id=None
empty_validated_pdbs, {}
)
assert pdb_f is None
assert cif_f is None
Expand All @@ -227,9 +227,8 @@ def test_get_maxint_pdb_empty():
def test_get_maxint_pdb(good_hits, example_interfaces):
"""Test get_maxint_pdb with implicit pdb numbering."""
validated_pdbs = validate_api_hit(good_hits, "P00760")
print(f"validated_pdbs {validated_pdbs}")
pdb_f, cif_f, top_hit, filtered_interfaces = get_maxint_pdb(
validated_pdbs, example_interfaces, "P00760"
validated_pdbs, example_interfaces
)
assert pdb_f.name == "4xoj-A-occ-tidy.pdb"
assert cif_f.name == "4xoj_updated.cif"
Expand Down

0 comments on commit 06de1d8

Please sign in to comment.