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
f469ecb8
Commit
f469ecb8
authored
Mar 15, 2023
by
Mustafa Tekpinar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed default.conf file copy process from bash to more Pythonic way.
parent
b20bee53
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
esgemme.py
esgemme.py
+6
-1
No files found.
esgemme.py
View file @
f469ecb8
...
@@ -173,7 +173,11 @@ def launchJET(prot, retMet, bFile, fFile, pdbfile, chains, n, N, nl):
...
@@ -173,7 +173,11 @@ def launchJET(prot, retMet, bFile, fFile, pdbfile, chains, n, N, nl):
chainID
=
chains
[
0
]
chainID
=
chains
[
0
]
#TODO: Remove Bash dependency here. Make the copying process in Python
#TODO: Remove Bash dependency here. Make the copying process in Python
subprocess
.
call
(
"cp $ESGEMME_PATH/default.conf ."
,
shell
=
True
)
#subprocess.call("cp $ESGEMME_PATH/default.conf .",shell=True)
esgemme_path
=
os
.
path
.
expandvars
(
'$ESGEMME_PATH'
)
shutil
.
copy2
(
os
.
path
.
join
(
esgemme_path
,
"default.conf"
),
os
.
getcwd
())
if
retMet
==
"input"
:
if
retMet
==
"input"
:
if
bFile
!=
''
:
if
bFile
!=
''
:
...
@@ -186,6 +190,7 @@ def launchJET(prot, retMet, bFile, fFile, pdbfile, chains, n, N, nl):
...
@@ -186,6 +190,7 @@ def launchJET(prot, retMet, bFile, fFile, pdbfile, chains, n, N, nl):
shutil
.
copy2
(
bFile
+
".orig "
,
prot
+
"_"
+
chainID
+
".psiblast"
)
shutil
.
copy2
(
bFile
+
".orig "
,
prot
+
"_"
+
chainID
+
".psiblast"
)
else
:
else
:
shutil
.
copy2
(
bFile
+
" "
,
prot
+
"_"
+
chainID
+
".psiblast"
)
shutil
.
copy2
(
bFile
+
" "
,
prot
+
"_"
+
chainID
+
".psiblast"
)
if
(
pdbfile
==
None
):
if
(
pdbfile
==
None
):
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 J -r input -b "
+
prot
+
"_"
+
chainID
+
".psiblast -d chain -n "
+
n
+
" > "
+
prot
+
".out"
prot
+
".pdb -o `pwd` -p J -r input -b "
+
prot
+
"_"
+
chainID
+
".psiblast -d chain -n "
+
n
+
" > "
+
prot
+
".out"
...
...
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