fatmacankara commited on
Commit
86c44a0
·
1 Parent(s): 52c40ac

Update code/pdb_featureVector.py

Browse files
Files changed (1) hide show
  1. code/pdb_featureVector.py +9 -4
code/pdb_featureVector.py CHANGED
@@ -265,21 +265,26 @@ def pdb(input_set, mode, impute):
265
  # st.write('ERROR')
266
 
267
 
268
-
269
- from huggingface_hub import HfApi
270
  api = HfApi()
271
- st.write('api', api)
 
272
  api.upload_file(
273
  path_or_fileobj=response.content,
274
  path_in_repo="out_files/pdb/pdb_structures/",
275
  repo_id="HUBioDataLab/ASCARIS",
276
  repo_type="space")
277
  st.write(f"PDB file {search}.pdb downloaded successfully.")
278
-
279
 
280
  # Aug 23
281
  content = response.content.decode("utf-8") # Decode the content if it's not already a string
 
 
282
  parsed_records = list(SeqIO.parse(content, "fasta"))
 
 
283
  for rec in parsed_records:
284
  st.write(rec)
285
  st.write(rec.id)
 
265
  # st.write('ERROR')
266
 
267
 
268
+ """
269
+ from huggingface_hub import Hf
270
  api = HfApi()
271
+ st.write('api', API)
272
+
273
  api.upload_file(
274
  path_or_fileobj=response.content,
275
  path_in_repo="out_files/pdb/pdb_structures/",
276
  repo_id="HUBioDataLab/ASCARIS",
277
  repo_type="space")
278
  st.write(f"PDB file {search}.pdb downloaded successfully.")
279
+ """
280
 
281
  # Aug 23
282
  content = response.content.decode("utf-8") # Decode the content if it's not already a string
283
+ st.write('Content')
284
+ st.write(content)
285
  parsed_records = list(SeqIO.parse(content, "fasta"))
286
+ st.write('parsed_records')
287
+ st.write(parsed_records)
288
  for rec in parsed_records:
289
  st.write(rec)
290
  st.write(rec.id)