fatmacankara commited on
Commit
7616725
·
1 Parent(s): 3fdd6f1

Update code/alphafold_featureVector.py

Browse files
Files changed (1) hide show
  1. code/alphafold_featureVector.py +5 -2
code/alphafold_featureVector.py CHANGED
@@ -31,7 +31,7 @@ from Bio import SeqIO
31
  from Bio.PDB import *
32
  import numpy as np
33
 
34
-
35
 
36
 
37
  # FUNCTIONS
@@ -80,8 +80,11 @@ def alphafold(input_set, mode, impute):
80
  data = clean_data(input_set)
81
 
82
  path_to_input_files, path_to_output_files, path_to_domains, fisher_path, path_to_interfaces, alphafold_path, alphafold_summary= manage_files(mode)
83
- out_path = path_to_output_files / 'log.txt'
84
  #sys.stdout = open(out_path, 'w')
 
 
 
85
  print('Creating directories...')
86
  file_base = str(Path(alphafold_path / '*'))
87
  file_str = glob.glob(file_base)[0].split('-')[-1].split('.')[0]
 
31
  from Bio.PDB import *
32
  import numpy as np
33
 
34
+ from huggingface_hub import hf_hub_download
35
 
36
 
37
  # FUNCTIONS
 
80
  data = clean_data(input_set)
81
 
82
  path_to_input_files, path_to_output_files, path_to_domains, fisher_path, path_to_interfaces, alphafold_path, alphafold_summary= manage_files(mode)
83
+ #out_path = path_to_output_files / 'log.txt'
84
  #sys.stdout = open(out_path, 'w')
85
+ alphafold_path = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures",repo_type = 'dataset', filename="AF-A0A075B7D0-F1-model_v4.pdb.gz")
86
+ st.write('aldjflsjflsjfld')
87
+ st.write(alphafold_path)
88
  print('Creating directories...')
89
  file_base = str(Path(alphafold_path / '*'))
90
  file_str = glob.glob(file_base)[0].split('-')[-1].split('.')[0]