Skip to main content

tags: [gradio-custom-component, Plot, med, medicine, bio, biology, chem, chemistry, MSA, multiple sequence alignment, seqlogo, annotation, consensus histogram, visualize] title: gradio_msaplot short_description: MSAplot is customizable panels for plotting MSA. colorFrom: blue colorTo: yellow sdk: gradio pinned: false app_file: demo/space.py

gradio_msaplot

Static Badge Static Badge Static Badge

MSAplot is customizable panels for plotting MSA, seqlogo, annotation, and consensus histograms.

Installation

pip install gradio_msaplot

Usage

import gradio as gr
from gradio_msaplot import MSAPlot, MSAPlotData
import matplotlib
matplotlib.use('Agg')

example = MSAPlot().example_value()

with gr.Blocks() as demo:
    with gr.Row():
        MSAPlot(label="Blank"),  # blank component
        MSAPlot(value=example, label="Populated"),  # populated component


if __name__ == "__main__":
    demo.launch()

MSAPlot

Initialization

name type default description
value
typing.Any | None
None None
label
str | None
None None
every
float | None
None None
show_label
bool | None
None None
container
bool
True None
scale
int | None
None None
min_width
int
160 None
visible
bool
True None
elem_id
str | None
None None
elem_classes
list[str] | str | None
None None
render
bool
True None
key
int | str | None
None None

Events

name description
change Triggered when the value of the MSAPlot changes either because of user input (e.g. a user types in a textbox) OR because of a function update (e.g. an image receives a value from the output of an event trigger). See .input() for a listener that is only triggered by user input.
clear Triggered when the plot is cleared.

User function

The impact on the users predict function varies depending on whether the component is used as an input or output for an event (or both).

  • When used as an Input, the component only impacts the input signature of the user function.
  • When used as an output, the component only impacts the return signature of the user function.

The code snippet below is accurate in cases where the component is used as both an input and an output.

  • As output: Is passed, the preprocessed input data sent to the user's function in the backend.
  • As input: Should return, the output data received by the component from the user's function in the backend.
def predict(
    value: MSAPlotData | None
) -> MSAPlotData:
    return value

MSAPlotData

Initialization

name type default description
data
typing.Any
None None

Metadata

Release files for gradio-msaplot 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gradio-msaplot 0.0.1
File Size Uploaded Provenance Actions
gradio_msaplot-0.0.1.tar.gz 123.6 kB Without provenance Details for gradio_msaplot-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gradio-msaplot 0.0.1
File Interpreter ABI Platform Actions
gradio_msaplot-0.0.1-py3-none-any.whl Python 3 none any Details for gradio_msaplot-0.0.1-py3-none-any.whl

Total release size: 136.1 kB

Release files / gradio_msaplot-0.0.1.tar.gz

Download URL gradio_msaplot-0.0.1.tar.gz
Size 123.6 kB
Tags Source
SHA-256 checksum
How to use checksums
86c5fcbb2da327fd80cb10a47b81e25e54ff512a91cd11f858db58d4f29d9b7d
BLAKE2b-256 checksum
How to use checksums
96f9eb646d78c49169be8f409323d4502dfb6825fbfa98e515c2198c65238689
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / gradio_msaplot-0.0.1-py3-none-any.whl

Download URL gradio_msaplot-0.0.1-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c7e53fd22751f55616098d2348a0914e51c7bd9c34f381d59a59b104e501ff3
BLAKE2b-256 checksum
How to use checksums
39b1d1a3cb37262a1878361067aeb7fe1e3703d741cac6664314d65ccd417232
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Security for gradio-msaplot 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page