Spaces:
Running
Running
look up cnag_ids from gene_ids
Browse files
app.py
CHANGED
@@ -122,11 +122,11 @@ descriptions = []
|
|
122 |
|
123 |
for gene_id in gene_ids:
|
124 |
try:
|
125 |
-
cnag_id = h99_transcript_annotations.loc[h99_transcript_annotations["
|
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
|
131 |
gene_name = None
|
132 |
description = None
|
|
|
122 |
|
123 |
for gene_id in gene_ids:
|
124 |
try:
|
125 |
+
cnag_id = h99_transcript_annotations.loc[h99_transcript_annotations["gene_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
|
131 |
gene_name = None
|
132 |
description = None
|