Commit 397729a7 authored by nfontrod's avatar nfontrod
Browse files

src/gc_content/gc_content.py: modfication of add_stat_annotation calls in make_gc_barplot

parent 49c0594a
......@@ -154,18 +154,20 @@ def make_gc_barplot(df: pd.DataFrame, outfile: Path, environment: int,
add_stat_annotation(g.ax, data=df, x="location", y="gc_content",
hue="region",
loc='inside',
boxPairList=p_vals,
linewidth=2, fontsize="medium",
lineYOffsetAxesCoord=0,
lineYOffsetToBoxAxesCoord=0.1)
box_pair_list=p_vals,
linewidth=2, fontsize="xx-small",
liney_offset_axes_coord=0.02,
liney_offset2box_axes_coord=0.02,
line_height_axes_coord=0)
else:
g = sns.catplot(x="region", y="gc_content", data=df,
aspect=1.77, height=12, kind="violin")
add_stat_annotation(g.ax, data=df, x="region", y="gc_content",
loc='inside',
boxPairList=p_vals,
linewidth=2, fontsize="medium",
lineYOffsetToBoxAxesCoord=0.1)
box_pair_list=p_vals,
linewidth=2, fontsize="xx-small",
liney_offset2box_axes_coord=0.1,
line_height_axes_coord=0)
g.set_ylabels("GC content")
g.set_xlabels("")
g.fig.subplots_adjust(top=0.9)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment