Skip to content

Commit 5e4ad30

Browse files
committed
Bugfix: Correct figure labels for FDRs
1 parent 1618295 commit 5e4ad30

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

Changelog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
1.7.3
2+
---
3+
* Bugfix: Correct figure label for FDR
4+
15
1.7.2
26
--
37
* Enhancement: Users can specifiy if the chromosome should be colored in different colors and which fdr threshold to include in the Manhattan plots

pygwas/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
__version__ = '1.7.2'
2-
__updated__ = "20.09.2017"
1+
__version__ = '1.7.3'
2+
__updated__ = "22.08.2018"
33
__date__ = "20.8.2014"

pygwas/core/plotting.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,16 @@ def plot_gwas_result(gwas_result,output_file,chrs=None,mac=15, marker_size=10, f
7272

7373
score_range = max_score - min_score
7474
padding = 0.05*(score_range)
75-
fdr_labels = set()
76-
fdr_handles = ()#
75+
fdr_labels = ()
76+
fdr_handles = ()
7777
if fdr in ('all','bonferroni'):
7878
handle, = plt.plot([0, x_range], [bonferroni_threshold, bonferroni_threshold], color='r', linestyle="--", linewidth=1, alpha=.5)
7979
fdr_handles = fdr_handles + (handle,)
80-
fdr_labels.add("Bonferroni")
80+
fdr_labels = fdr_labels + ("Bonferroni",)
8181
if bh_thres is not None and fdr in ('all', 'benjamini_hochberg'):
8282
handle, = plt.plot([0, x_range], [bh_thres, bh_thres], color='b', linestyle='--', linewidth=1, alpha=.5)
8383
fdr_handles = fdr_handles + (handle,)
84-
fdr_labels.add("Benjamini Hochberg")
84+
fdr_labels = fdr_labels + ("Benjamini Hochberg",)
8585
if len(fdr_labels) > 0:
8686
plt.figlegend(fdr_handles, fdr_labels, 'upper right')
8787
plt.axis([-x_range * 0.01, x_range * 1.01, min_score - padding, max_score + padding])

0 commit comments

Comments
 (0)