|
3 | 3 | from prody import Contacts, calcDistance, calcAngle |
4 | 4 |
|
5 | 5 | from PPP.global_processes import FindInitialAndFinalResidues |
6 | | -from PPP.global_variables import supported_aminoacids, supported_metals, coordination_geometries |
| 6 | +from PPP.global_variables import default_supported_aminoacids, supported_metals, coordination_geometries |
7 | 7 | from PPP.program_own_classes import ZMATRIX |
8 | 8 |
|
9 | 9 | __author__ = 'jelisa' |
@@ -207,7 +207,7 @@ def CheckStructure(initial_structure, gaps={}, no_gaps={}, charge_terminals=Fals |
207 | 207 | residue_atomnames = list(residue.getNames()) |
208 | 208 | if resname in supported_metals: |
209 | 209 | continue |
210 | | - if resname in supported_aminoacids: |
| 210 | + if resname in default_supported_aminoacids: |
211 | 211 | if charge_terminals: |
212 | 212 | if resnum == initial_residue or resnum in gaps_b: |
213 | 213 | zmatrix = ZMATRIX(resname + 'B') |
@@ -438,7 +438,7 @@ def CheckMutation(wt_structure, mutation): |
438 | 438 | - valid_resnames_file: the path to the file containing a list with the supported mutations |
439 | 439 | """ |
440 | 440 |
|
441 | | - if mutation['fin_resname'] not in supported_aminoacids: |
| 441 | + if mutation['fin_resname'] not in default_supported_aminoacids: |
442 | 442 | return False |
443 | 443 |
|
444 | 444 | testing_the_resnum = "resnum {}".format(mutation['resnum']) |
@@ -536,7 +536,7 @@ def CheckClashes(mutated_protein, mutation, zmatrix, initial_residue, |
536 | 536 | atom2check = mutated_protein.select('index {}'.format(ind)) |
537 | 537 | atom2check_resname = atom2check.getResnames()[0] |
538 | 538 | atom2check_resnum = atom2check.getResnums()[0] |
539 | | - if atom2check_resnum == initial_residue and atom2check_resname in supported_aminoacids: |
| 539 | + if atom2check_resnum == initial_residue and atom2check_resname in default_supported_aminoacids: |
540 | 540 | atom2check_zmatrix = ZMATRIX(atom2check_resname + 'B') |
541 | 541 | elif atom2check_resnum == final_residue: |
542 | 542 | atom2check_zmatrix = ZMATRIX(atom2check_resname + 'E') |
@@ -583,7 +583,7 @@ def CheckforGaps(structure, max_bond_distance): |
583 | 583 | # print residue.getResnum() < previous_residue_number |
584 | 584 | if previous_residue_number is not None: |
585 | 585 | # if residue.getResnum() > previous_residue_number + 1: |
586 | | - if residue.getResname() in supported_aminoacids: |
| 586 | + if residue.getResname() in default_supported_aminoacids: |
587 | 587 | if residue.getResname() == 'ACE': |
588 | 588 | try: |
589 | 589 | gaps[chain_id] |
|
0 commit comments