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
8e2a131c
Commit
8e2a131c
authored
Mar 15, 2023
by
Mustafa Tekpinar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Commented bfactor-related unused code.
parent
83ba006d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
25 deletions
+25
-25
esgemme.py
esgemme.py
+25
-25
No files found.
esgemme.py
View file @
8e2a131c
...
@@ -962,33 +962,33 @@ def doit(inAli,mutFile,retMet,bFile,fFile,n,N, jetfile, pdbfile, normWeightMode,
...
@@ -962,33 +962,33 @@ def doit(inAli,mutFile,retMet,bFile,fFile,n,N, jetfile, pdbfile, normWeightMode,
df
.
to_csv
(
prot
+
"_jet.res"
,
header
=
True
,
index
=
None
,
sep
=
'
\t
'
,
mode
=
'w'
)
df
.
to_csv
(
prot
+
"_jet.res"
,
header
=
True
,
index
=
None
,
sep
=
'
\t
'
,
mode
=
'w'
)
print
(
df
)
print
(
df
)
#If a real pdb file is given, calculate or get Bfactors for the residues.
#
#
If a real pdb file is given, calculate or get Bfactors for the residues.
if
(((
normWeightMode
==
'bfactor'
)
or
(
normWeightMode
==
'maxtracebfactor'
)
or
(
normWeightMode
==
'maxbfactortrace'
))):
#
if(((normWeightMode=='bfactor') or (normWeightMode=='maxtracebfactor') or (normWeightMode=='maxbfactortrace'))):
isCalc
=
True
#
isCalc = True
if
(
pdbfile
==
None
):
#
if (pdbfile == None):
print
(
"ERROR: There is not any pdb file to calculate or get Bfactors!"
)
#
print("ERROR: There is not any pdb file to calculate or get Bfactors!")
sys
.
exit
(
-
1
)
#
sys.exit(-1)
else
:
#
else:
if
(
isCalc
):
#
if (isCalc):
print
(
"Computing Bfactors from the user-provided pdb file using ANM with all modes."
)
#
print("Computing Bfactors from the user-provided pdb file using ANM with all modes.")
#Original
#
#Original
# bfactors = calcBfactors(pdbfile, outfile=None, nmodes=None, \
#
# bfactors = calcBfactors(pdbfile, outfile=None, nmodes=None, \
# attenuate="true", ranksorted="true", inverted=False)
#
# attenuate="true", ranksorted="true", inverted=False)
bfactors
=
calcBfactors
(
pdbfile
,
outfile
=
None
,
nmodes
=
10
,
\
#
bfactors = calcBfactors(pdbfile, outfile=None, nmodes=10, \
attenuate
=
"false"
,
ranksorted
=
"true"
,
inverted
=
True
)
#
attenuate="false", ranksorted="true", inverted=True)
else
:
#
else:
print
(
"Getting Bfactors from the user-provided pdb file."
)
#
print("Getting Bfactors from the user-provided pdb file.")
bfactors
=
getBfactors
(
pdbfile
,
outfile
=
None
,
\
#
bfactors = getBfactors(pdbfile, outfile=None,\
attenuate
=
"true"
,
ranksorted
=
"true"
,
inverted
=
False
)
#
attenuate="true", ranksorted="true", inverted=False)
bfactors
=
bfactors
#
bfactors = bfactors
df
=
pd
.
read_table
(
prot
+
"_jet.res"
)
#
df = pd.read_table(prot+"_jet.res")
print
(
df
)
#
print(df)
df
[
'bfactor'
]
=
bfactors
.
round
(
4
)
#
df['bfactor'] = bfactors.round(4)
df
.
to_csv
(
prot
+
"_jet.res"
,
header
=
True
,
index
=
None
,
sep
=
'
\t
'
,
mode
=
'w'
)
#
df.to_csv(prot+"_jet.res", header=True, index=None, sep='\t', mode='w')
print
(
df
)
#
print(df)
launchPred
(
prot
,
inAli
,
mutFile
,
normWeightMode
,
alphabet
)
launchPred
(
prot
,
inAli
,
mutFile
,
normWeightMode
,
alphabet
)
...
...
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