Skip to main content

Grammar of Graphics for shu.

Project description

ggshu

⚠️ This is alpha software and very subject to change!

A utility package to transform dataframes into shu data.

Shu grammar graphics schema

Example

(
    ggmap(
        df_cond,
        aes(reaction="r", color="flux", size="flux", condition="cond", y="kcat"),
    )
    # plot flux to color and size of reactions
    + geom_arrow()
    # plot kcat as histogram shows on left side of reactions
    + geom_hist(side="left")
    # plot conc to color of metabolites
    + geom_metabolite(aes=aes(color="conc", metabolite="m"))
    # plot km as density plots shows on hover on metabolites
    + geom_kde(aes=aes(y="km"), mets=True)
).to_json("shu_data")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ggshu-0.2.1.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ggshu-0.2.1-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file ggshu-0.2.1.tar.gz.

File metadata

  • Download URL: ggshu-0.2.1.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.21

File hashes

Hashes for ggshu-0.2.1.tar.gz
Algorithm Hash digest
SHA256 a8c004582d468f31b9fb161559078756470c398eade5418700dbf3f43bf34366
MD5 6ff934e3c0dc25d0af79bcc8beda32fd
BLAKE2b-256 7f9dd0091725fce4044322e21022b18f27636210fe2f375b330c9bcc7b24912d

See more details on using hashes here.

File details

Details for the file ggshu-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: ggshu-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.21

File hashes

Hashes for ggshu-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f40f02a1ffd644aa4aee4046b21dac6cf043a32c1c697a5e1687f6b01e038a07
MD5 f0fd64735e1c70e022a9c093142b4484
BLAKE2b-256 5ee5cf4adf97c11416c5b93fdd3e5bb47711dec757bb825a8571cb5ab4e73616

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page