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
7b3f2711
Commit
7b3f2711
authored
Feb 14, 2023
by
Mustafa Tekpinar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved the main function under if(__name__) block in sgemme.py.
parent
a823960e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
8 deletions
+18
-8
LICENSE.txt
LICENSE.txt
+1
-0
gemmeAnal.py
gemmeAnal.py
+12
-0
pred.R
pred.R
+1
-1
sgemme.py
sgemme.py
+4
-7
No files found.
LICENSE.txt
View file @
7b3f2711
MIT License
MIT License
Copyright (c) 2018: Elodie Laine, Yasaman Karami and Alessandra Carbone.
Copyright (c) 2018: Elodie Laine, Yasaman Karami and Alessandra Carbone.
Copyright (c) 2022-2023: Mustafa Tekpinar and Alessandra Carbone.
Permission is hereby granted, free of charge, to any person obtaining a copy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
of this software and associated documentation files (the "Software"), to deal
...
...
gemmeAnal.py
View file @
7b3f2711
...
@@ -357,6 +357,18 @@ def launchJET(prot, retMet, bFile, fFile, pdbfile, chains, n, N, nl):
...
@@ -357,6 +357,18 @@ def launchJET(prot, retMet, bFile, fFile, pdbfile, chains, n, N, nl):
# prot+".pdb -o `pwd` -p AVJ -r "+retMet+" -d chain -n "+n+" > "+prot+".out"
# prot+".pdb -o `pwd` -p AVJ -r "+retMet+" -d chain -n "+n+" > "+prot+".out"
jetcmd
=
"java -Xmx4096m -cp $JET2_PATH:$JET2_PATH/jet/extLibs/vecmath.jar jet.JET -c default.conf -i "
+
\
jetcmd
=
"java -Xmx4096m -cp $JET2_PATH:$JET2_PATH/jet/extLibs/vecmath.jar jet.JET -c default.conf -i "
+
\
prot
+
".pdb -o `pwd` -p AVJCG -r "
+
retMet
+
" -d chain -n "
+
n
+
" -a 5"
+
" > "
+
prot
+
".out"
prot
+
".pdb -o `pwd` -p AVJCG -r "
+
retMet
+
" -d chain -n "
+
n
+
" -a 5"
+
" > "
+
prot
+
".out"
reCode
=
subprocess
.
call
(
jetcmd
,
shell
=
True
)
if
os
.
path
.
isfile
(
prot
+
"/"
+
prot
+
"_jet.res"
):
os
.
rename
(
prot
+
"/"
+
prot
+
"_jet.res"
,
prot
+
"_jet.res"
)
dir_name
=
prot
+
"/"
if
os
.
path
.
isdir
(
dir_name
):
for
f
in
os
.
listdir
(
dir_name
):
f_path
=
os
.
path
.
join
(
dir_name
,
f
)
if
os
.
path
.
isfile
(
f_path
):
os
.
remove
(
f_path
)
os
.
rmdir
(
dir_name
)
# print("\nRunning:\n"+jetcmd)
# print("\nRunning:\n"+jetcmd)
# reCode=subprocess.call(jetcmd,shell=True)
# reCode=subprocess.call(jetcmd,shell=True)
# if os.path.isfile(prot+"/"+prot+"_jet.res"):
# if os.path.isfile(prot+"/"+prot+"_jet.res"):
...
...
pred.R
View file @
7b3f2711
# Copyright (c) 2018: Elodie Laine
# Copyright (c) 2018: Elodie Laine
# Copyright (c) 2022: Mustafa Tekpinar
# Copyright (c) 2022
-2023
: Mustafa Tekpinar
# This code is part of the gemme package and governed by its license.
# This code is part of the gemme package and governed by its license.
# Please see the LICENSE.txt file included as part of this package.
# Please see the LICENSE.txt file included as part of this package.
...
...
sgemme.py
View file @
7b3f2711
...
@@ -657,7 +657,7 @@ def doit(inAli,mutFile,retMet,bFile,fFile,n,N, jetfile, pdbfile, normWeightMode,
...
@@ -657,7 +657,7 @@ def doit(inAli,mutFile,retMet,bFile,fFile,n,N, jetfile, pdbfile, normWeightMode,
print
(
df
)
print
(
df
)
launchPred
(
prot
,
inAli
,
mutFile
,
normWeightMode
,
alphabet
)
launchPred
(
prot
,
inAli
,
mutFile
,
normWeightMode
,
alphabet
)
#Do Python plotting here
#Do Python plotting here
#TODO: Eventually, I will do the map plotting with a completely independent
#TODO: Eventually, I will do the map plotting with a completely independent
...
@@ -699,19 +699,16 @@ def doit(inAli,mutFile,retMet,bFile,fFile,n,N, jetfile, pdbfile, normWeightMode,
...
@@ -699,19 +699,16 @@ def doit(inAli,mutFile,retMet,bFile,fFile,n,N, jetfile, pdbfile, normWeightMode,
cleanTheMess
(
prot
,
bFile
,
fFile
,
chainID
=
chains
[
0
])
cleanTheMess
(
prot
,
bFile
,
fFile
,
chainID
=
chains
[
0
])
if
(
__name__
==
'__main__'
):
def
main
():
tic
=
time
.
perf_counter
()
tic
=
time
.
perf_counter
()
args
=
parse_command_line
()
args
=
parse_command_line
()
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
.
normweightmode
,
args
.
alphabet
)
toc
=
time
.
perf_counter
()
toc
=
time
.
perf_counter
()
print
(
f
"S-GEMME computation finished in {toc - tic:0.4f} seconds!"
)
print
(
f
"S-GEMME computation finished in {toc - tic:0.4f} seconds!"
)
if
(
__name__
==
'__main__'
):
main
()
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