def getConsensus(self, mark_with_gaps=False):
        columns = self.getColumns()
        seq = []
        for x in range(len(columns)):
            s = columns[x]
            counts = [(a, s.count(a))
                      for a in set(list(s)).difference(set(self.mGapChar))]
            if mark_with_gaps and self.mGapChar in columns[x]:
                seq.append(self.mGapChar)
            else:
                counts.sort(key=lambda x: -x[1])
                seq.append(counts[0][0])
        return "".join(seq)
Constructor for Query
dataset/ETHPy150Open CGATOxford/cgat/CGAT/Mali.py/Mali.getConsensus--crossover with--dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/attic/PicasaSnap/gdata/service.py/Query.__init__