diff --git a/src/pyprideap/viz/qc/render.py b/src/pyprideap/viz/qc/render.py index 7df3667..0c211f9 100644 --- a/src/pyprideap/viz/qc/render.py +++ b/src/pyprideap/viz/qc/render.py @@ -633,9 +633,9 @@ def render_data_completeness(data: DataCompletenessData) -> Figure: text=f"{pct_below_30:.1f}% of proteins below 30% missing", xref="x2 domain", yref="y2 domain", - x=0.02, + x=0.98, y=0.98, - xanchor="left", + xanchor="right", yanchor="top", showarrow=False, font=dict(size=12), @@ -650,7 +650,7 @@ def render_data_completeness(data: DataCompletenessData) -> Figure: row=2, col=1, annotation_text="30% threshold", - annotation_position="top right", + annotation_position="bottom right", annotation_font_color="#e67e22", ) fig.update_xaxes(title_text="Missing Frequency (% Samples Below LOD)", range=[0, 100], row=2, col=1) diff --git a/src/pyprideap/viz/qc/report.py b/src/pyprideap/viz/qc/report.py index 3d3616f..7d0565d 100644 --- a/src/pyprideap/viz/qc/report.py +++ b/src/pyprideap/viz/qc/report.py @@ -1572,8 +1572,8 @@ def qc_report( f'
' f'
' f"

{title}

" - f"{extra_header}" f'' + f"{extra_header}" f"
" f"{help_block}" f"{plot_html}" @@ -1811,7 +1811,7 @@ def qc_report_split( help_toggle = '' body = ( f'
' - f"

Dimensionality Reduction

{toggle_html}{help_toggle}
" + f"

Dimensionality Reduction

{help_toggle}{toggle_html}
" f'
{help_text}
' f"{combined_html}
" )