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 71f29d5 commit d966f1d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion mmtfPyspark/webfilters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
from .advancedQuery import AdvancedQuery
from .chemicalStructureQuery import ChemicalStructureQuery
from .sequenceSimilarity import SequenceSimilarity
from .blastCluster import BlastClusters
from .pdbjMineSearch import PdbjMineSearch
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,22 @@ class BlastCluster(object):
sequenceIdentity : int
sequence indentity for blast
'''
def __init__(self, sequenceIdentity):
def __init__(self, sequenceIdentity):

clusters = self.get_blast_cluster(sequenceIdentity)
clusters = self.get_blast_cluster(sequenceIdentity)

self.pdbIds = set()
self.pdbIds = set()

for protein in clusters:
self.pdbIds.add(protein)
self.pdbIds.add(protein[:4])
for protein in clusters:
self.pdbIds.add(protein)
self.pdbIds.add(protein[:4])


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

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


def get_blast_cluster(self, sequenceIdentity):
Expand Down

0 comments on commit d966f1d

Please sign in to comment.