def getResults(self, fdr):
        ''' post-process test results table into generic results output '''

        # TS - what about zero values?!
        self.table["fold"] = (
            self.table["treatment_mean"] / self.table["control_mean"])

        self.table["p_value_adj"] = adjustPvalues(self.table["p_value"])

        self.table["significant"] = pvaluesToSignficant(
            self.table["p_value_adj"], fdr)

        self.table["l2fold"] = list(numpy.log2(self.table["fold"]))

        # note: the transformed log2 fold change is not transformed for TTest
        self.table["transformed_l2fold"] = self.table["l2fold"]
        self.table["contrast"] = "_vs_".join((self.table['control_name'],
                                              self.table['treatment_name']))
dataset/ETHPy150Open CGATOxford/cgat/CGAT/Expression.py/DEResult_TTest.getResults/original