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