fatmacankara commited on
Commit
77b6409
·
1 Parent(s): 0c133ce

Update code/alphafold_featureVector.py

Browse files
Files changed (1) hide show
  1. code/alphafold_featureVector.py +18 -0
code/alphafold_featureVector.py CHANGED
@@ -367,6 +367,24 @@ def alphafold(input_set, mode, impute):
367
  KeyError
368
  info_per_model[mod][annot] = annotation_pos_on_pdb_
369
  #pdb_path = Path(f'{alphafold_path}/AF-{uniprotID}-F{mod}-{file_str}.pdb.gz')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
370
  st.write('HERE1')
371
  pdb_path= hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures", filename=f"AF-{uniprotID}-F{mod}-model_v4.pdb.gz",repo_type = 'dataset')
372
  with gzip.open(pdb_path, mode="rt") as f:
 
367
  KeyError
368
  info_per_model[mod][annot] = annotation_pos_on_pdb_
369
  #pdb_path = Path(f'{alphafold_path}/AF-{uniprotID}-F{mod}-{file_str}.pdb.gz')
370
+
371
+
372
+ st.write('-----')
373
+ st.write('')
374
+ mod = 1
375
+ name = 'A0A075B6Y9'
376
+ pdb_path = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures", filename=f"AF-{name}-F{mod}-model_v4.pdb.gz",repo_type = 'dataset')
377
+ st.write('PATH')
378
+ st.write(pdb_path)
379
+ st.write('HER')
380
+ with gzip.open(pdb_path, mode="rt") as f:
381
+ file_content = f.read()
382
+ st.write(file_content)
383
+ st.write('REH')
384
+ st.write('-----')
385
+ st.write('')
386
+
387
+
388
  st.write('HERE1')
389
  pdb_path= hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures", filename=f"AF-{uniprotID}-F{mod}-model_v4.pdb.gz",repo_type = 'dataset')
390
  with gzip.open(pdb_path, mode="rt") as f: