def get_report(self):
    """Another report, but not context based"""
    ostr = ''
    ostr += "target\tquery\tcnt\ttotal\n"
    poss = ['-','A','C','G','T']
    for target in poss:
      for query in poss:
        ostr += target+ "\t"+query+"\t"+str(self.matrix[target][query])+"\t"+str(self.alignment_length)+"\n"
    return ostr
def get_report ( self ) : ostr = '' ostr += "target\tquery\tcnt\ttotal\n" poss = [ '-' , 'A' , 'C' , 'G' , 'T' ] for target in poss : for query in poss : ostr += target + "\t" + query + "\t" + str ( self . matrix [ target ] [ query ] ) + "\t" + str ( self . alignment_length ) + "\n" return ostr
Another report, but not context based