예제 #1
0
 def getSeqSupport(self, seq):
     containingSeqs = []
     for rawSeq in self.ctx.rawSeqDB:
         if rawSeqContains(rawSeq, seq):
             containingSeqs.append(rawSeq)
     return containingSeqs
예제 #2
0
 def getSupport(self, item):
     support = 0
     for rawSeq in self.ctx.rawSeqDB:
         if rawSeqContains(rawSeq, [[item]]):
             support += 1
     return support