maom commited on
Commit
dabe03d
·
verified ·
1 Parent(s): b3b4ade

look up cnag_ids from gene_ids

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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["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
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