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
a12e8938
Commit
a12e8938
authored
Apr 28, 2022
by
Mustafa Tekpinar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some changes to make the program run on python3 (tested with 3.9.7 ).
parent
f61b87d1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
10 deletions
+16
-10
.gitignore
.gitignore
+5
-2
gemme.py
gemme.py
+3
-3
gemmeAnal.py
gemmeAnal.py
+8
-5
No files found.
.gitignore
View file @
a12e8938
*~
*~
._*
._*
\ No newline at end of file
.Rhistory
example/.RData
gemmeAnal.pyc
\ No newline at end of file
gemme.py
View file @
a12e8938
...
@@ -135,14 +135,14 @@ def doit(inAli,mutFile,retMet,bFile,fFile,n,N):
...
@@ -135,14 +135,14 @@ def doit(inAli,mutFile,retMet,bFile,fFile,n,N):
createPDB
(
prot
,
seq
)
createPDB
(
prot
,
seq
)
print
"query protein: "
+
prot
print
(
"query protein: "
+
prot
)
print
"computing conservation levels..."
print
(
"computing conservation levels..."
)
#I intend to run JET2 completely externally!!
#I intend to run JET2 completely externally!!
#It is too much buggy and it has too many dependencies.
#It is too much buggy and it has too many dependencies.
#Using it with a Docker or Singularity may be the best solution!
#Using it with a Docker or Singularity may be the best solution!
launchJET
(
prot
,
retMet
,
bFile
,
fFile
,
n
,
N
,
nl
)
launchJET
(
prot
,
retMet
,
bFile
,
fFile
,
n
,
N
,
nl
)
print
"done"
print
(
"done"
)
launchPred
(
prot
,
inAli
,
mutFile
)
launchPred
(
prot
,
inAli
,
mutFile
)
cleanTheMess
(
prot
,
bFile
,
fFile
)
cleanTheMess
(
prot
,
bFile
,
fFile
)
...
...
gemmeAnal.py
View file @
a12e8938
...
@@ -62,8 +62,7 @@ def createPDB(prot,seq):
...
@@ -62,8 +62,7 @@ def createPDB(prot,seq):
# Edit JET configuration file with correct number of Seqs & MSA
# Edit JET configuration file with correct number of Seqs & MSA
def
editConfJET
(
N
):
def
editConfJET
(
N
):
reCode
=
subprocess
.
call
(
"sed -i 's/results
\t\t
5000/results
\t\t
"
+
str
(
N
)
+
"/' default.conf"
,
shell
=
True
)
reCode
=
subprocess
.
call
(
"sed -i 's/results
\t\t
5000/results
\t\t
"
+
str
(
N
)
+
"/' default.conf"
,
shell
=
True
)
return
(
reCode
)
return
(
reCode
)
# Run JET to compute TJET values
# Run JET to compute TJET values
...
@@ -105,10 +104,14 @@ def launchJET(prot,retMet,bFile,fFile,n,N,nl):
...
@@ -105,10 +104,14 @@ def launchJET(prot,retMet,bFile,fFile,n,N,nl):
subprocess
.
call
(
"cp $GEMME_PATH/default.conf ."
,
shell
=
True
)
subprocess
.
call
(
"cp $GEMME_PATH/default.conf ."
,
shell
=
True
)
if
retMet
==
"input"
:
if
retMet
==
"input"
:
if
bFile
!=
''
:
if
bFile
!=
''
:
subprocess
.
call
(
"cp "
+
bFile
+
" "
+
prot
+
"_A.psiblast"
,
shell
=
True
)
if
(
bFile
==
prot
+
"_A.psiblast"
):
shutil
.
copy2
(
bFile
,
bFile
+
".orig"
)
shutil
.
copy2
(
bFile
+
".orig "
,
prot
+
"_A.psiblast"
)
else
:
shutil
.
copy2
(
bFile
+
" "
,
prot
+
"_A.psiblast"
)
jetcmd
=
"java -Xmx1000m -cp $JET2_PATH:$JET2_PATH/jet/extLibs/vecmath.jar jet.JET -c default.conf -i "
+
prot
+
".pdb -o `pwd` -p J -r input -b "
+
prot
+
"_A.psiblast -d chain -n "
+
n
+
" > "
+
prot
+
".out"
jetcmd
=
"java -Xmx1000m -cp $JET2_PATH:$JET2_PATH/jet/extLibs/vecmath.jar jet.JET -c default.conf -i "
+
prot
+
".pdb -o `pwd` -p J -r input -b "
+
prot
+
"_A.psiblast -d chain -n "
+
n
+
" > "
+
prot
+
".out"
else
:
else
:
print
N
print
(
N
)
editConfJET
(
N
)
editConfJET
(
N
)
if
(
fFile
==
prot
+
"_A.fasta"
):
if
(
fFile
==
prot
+
"_A.fasta"
):
...
@@ -139,7 +142,7 @@ def launchPred(prot,inAli,mutFile):
...
@@ -139,7 +142,7 @@ def launchPred(prot,inAli,mutFile):
else
:
else
:
rcmd
=
"Rscript --save $GEMME_PATH/computePred.R "
+
prot
+
" "
+
inAli
+
" TRUE none"
rcmd
=
"Rscript --save $GEMME_PATH/computePred.R "
+
prot
+
" "
+
inAli
+
" TRUE none"
print
rcmd
print
(
"
\n
Running:
\n
"
+
rcmd
)
reCode
=
subprocess
.
call
(
rcmd
,
shell
=
True
)
reCode
=
subprocess
.
call
(
rcmd
,
shell
=
True
)
#Add plots here with gemmemore
#Add plots here with gemmemore
...
...
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