Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Multi-dimensional, trans-omics metabolic maps.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
NotificationsYou must be signed in to change notification settings

biosustain/shu

Repository files navigation

my badgewasmwasm

What?

App to plot multidimensional data to a metabolic map. Metabolic maps are graphs with metabolitesas nodes and reactions as edges.

For aquick start, we provide a web application athttps://biosustain.github.io/shu. Thereare example maps and data available athttps://github.com/biosustain/shu_case_studies, thatcan be load with the buttons at the top-right.

For a more comprehensive guide, visit thedocumentation.

Paper to cite:https://doi.org/10.1093/bioinformatics/btae140

Why?

Escher is great. In fact, the formatof the map is exactly the same as escher's. However, escher only allows for plotting 2 (+2 with tooltips)kinds of data: reaction data and metabolite data.Shu attempts to provide ways of plotting at least6:

  • Reaction sizes.
  • Reaction colors.
  • Reaction right sides.
  • Reaction left sides.
  • Metabolite sizes.
  • Metabolite colors.

(+2 with hovers):

  • Hover reactions.
  • Hover metabolites.

with special focus on being able to plotdistributions (not just points) andn-conditions. Escher also has thedistinction between color and size, it is simply that they are not independently accessible from the GUI.

How to use

Shu is distributed both through a web app (preview build athttps://biosustain.github.io/shu) and as standalonenative application. To use the latter, download thelatest release for your operating system, unpack if necessary and run it as executable.

Documentation for the rust crate and the python API will be made available once they are published. In the meantime, a previewof the python documentation can be found athttps://biosustain.github.io/shu/docs.

Building from source (latest master commit)

Installcargo and run

git clone https://github.com/biosustain/shu.gitcd shucargo install --path.

This may possibly require extra dependencies. Check the bevy setup,shu useslldto fasten linking times.

API design

Shu follows a Grammar of Graphics design likeggplot orplotnine.See thepython API for the full analogy. The particular implementationis an Entity Component System inbevy:

  • Each aesthetic is acomponent (Gsize,Gcolor, etc.) containing its data (seesrc/aesthetics.rs). Identifiers are stored in theAestheticcomponent.
  • Entities withAesthetic, other aes components and Geom component (GeomArrow,GeomMetabolite, etc. insrc/geom.rs) areprocessed and plotted by asystem (insrc/aesthetics.rs).
  • The accepted aesthetics for a given geom are made explicit in thequeries of thesystems.

Data handling (df, admap_file) lives insrc/data.rs andsrc/escher.rs and the GUI componets lives insrc/gui.rs.

License

Copyright 2023 The Novo Nordisk Foundation Center for Biosustainability.

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submittedfor inclusion in the work by you, as defined in the Apache-2.0 license, shallbe dual licensed as above, without any additional terms or conditions.


[8]ページ先頭

©2009-2025 Movatter.jp