Spaces:
Running
Running
File size: 785 Bytes
78c921d 0484fdd 78c921d 0484fdd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
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")
|