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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
gemme.py
gemme.py
+17
-7
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,9 +108,15 @@ def calcBfactors(pdbfile, outfile, nmodes=None, attenuate="true", ranksorted="tr
# np.savetxt(outfile, dfi)
if
(
ranksorted
.
lower
()
==
'true'
):
return
percentBfactors
if
(
inverted
==
True
):
return
(
1.0
-
percentBfactors
)
else
:
return
percentBfactors
else
:
return
bfactors
if
(
inverted
==
True
):
return
(
np
.
max
(
bfactors
)
-
bfactors
)
else
:
return
bfactors
def
getBfactors
(
pdbfile
,
outfile
,
nmodes
=
None
,
attenuate
=
"true"
,
ranksorted
=
"true"
):
"""
...
...
@@ -552,11 +560,13 @@ def doit(inAli,mutFile,retMet,bFile,fFile,n,N, jetfile, pdbfile, normWeightMode,
if
(
pdbfile
==
None
):
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!"
)
else
:
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