fatmacankara commited on
Commit
8f9f827
·
1 Parent(s): 0d8e357

Update code/alphafold_featureVector.py

Browse files
Files changed (1) hide show
  1. code/alphafold_featureVector.py +7 -4
code/alphafold_featureVector.py CHANGED
@@ -678,18 +678,21 @@ def alphafold(input_set, mode, impute):
678
  alignments = (list(alignments))
679
  #if get_alignments_3D(uniprotID, mod, pdb_path, pdbSequence, 'nan', 'nan', 'nan', mode, Path(path_to_output_files / '3D_alignment'),
680
  # 'gzip') != None:
681
-
682
  if alignments != None:
 
683
  #alignments, coords, resnums_for_sasa = get_alignments_3D(uniprotID, mod, pdb_path, pdbSequence, 'nan',
684
  # 'nan', 'nan', mode, Path(path_to_output_files / '3D_alignment'),
685
  # 'gzip')
686
 
687
 
688
  alignments = alignments[0]
 
 
689
  if ID not in existing_free_sasa:
690
- fullID = f'AF-{ID}-F{model_num}-{file_str }.pdb.gz'
691
- run_freesasa(Path(alphafold_path / fullID),
692
- Path(path_to_output_files / f'freesasa_files/{fullID}.txt'), include_hetatms=True,
693
  outdir=None, force_rerun=False)
694
  st.write('Calulated')
695
  #calculate_freesasa(uniprotID, mod, existing_free_sasa, alphafold_path, path_to_output_files)
 
678
  alignments = (list(alignments))
679
  #if get_alignments_3D(uniprotID, mod, pdb_path, pdbSequence, 'nan', 'nan', 'nan', mode, Path(path_to_output_files / '3D_alignment'),
680
  # 'gzip') != None:
681
+
682
  if alignments != None:
683
+ st.write('I am here')
684
  #alignments, coords, resnums_for_sasa = get_alignments_3D(uniprotID, mod, pdb_path, pdbSequence, 'nan',
685
  # 'nan', 'nan', mode, Path(path_to_output_files / '3D_alignment'),
686
  # 'gzip')
687
 
688
 
689
  alignments = alignments[0]
690
+ st.write('existing_free_sasa', existing_free_sasa)
691
+ st.write('existing_free_sasa', existing_free_sasa)
692
  if ID not in existing_free_sasa:
693
+ fullID = f'AF-{uniprotID}-F{mod}-model_v4.pdb.gz'
694
+ run_freesasa(fullID),
695
+ Path(path_to_output_files / f'freesasa_files/AF-{uniprotID}-F{mod}.txt'), include_hetatms=True,
696
  outdir=None, force_rerun=False)
697
  st.write('Calulated')
698
  #calculate_freesasa(uniprotID, mod, existing_free_sasa, alphafold_path, path_to_output_files)