Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def make_plots(df, settings):
utils.plot_settings(dict(), dpi=settings["dpi"])
df["log length"] = np.log10(df["lengths"])
plots = []
plots.extend(
compplots.output_barplot(
df=df,
figformat=settings["format"],
path=settings["path"],
title=settings["title"],
palette=settings["colors"])
)
plots.extend(
compplots.n50_barplot(
df=df,
figformat=settings["format"],
path=settings["path"],
title=settings["title"],
palette=settings["colors"])
)
plots.extend(
compplots.violin_or_box_plot(
df=df[df["length_filter"]],
y="lengths",
figformat=settings["format"],
path=settings["path"],
y_name="Read length",
plot=settings["plot"],
title=settings["title"],
palette=settings["colors"])