Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
Loading
...@@ -154,18 +154,20 @@ def make_gc_barplot(df: pd.DataFrame, outfile: Path, environment: int, ...@@ -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", add_stat_annotation(g.ax, data=df, x="location", y="gc_content",
hue="region", hue="region",
loc='inside', loc='inside',
boxPairList=p_vals, box_pair_list=p_vals,
linewidth=2, fontsize="medium", linewidth=2, fontsize="xx-small",
lineYOffsetAxesCoord=0, liney_offset_axes_coord=0.02,
lineYOffsetToBoxAxesCoord=0.1) liney_offset2box_axes_coord=0.02,
line_height_axes_coord=0)
else: else:
g = sns.catplot(x="region", y="gc_content", data=df, g = sns.catplot(x="region", y="gc_content", data=df,
aspect=1.77, height=12, kind="violin") aspect=1.77, height=12, kind="violin")
add_stat_annotation(g.ax, data=df, x="region", y="gc_content", add_stat_annotation(g.ax, data=df, x="region", y="gc_content",
loc='inside', loc='inside',
boxPairList=p_vals, box_pair_list=p_vals,
linewidth=2, fontsize="medium", linewidth=2, fontsize="xx-small",
lineYOffsetToBoxAxesCoord=0.1) liney_offset2box_axes_coord=0.1,
line_height_axes_coord=0)
g.set_ylabels("GC content") g.set_ylabels("GC content")
g.set_xlabels("") g.set_xlabels("")
g.fig.subplots_adjust(top=0.9) g.fig.subplots_adjust(top=0.9)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment