Skip to content

Galaxy tool to create plotly plots from user selected columns of any Galaxy tabular data

License

Notifications You must be signed in to change notification settings

fubar2/plotly_tabular_tool

Repository files navigation

plotly_tabular_tool - plotly.express wrapped as a Galaxy tool.

Galaxy tool to create plotly.express interactive hover detail HTML plots or png non-interactive plots, from user selected columns of any Galaxy tabular data. If > 5000 rows, interactive html will freeze browsers, so the tool will refuse to generate a dangerous output. It will make a non-interactive image but interactive html is recommended only for low dimensional data - a few thousand rows Otherwise file sizes get huge and hover is useless to the viewer, so use non-interactive pdf for bigger data please.

Install to your Galaxy server from the toolshed - search for plotly_tabular_tool owned by fubar2

Example interactive plots and more at https://lazarus.name/demo/

Iris data

Non interactive screen grab of the tool output

Plotly tabular html output screengrab

Plotly tabular Galaxy tool form to generate the example

Plotly.express makes a lot of clever design decisions. Unfortunately, it gets totally confused with very small floats in scientific notation. Treats columns with 5.00e-204 as strings or something, so strange and probably uninformative axes and plots will probably result if you try a blast evalue column without transformation. Note that all columns used for colour (legend) and the x/y axis tickmarks are truncated because they can squish up the plot. .. is appended at the truncation.

A specialised version for 25 column Galaxy blastn search outputs is also available. It uses this code mostly, but adds a default header and auto-transformation of the evalue column -log10(x) to make them more like the bitscore

Tool made with the Galaxy ToolFactory: https://github.com/fubar2/galaxy_tf_overlay

The current release includes this and a generic tabular version, and a java .jar wrapper in a history where the generating. That ToolFactory history can be imported into any ToolFactory instance from https://github.com/fubar2/plotly_tabular_tool/raw/main/Galaxy-ToolFactory-History-plotlytabulartoolfactoryhistory.tar.gz Using that history, the original generating ToolFactory form can be recreated using the redo button. Editing the tool id will make a new tool, so all other edits to parameters can be made. A new tool can be generated without destroying the original sample by altering the tool_id before execution.

Galaxy Training Network tutorials are available here

About

Galaxy tool to create plotly plots from user selected columns of any Galaxy tabular data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages