Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PRESCOTT
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mustafa Tekpinar
PRESCOTT
Commits
7f465557
Commit
7f465557
authored
Jul 22, 2022
by
Mustafa Tekpinar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Final version of Bfactor incorporation.
parent
ddc80a51
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
gemme.py
gemme.py
+14
-4
No files found.
gemme.py
View file @
7f465557
...
...
@@ -76,9 +76,11 @@ def calcPercentDFI(pdbfile, outfile, nmodes=None, attenuate="true", ranksorted="
else
:
return
dfi
def
calcBfactors
(
pdbfile
,
outfile
,
nmodes
=
None
,
attenuate
=
"true"
,
ranksorted
=
"true"
):
def
calcBfactors
(
pdbfile
,
outfile
,
nmodes
=
None
,
attenuate
=
"true"
,
ranksorted
=
"true"
,
inverted
=
False
):
"""
Calculate rank normalized dynamic flexibility index.
Calculate rank normalized mean squared fluctuations,
which correlate well with Bfactors.
"""
#confProDy(auto_show=False)
...
...
@@ -106,8 +108,14 @@ def calcBfactors(pdbfile, outfile, nmodes=None, attenuate="true", ranksorted="tr
# np.savetxt(outfile, dfi)
if
(
ranksorted
.
lower
()
==
'true'
):
if
(
inverted
==
True
):
return
(
1.0
-
percentBfactors
)
else
:
return
percentBfactors
else
:
if
(
inverted
==
True
):
return
(
np
.
max
(
bfactors
)
-
bfactors
)
else
:
return
bfactors
def
getBfactors
(
pdbfile
,
outfile
,
nmodes
=
None
,
attenuate
=
"true"
,
ranksorted
=
"true"
):
...
...
@@ -553,10 +561,12 @@ def doit(inAli,mutFile,retMet,bFile,fFile,n,N, jetfile, pdbfile, normWeightMode,
print
(
"ERROR: There is not any pdb file to calculate or get Bfactors!"
)
sys
.
exit
(
-
1
)
else
:
print
(
"Calculating or getting Bfactor data per residue!"
)
if
(
isCalc
):
bfactors
=
calcBfactors
(
pdbfile
,
outfile
=
None
,
nmodes
=
None
,
attenuate
=
"true"
,
ranksorted
=
"true"
)
print
(
"Computing Bfactors from the user-provided pdb file using ANM with all modes."
)
bfactors
=
calcBfactors
(
pdbfile
,
outfile
=
None
,
nmodes
=
None
,
\
attenuate
=
"true"
,
ranksorted
=
"true"
,
inverted
=
False
)
else
:
print
(
"Getting Bfactors from the user-provided pdb file."
)
bfactors
=
getBfactors
(
pdbfile
,
outfile
=
None
,
nmodes
=
None
,
attenuate
=
"true"
,
ranksorted
=
"true"
)
bfactors
=
bfactors
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment