Spaces:
Sleeping
Sleeping
update style
Browse files
app.py
CHANGED
@@ -26,8 +26,10 @@ st.markdown("""
|
|
26 |
A pair of genes are said to be co-expressed when their expression is correlated across different conditions and
|
27 |
is often a marker for genes to be involved in similar processes.
|
28 |
To Cite:
|
29 |
-
|
30 |
-
|
|
|
|
|
31 |
* Code available at https://github.com/maomlab/CalCEN/tree/master/vignettes/ToxoCEN
|
32 |
* Full network and dataset: https://huggingface.co/datasets/maomlab/ToxoCEN
|
33 |
## Plot a network for a set of genes
|
@@ -104,6 +106,12 @@ node_info = pd.DataFrame({
|
|
104 |
# note I think CytoscapeJS can layout graphs
|
105 |
# but I'm unsure how to do it through the streamlit-cytoscapejs interface :(
|
106 |
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
G = nx.Graph()
|
108 |
G.add_weighted_edges_from(
|
109 |
[neighbors.gene_id_1.to_list(), neighbors.gene_id_2.to_list(), neighbors.coexp_score.to_list()])
|
@@ -140,9 +148,14 @@ with col3:
|
|
140 |
##########################################################
|
141 |
|
142 |
stylesheet = [
|
143 |
-
{"selector": "node", "style": {
|
144 |
-
|
145 |
-
|
|
|
|
|
|
|
|
|
|
|
146 |
]
|
147 |
|
148 |
st.title("ToxoCEN Network")
|
|
|
26 |
A pair of genes are said to be co-expressed when their expression is correlated across different conditions and
|
27 |
is often a marker for genes to be involved in similar processes.
|
28 |
To Cite:
|
29 |
+
|
30 |
+
CS Arnold, Y Wang, VB Carruthers, MJ O'Meara
|
31 |
+
ToxoCEN: A Co-Expression Network for Toxoplasma gondii
|
32 |
+
|
33 |
* Code available at https://github.com/maomlab/CalCEN/tree/master/vignettes/ToxoCEN
|
34 |
* Full network and dataset: https://huggingface.co/datasets/maomlab/ToxoCEN
|
35 |
## Plot a network for a set of genes
|
|
|
106 |
# note I think CytoscapeJS can layout graphs
|
107 |
# but I'm unsure how to do it through the streamlit-cytoscapejs interface :(
|
108 |
|
109 |
+
|
110 |
+
st.write(f"gene_id_1: {neighbors.gene_id_1.to_list()}")
|
111 |
+
st.write(f"gene_id_2: {neighbors.gene_id_2.to_list()}")
|
112 |
+
st.write(f"coexp_scores: {neighbors.coexp_scores.to_list()}")
|
113 |
+
|
114 |
+
|
115 |
G = nx.Graph()
|
116 |
G.add_weighted_edges_from(
|
117 |
[neighbors.gene_id_1.to_list(), neighbors.gene_id_2.to_list(), neighbors.coexp_score.to_list()])
|
|
|
148 |
##########################################################
|
149 |
|
150 |
stylesheet = [
|
151 |
+
{"selector": "node", "style": {
|
152 |
+
"width": 200,
|
153 |
+
"height": 75,
|
154 |
+
"shape": "rectangle",
|
155 |
+
"labelFontSize": 100,
|
156 |
+
|
157 |
+
}},
|
158 |
+
{"selector": "edge", "style": {"width": 10}}
|
159 |
]
|
160 |
|
161 |
st.title("ToxoCEN Network")
|