Skip to content

Commit

Permalink
upgraded to new RCSB webservices
Browse files Browse the repository at this point in the history
  • Loading branch information
pwrose committed Jan 27, 2022
1 parent d950be0 commit 43b81e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mmtfPyspark/webfilters/chemicalStructureQuery.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ def __init__(self, smiles, match_type=SUBSTRUCTURE_STEREOSPECIFIC, percentSimila
if (score*100.0 >= percentSimilarity):
self.structureIds.add(identifier)

def get_structure_ids(self):
return list(self.structureIds)

def __call__(self, t):
match = t[0] in self.structureIds

Expand Down
3 changes: 3 additions & 0 deletions mmtfPyspark/webfilters/pdbjMineSearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ def __init__(self, sqlQuery):
ids_sub = [i[:4] for i in ids]
self.pdbIds = ids + ids_sub

def get_structure_ids(self):
return self.pdbIds

def __call__(self, t):
match = t[0] in self.pdbIds

Expand Down

0 comments on commit 43b81e4

Please sign in to comment.