Spaces:
Running
Running
import streamlit.components.v1 as components | |
# Modify the igv_component function to accept the additional arguments | |
def igv_component(crispr_results=None, genome_reference="hg19", gene_symbol=None, key=None): | |
# Define the path to the built frontend component | |
component_path = "./igv_component/build" | |
# Streamlit components function | |
component = components.declare_component("igv_component", path=component_path) | |
# Call the component and pass the additional arguments | |
return component(crispr_results=crispr_results, genome_reference=genome_reference, gene_symbol=gene_symbol, key=key) | |
# Example usage: | |
# crispr_results = ... # your CRISPR results | |
# igv_component(crispr_results=crispr_results, genome_reference="hg19", gene_symbol="FOXA1", key="unique_key") | |