コード例 #1
0
ファイル: report.py プロジェクト: Ruutger/setlyze
    def add_statistics_chisq_ratios(self, statistics):
        yield self.section(statistics['attr']['method'])

        t_header, t_row, t_footer = self.table(('Ratio Group','n (plates)',
            'n (distances)','P-value','Chi squared','df'))

        yield t_header
        for ratio_group, stats in statistics['results'].iteritems():
            yield t_row % (
                ratio_group,
                stats['n_plates'],
                stats['n_values'],
                stats['p_value'],
                stats['chi_squared'],
                stats['df'],
            )
        yield t_footer

        yield "\n(table continued)\n\n"

        t_header, t_row, t_footer = self.table(['Ratio Group','Mean Observed',
            'Mean Expected','Remarks'])

        yield t_header
        for ratio_group, stats in statistics['results'].iteritems():
            yield t_row % (
                ratio_group,
                stats['mean_observed'],
                stats['mean_expected'],
                make_remarks(stats, statistics['attr']),
                )
        yield t_footer
コード例 #2
0
ファイル: report.py プロジェクト: Ruutger/setlyze
    def add_statistics_wilcoxon_areas(self, statistics):
        """Add the statistic results to the report dialog."""
        yield self.section(statistics['attr']['method'])

        t_header, t_row, t_footer = self.table(['Plate Area','n (totals)',
            'n (observed species)', 'n (expected species)', 'P-value'])

        yield t_header
        for area, stats in statistics['results'].iteritems():
            yield t_row % (
                area,
                stats['n_values'],
                stats['n_sp_observed'],
                stats['n_sp_expected'],
                stats['p_value'],
            )
        yield t_footer

        yield "\n(table continued)\n\n"

        t_header, t_row, t_footer = self.table(['Plate Area','Mean Observed',
            'Mean Expected','Remarks'])

        yield t_header
        for area, stats in statistics['results'].iteritems():
            yield t_row % (
                area,
                stats['mean_observed'],
                stats['mean_expected'],
                make_remarks(stats, statistics['attr']),
            )
        yield t_footer
コード例 #3
0
ファイル: report.py プロジェクト: Ruutger/setlyze
    def add_statistics_wilcoxon_spots(self, statistics):
        yield self.section(statistics['attr']['method'])

        t_header, t_row, t_footer = self.table(['Positive Spots','n (plates)',
        'n (distances)','P-value','Mean Observed','Mean Expected'])

        yield t_header
        for positive_spots,stats in statistics['results'].iteritems():
            yield t_row % (
                positive_spots,
                stats['n_plates'],
                stats['n_values'],
                stats['p_value'],
                stats['mean_observed'],
                stats['mean_expected'],
            )
        yield t_footer

        yield "\n(table continued)\n\n"

        t_header, t_row, t_footer = self.table(['Positive Spots','Remarks'])

        yield t_header
        for positive_spots,stats in statistics['results'].iteritems():
            yield t_row % (
                positive_spots,
                make_remarks(stats, statistics['attr']),
            )
        yield t_footer
コード例 #4
0
ファイル: report.py プロジェクト: Ruutger/setlyze
    def add_statistics_chisq_areas(self, statistics):
        yield self.section(statistics['attr']['method'])

        t_header, t_row, t_footer = self.table(['P-value','Chi squared','df',
            'Remarks'])

        yield t_header
        yield t_row % (
            statistics['results']['p_value'],
            statistics['results']['chi_squared'],
            statistics['results']['df'],
            make_remarks(statistics['results'],statistics['attr']),
        )
        yield t_footer