@@ -72,16 +72,16 @@ def plot_gwas_result(gwas_result,output_file,chrs=None,mac=15, marker_size=10, f
72
72
73
73
score_range = max_score - min_score
74
74
padding = 0.05 * (score_range )
75
- fdr_labels = set ()
76
- fdr_handles = ()#
75
+ fdr_labels = ()
76
+ fdr_handles = ()
77
77
if fdr in ('all' ,'bonferroni' ):
78
78
handle , = plt .plot ([0 , x_range ], [bonferroni_threshold , bonferroni_threshold ], color = 'r' , linestyle = "--" , linewidth = 1 , alpha = .5 )
79
79
fdr_handles = fdr_handles + (handle ,)
80
- fdr_labels . add ("Bonferroni" )
80
+ fdr_labels = fdr_labels + ("Bonferroni" , )
81
81
if bh_thres is not None and fdr in ('all' , 'benjamini_hochberg' ):
82
82
handle , = plt .plot ([0 , x_range ], [bh_thres , bh_thres ], color = 'b' , linestyle = '--' , linewidth = 1 , alpha = .5 )
83
83
fdr_handles = fdr_handles + (handle ,)
84
- fdr_labels . add ("Benjamini Hochberg" )
84
+ fdr_labels = fdr_labels + ("Benjamini Hochberg" , )
85
85
if len (fdr_labels ) > 0 :
86
86
plt .figlegend (fdr_handles , fdr_labels , 'upper right' )
87
87
plt .axis ([- x_range * 0.01 , x_range * 1.01 , min_score - padding , max_score + padding ])
0 commit comments