Write summary of level and depth counts for active GO Terms.

def _prttex_summary_cnts(self, prt, cnts):
        """Write summary of level and depth counts for active GO Terms."""
        # Count level(shortest path to root) and depth(longest path to root)
        # values for all unique GO Terms.
        prt.write("\n\n% LaTeX Table for GO counts at each level and depth in the GO DAG\n")
        prt.write(r"\begin{table}[bt]" "\n")
        prt.write(r"\begin{tabular}{|r |r |r |r |r |r |r|}" "\n")

        title = self.title.replace('_', r'\_')
        prt.write(r"\hline" "\n")
        prt.write(r"\rowcolor{gray!10}" "\n")
        prt.write(" ".join([r"\multicolumn{7}{|l|}{", title, r"} \\", "\n"]))
        prt.write(r"\hline" "\n")
        prt.write(r"\rowcolor{gray!10}" "\n")
        prt.write(r"Depth &" "\n")
        prt.write(r"\multicolumn{3}{c|}{Depth} &" "\n")
        prt.write(r"\multicolumn{3}{c|}{Level} \\" "\n")
        prt.write(r"\cline{2-7}" "\n")
        prt.write(r"\rowcolor{gray!10}" "\n")
        prt.write(r"or Level & BP & MF & CC & BP & MF & CC \\" "\n")
        prt.write(r"\hline" "\n")

        max_val = max(max(dep for dep in cnts['depth']), max(lev for lev in cnts['level']))
        for i in range(max_val+1):
            vals = ['{:>5}'.format(cnts[desc][i][ns]) for desc in cnts for ns in self.nss]
            self.log.write('{:>02} & {} \\\\\n'.format(i, ' & '.join(vals)))
            if i%2 == 0:
                prt.write(r"\rowcolor{gray!7}" "\n")
        prt.write(r"\hline" "\n")
        prt.write(r"\end{tabular}" "\n")
        prt.write(r"\end{table}" "\n")