Spaces:
Sleeping
Sleeping
fix path to h99_transcript_annotations.tsv
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ else:
|
|
29 |
max_per_gene = "25"
|
30 |
|
31 |
st.markdown("""
|
32 |
-
# CryptoCEN
|
33 |
**CryptoCEN** is a co-expression network for *Cryptococcus neoformans* built on 1,524 RNA-seq runs across 34 studies.
|
34 |
A pair of genes are said to be co-expressed when their expression is correlated across different conditions and
|
35 |
is often a marker for genes to be involved in similar processes.
|
@@ -44,10 +44,10 @@ Put a ``CNAG_#####`` gene_id, one one each row to seed the network
|
|
44 |
""")
|
45 |
|
46 |
|
47 |
-
|
48 |
path = "maomlab/CryptoCEN",
|
49 |
-
data_files = {"
|
50 |
-
|
51 |
|
52 |
top_coexp_hits = datasets.load_dataset(
|
53 |
path = "maomlab/CryptoCEN",
|
@@ -122,9 +122,9 @@ descriptions = []
|
|
122 |
|
123 |
for gene_id in gene_ids:
|
124 |
try:
|
125 |
-
cnag_id =
|
126 |
-
gene_name =
|
127 |
-
description =
|
128 |
except:
|
129 |
st.error(f"Unable to locate cnag_id for Gene ID: {gene_id}, it should be of the form 'cnag_######'")
|
130 |
cnag_id = None
|
|
|
29 |
max_per_gene = "25"
|
30 |
|
31 |
st.markdown("""
|
32 |
+
# CryptoCEN Network
|
33 |
**CryptoCEN** is a co-expression network for *Cryptococcus neoformans* built on 1,524 RNA-seq runs across 34 studies.
|
34 |
A pair of genes are said to be co-expressed when their expression is correlated across different conditions and
|
35 |
is often a marker for genes to be involved in similar processes.
|
|
|
44 |
""")
|
45 |
|
46 |
|
47 |
+
h99_transcript_annotations = datasets.load_dataset(
|
48 |
path = "maomlab/CryptoCEN",
|
49 |
+
data_files = {"h99_transcript_annotations": "h99_transcript_annotations.tsv"})
|
50 |
+
h99_transcript_annotations = h99_transcript_annotations["h99_transcript_annotations"].to_pandas()
|
51 |
|
52 |
top_coexp_hits = datasets.load_dataset(
|
53 |
path = "maomlab/CryptoCEN",
|
|
|
122 |
|
123 |
for gene_id in gene_ids:
|
124 |
try:
|
125 |
+
cnag_id = h99_transcript_annotations.loc[h99_transcript_annotations["cnag_id"] == gene_id]["cnag_id"].values[0]
|
126 |
+
gene_name = h99_transcript_annotations.loc[h99_transcript_annotations["gene_id"] == gene_id]["gene_name"].values[0]
|
127 |
+
description = h99_transcript_annotations.loc[h99_transcript_annotations["gene_id"] == gene_id]["description"].values[0]
|
128 |
except:
|
129 |
st.error(f"Unable to locate cnag_id for Gene ID: {gene_id}, it should be of the form 'cnag_######'")
|
130 |
cnag_id = None
|