Skip to content

Commit

Permalink
linting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
luisas committed Sep 8, 2023
1 parent e24fc03 commit 146d45e
Showing 1 changed file with 13 additions and 20 deletions.
33 changes: 13 additions & 20 deletions shiny_app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@

# Load file
# ----------------------------------------------------------------------------
summary_report = (
"./outdir/summary_report/evaluation_summary_report.csv"
)
summary_report = "./outdir/summary_report/evaluation_summary_report.csv"
stats_report = "./outdir/stats/stats_summary_report.csv"

summary_df = pd.read_csv(summary_report)
Expand All @@ -29,7 +27,13 @@

options = {item: item for item in list(inputfile.columns)}
options_color = {"align": "assembly", "tree": "tree"}
options_eval = {"sp": "sum of pairs (SP)", "n_sequences": "# sequences", "tc": "total column score (TC)", "perc_sim": "sequences avg similarity", "seq_length_mean": "sequence length (mean)"}
options_eval = {
"sp": "sum of pairs (SP)",
"n_sequences": "# sequences",
"tc": "total column score (TC)",
"perc_sim": "sequences avg similarity",
"seq_length_mean": "sequence length (mean)",
}

app_ui = ui.page_fluid(
ui.column(
Expand Down Expand Up @@ -76,15 +80,8 @@
),
ui.column(
4,
ui.input_numeric(
"size",
"dot's size: ",
min=1,
max=100,
step=10,
value=60),
),

ui.input_numeric("size", "dot's size: ", min=1, max=100, step=10, value=60),
),
),
ui.row(
ui.column(
Expand All @@ -104,16 +101,12 @@ def scatter():
x_label = options_eval[input.x()]
y_label = options_eval[input.y()]

ax = sns.scatterplot(data=inputfile,
x=input.x(),
y=input.y(),
hue=input.color(),
s=input.size())

ax = sns.scatterplot(data=inputfile, x=input.x(), y=input.y(), hue=input.color(), s=input.size())

ax.set_xlabel(x_label)
ax.set_ylabel(y_label)

plt.legend(bbox_to_anchor=(1.05, 1), loc=2, borderaxespad=0.0)
plt.legend(bbox_to_anchor=(1.05, 1), loc=3, borderaxespad=0.0)
return ax


Expand Down

0 comments on commit 146d45e

Please sign in to comment.