supercat666 commited on
Commit
0484fdd
1 Parent(s): 82aadd9
Files changed (1) hide show
  1. igv_component/__init__.py +8 -3
igv_component/__init__.py CHANGED
@@ -1,11 +1,16 @@
1
  import streamlit.components.v1 as components
2
 
3
- def igv_component(crispr_results=None, key=None):
 
4
  # Define the path to the built frontend component
5
  component_path = "./igv_component/build"
6
 
7
  # Streamlit components function
8
  component = components.declare_component("igv_component", path=component_path)
9
 
10
- # Call the component and pass the CRISPR results
11
- return component(crispr_results=crispr_results, key=key)
 
 
 
 
 
1
  import streamlit.components.v1 as components
2
 
3
+ # Modify the igv_component function to accept the additional arguments
4
+ def igv_component(crispr_results=None, genome_reference="hg19", gene_symbol=None, key=None):
5
  # Define the path to the built frontend component
6
  component_path = "./igv_component/build"
7
 
8
  # Streamlit components function
9
  component = components.declare_component("igv_component", path=component_path)
10
 
11
+ # Call the component and pass the additional arguments
12
+ return component(crispr_results=crispr_results, genome_reference=genome_reference, gene_symbol=gene_symbol, key=key)
13
+
14
+ # Example usage:
15
+ # crispr_results = ... # your CRISPR results
16
+ # igv_component(crispr_results=crispr_results, genome_reference="hg19", gene_symbol="FOXA1", key="unique_key")