Spaces:
Sleeping
Sleeping
ThorbenFroehlking commited on
Commit ·
805e870
1
Parent(s): 160210a
Update
Browse files- .ipynb_checkpoints/app-checkpoint.py +1 -1
- app.py +1 -1
.ipynb_checkpoints/app-checkpoint.py
CHANGED
|
@@ -127,7 +127,7 @@ def create_chain_specific_pdb(input_pdb: str, chain_id: str, residue_scores: lis
|
|
| 127 |
|
| 128 |
def accept_atom(self, atom):
|
| 129 |
if atom.parent.id[1] in self.scores_dict:
|
| 130 |
-
atom.bfactor = self.scores_dict[atom.parent.id[1]] * 100
|
| 131 |
return True
|
| 132 |
|
| 133 |
# Prepare output PDB with selected chain and residues, modified B-factors
|
|
|
|
| 127 |
|
| 128 |
def accept_atom(self, atom):
|
| 129 |
if atom.parent.id[1] in self.scores_dict:
|
| 130 |
+
atom.bfactor = np.absolute(1-self.scores_dict[atom.parent.id[1]]) * 100
|
| 131 |
return True
|
| 132 |
|
| 133 |
# Prepare output PDB with selected chain and residues, modified B-factors
|
app.py
CHANGED
|
@@ -127,7 +127,7 @@ def create_chain_specific_pdb(input_pdb: str, chain_id: str, residue_scores: lis
|
|
| 127 |
|
| 128 |
def accept_atom(self, atom):
|
| 129 |
if atom.parent.id[1] in self.scores_dict:
|
| 130 |
-
atom.bfactor = self.scores_dict[atom.parent.id[1]] * 100
|
| 131 |
return True
|
| 132 |
|
| 133 |
# Prepare output PDB with selected chain and residues, modified B-factors
|
|
|
|
| 127 |
|
| 128 |
def accept_atom(self, atom):
|
| 129 |
if atom.parent.id[1] in self.scores_dict:
|
| 130 |
+
atom.bfactor = np.absolute(1-self.scores_dict[atom.parent.id[1]]) * 100
|
| 131 |
return True
|
| 132 |
|
| 133 |
# Prepare output PDB with selected chain and residues, modified B-factors
|