Skip to content

Commit

Permalink
added border around marker plots in all markers page
Browse files Browse the repository at this point in the history
  • Loading branch information
rnmitchell committed Oct 4, 2024
1 parent 1e2ca59 commit 7cbc66e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lusSTR/cli/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,14 @@ def interactive_plots_allmarkers(sample_df, flagged_df):
increase_value = int(math.ceil((max_yvalue / 5)) / n) * n
n = 0
for marker in sample_df["Locus"].unique():
col = cols[n]
container = col.container(border=True)
sample_locus = sample_df["SampleID"].unique() + "_" + marker
marker_df = sample_df[sample_df["Locus"] == marker].sort_values(by="CE_Allele")
if sample_locus in flagged_df["key"].values:
marker = f"⚠️{marker}⚠️"
plot = interactive_plots(marker_df, marker, max_yvalue, increase_value, all=True)
col = cols[n]
col.plotly_chart(plot, use_container_width=True)
container.plotly_chart(plot, use_container_width=True)
if n == 3:
n = 0
else:
Expand Down

0 comments on commit 7cbc66e

Please sign in to comment.