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
e6123f25
Commit
e6123f25
authored
Oct 10, 2023
by
Mustafa Tekpinar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unused coilbreakerlength argument.
parent
e86e4bf6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
escott.py
prescott/escott.py
+11
-11
No files found.
prescott/escott.py
View file @
e6123f25
...
@@ -791,7 +791,8 @@ def check_argument_groups(parser, arg_dict, group, argument):
...
@@ -791,7 +791,8 @@ def check_argument_groups(parser, arg_dict, group, argument):
parser
.
error
(
"escott requires "
+
group
+
parser
.
error
(
"escott requires "
+
group
+
" to be set to input if "
+
str
(
argument
)
+
" is used."
)
" to be set to input if "
+
str
(
argument
)
+
" is used."
)
return
None
return
None
def
calculateSecondaryStructure
(
pdbfile
,
coilBreakerLength
):
# def calculateSecondaryStructure(pdbfile, coilBreakerLength):
def
calculateSecondaryStructure
(
pdbfile
):
"""
"""
Calls dssp, calculates secondary structure and saves the results as a
Calls dssp, calculates secondary structure and saves the results as a
text file with .dssp extention. The result contains a residue index and
text file with .dssp extention. The result contains a residue index and
...
@@ -993,9 +994,9 @@ def parse_command_line():
...
@@ -993,9 +994,9 @@ def parse_command_line():
help
=
"If coil length is > maxcoillength, it will use JET values."
,
help
=
"If coil length is > maxcoillength, it will use JET values."
,
required
=
False
,
default
=
5
)
required
=
False
,
default
=
5
)
parser
.
add_argument
(
'--coilbreakerlength'
,
dest
=
'coilbreakerlength'
,
type
=
int
,
\
#
parser.add_argument('--coilbreakerlength', dest='coilbreakerlength', type=int, \
help
=
"Length of coil breaking S or T residues between C(S|T)C pattern."
,
#
help="Length of coil breaking S or T residues between C(S|T)C pattern.",
required
=
False
,
default
=
1
)
#
required=False, default=1)
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
...
@@ -1011,7 +1012,7 @@ def parse_command_line():
...
@@ -1011,7 +1012,7 @@ def parse_command_line():
def
doit
(
inAli
,
mutFile
,
retMet
,
bFile
,
fFile
,
n
,
N
,
jetfile
,
pdbfile
,
normWeightMode
,
\
def
doit
(
inAli
,
mutFile
,
retMet
,
bFile
,
fFile
,
n
,
N
,
jetfile
,
pdbfile
,
normWeightMode
,
\
alphabet
,
verbosity
,
offset
,
colormap
,
maxCoilLength
=
5
,
coilbreakerlength
=
1
):
alphabet
,
verbosity
,
offset
,
colormap
,
maxCoilLength
=
5
):
"""
"""
Perfect explanation for a function: typing the function call exactly!
Perfect explanation for a function: typing the function call exactly!
doit is basically the main function in disguise!
doit is basically the main function in disguise!
...
@@ -1082,7 +1083,7 @@ def doit(inAli,mutFile,retMet,bFile,fFile,n,N, jetfile, pdbfile, normWeightMode,
...
@@ -1082,7 +1083,7 @@ def doit(inAli,mutFile,retMet,bFile,fFile,n,N, jetfile, pdbfile, normWeightMode,
print
(
"ERROR: There is not any pdb file."
)
print
(
"ERROR: There is not any pdb file."
)
sys
.
exit
(
-
1
)
sys
.
exit
(
-
1
)
else
:
else
:
calculateSecondaryStructure
(
pdbfile
,
coilbreakerlength
)
calculateSecondaryStructure
(
pdbfile
)
countCoilSegments
(
pdbfile
+
".dssp"
)
countCoilSegments
(
pdbfile
+
".dssp"
)
df
=
pd
.
read_table
(
prot
+
"_jet.res"
,
sep
=
"
\
s+"
)
df
=
pd
.
read_table
(
prot
+
"_jet.res"
,
sep
=
"
\
s+"
)
...
@@ -1119,7 +1120,7 @@ def doit(inAli,mutFile,retMet,bFile,fFile,n,N, jetfile, pdbfile, normWeightMode,
...
@@ -1119,7 +1120,7 @@ def doit(inAli,mutFile,retMet,bFile,fFile,n,N, jetfile, pdbfile, normWeightMode,
print
(
"ERROR: There is not any pdb file."
)
print
(
"ERROR: There is not any pdb file."
)
sys
.
exit
(
-
1
)
sys
.
exit
(
-
1
)
else
:
else
:
calculateSecondaryStructure
(
pdbfile
,
coilbreakerlength
)
calculateSecondaryStructure
(
pdbfile
)
countCoilSegments
(
pdbfile
+
".dssp"
)
countCoilSegments
(
pdbfile
+
".dssp"
)
df
=
pd
.
read_table
(
prot
+
"_jet.res"
,
sep
=
"
\
s+"
)
df
=
pd
.
read_table
(
prot
+
"_jet.res"
,
sep
=
"
\
s+"
)
...
@@ -1156,7 +1157,7 @@ def doit(inAli,mutFile,retMet,bFile,fFile,n,N, jetfile, pdbfile, normWeightMode,
...
@@ -1156,7 +1157,7 @@ def doit(inAli,mutFile,retMet,bFile,fFile,n,N, jetfile, pdbfile, normWeightMode,
print
(
"ERROR: There is not any pdb file."
)
print
(
"ERROR: There is not any pdb file."
)
sys
.
exit
(
-
1
)
sys
.
exit
(
-
1
)
else
:
else
:
calculateSecondaryStructure
(
pdbfile
,
coilbreakerlength
)
calculateSecondaryStructure
(
pdbfile
)
countCoilSegments
(
pdbfile
+
".dssp"
)
countCoilSegments
(
pdbfile
+
".dssp"
)
df
=
pd
.
read_table
(
prot
+
"_jet.res"
,
sep
=
"
\
s+"
)
df
=
pd
.
read_table
(
prot
+
"_jet.res"
,
sep
=
"
\
s+"
)
...
@@ -1220,7 +1221,7 @@ def doit(inAli,mutFile,retMet,bFile,fFile,n,N, jetfile, pdbfile, normWeightMode,
...
@@ -1220,7 +1221,7 @@ def doit(inAli,mutFile,retMet,bFile,fFile,n,N, jetfile, pdbfile, normWeightMode,
threeLetters2oneLetter
=
{
v
:
k
for
k
,
v
in
oneLetter2ThreeLetters
.
items
()}
threeLetters2oneLetter
=
{
v
:
k
for
k
,
v
in
oneLetter2ThreeLetters
.
items
()}
calculateSecondaryStructure
(
pdbfile
,
coilbreakerlength
)
calculateSecondaryStructure
(
pdbfile
)
countCoilSegments
(
pdbfile
+
".dssp"
)
countCoilSegments
(
pdbfile
+
".dssp"
)
df
=
pd
.
read_table
(
prot
+
"_jet.res"
,
sep
=
"
\
s+"
)
df
=
pd
.
read_table
(
prot
+
"_jet.res"
,
sep
=
"
\
s+"
)
...
@@ -1451,8 +1452,7 @@ def main():
...
@@ -1451,8 +1452,7 @@ def main():
doit
(
args
.
input
,
args
.
mutations
,
args
.
retrievingMethod
,
args
.
blastFile
,
\
doit
(
args
.
input
,
args
.
mutations
,
args
.
retrievingMethod
,
args
.
blastFile
,
\
args
.
fastaFile
,
args
.
nIter
,
args
.
NSeqs
,
args
.
jetfile
,
args
.
pdbfile
,
\
args
.
fastaFile
,
args
.
nIter
,
args
.
NSeqs
,
args
.
jetfile
,
args
.
pdbfile
,
\
args
.
normweightmode
,
args
.
alphabet
,
args
.
verbose
,
args
.
offset
,
\
args
.
normweightmode
,
args
.
alphabet
,
args
.
verbose
,
args
.
offset
,
\
args
.
colormap
,
maxCoilLength
=
args
.
maxcoillength
,
\
args
.
colormap
,
maxCoilLength
=
args
.
maxcoillength
)
coilbreakerlength
=
args
.
coilbreakerlength
)
toc
=
time
.
perf_counter
()
toc
=
time
.
perf_counter
()
...
...
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