| Conditions | 5 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | """Test StatsDescribe.""" |
||
| 6 | def test_statsdescribe(): |
||
| 7 | """Use StatsDescribe to create a markdown table. |
||
| 8 | |||
| 9 | fdr_bh |
||
| 10 | name | # fdr_bh | range of fdr_bh | 25th perc| median | 75th perc| mean | stddev |
||
| 11 | ---------|----------|----------------------|----------|----------|----------|----------|--------- |
||
| 12 | GOATOOLS | 59 | 1.87e-07 to 4.94e-02 | 2.72e-04 | 1.03e-02 | 3.04e-02 | 1.56e-02 | 1.82e-02 |
||
| 13 | |||
| 14 | """ |
||
| 15 | #pylint: disable=no-member |
||
| 16 | # Somehow nts contains fields of empty string, which we can check with: |
||
| 17 | # print([(nt.GO, nt.p_fdr_bh) for nt in nts]) |
||
| 18 | nts_goids = [nt for nt in nts if nt.p_fdr_bh != '' and nt.p_fdr_bh < 0.05] |
||
| 19 | fdr_vals = [nt.p_fdr_bh for nt in nts_goids] |
||
| 20 | statsobj = StatsDescribe("fdr_bh", fmtstr="{:>8.2e}") |
||
| 21 | statsobj.prt_hdr() |
||
| 22 | statsobj.prt_data("GOATOOLS", fdr_vals) |
||
| 23 | |||
| 27 |