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
a17f0f90
Commit
a17f0f90
authored
Jun 07, 2023
by
Mustafa Tekpinar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed $ESGEMME_PATH dependency for default.conf.
parent
16b622fa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
10 deletions
+15
-10
default.conf
esgemme/default.conf
+0
-0
esgemme.py
esgemme/esgemme.py
+12
-9
setup.py
setup.py
+3
-1
No files found.
default.conf
→
esgemme/
default.conf
View file @
a17f0f90
File moved
esgemme/esgemme.py
View file @
a17f0f90
...
...
@@ -27,8 +27,8 @@ import biotite.structure.io as strucio
import
biotite.application.dssp
as
dssp
import
biotite.structure.io.pdb
as
pdb
#from gemmeAnal import *
import
importlib.resources
from
importlib.resources
import
files
,
as_file
import
pandas
as
pd
def
selectMaxFastaSequences
(
inputMSAfile
,
outputMSAfile
,
maxNumSeqs
=
40001
):
...
...
@@ -202,12 +202,15 @@ def launchJET(prot, retMet, bFile, fFile, pdbfile, chains, n, N, nl):
"""
chainID
=
chains
[
0
]
#TODO: Remove Bash dependency here. Make the copying process in Python
#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
())
# esgemme_path = os.path.expandvars ('$ESGEMME_PATH')
# shutil.copy2(os.path.join(esgemme_path, "default.conf"), os.getcwd())
# esgemme_default_conf_path = importlib.resources.path('esgemme', 'default.conf')
# print(esgemme_default_conf_path)
source
=
files
(
'esgemme'
)
.
joinpath
(
'default.conf'
)
with
as_file
(
source
)
as
esgemme_default_conf_path
:
#third_party_api_requiring_file_system_path(eml)
shutil
.
copy2
(
esgemme_default_conf_path
,
os
.
getcwd
())
if
retMet
==
"input"
:
...
...
@@ -360,8 +363,8 @@ def cleanTheMess(prot,bFile,fFile, chainID, verbosity=False):
if
os
.
path
.
isfile
(
"caracTest.dat"
):
os
.
remove
(
"caracTest.dat"
)
if
os
.
path
.
isfile
(
"default.conf"
):
os
.
remove
(
"default.conf"
)
if
os
.
path
.
isfile
(
"default.conf"
):
os
.
remove
(
"default.conf"
)
if
verbosity
==
False
:
if
os
.
path
.
isfile
(
prot
+
"_normPred_evolInd.txt"
):
...
...
setup.py
View file @
a17f0f90
...
...
@@ -63,5 +63,7 @@ setup(name='esgemme',
'console_scripts'
:
[
'esgemme=esgemme.esgemme:main'
]
}
},
include_package_data
=
True
,
package_data
=
{
'esgemme'
:[
'default.conf'
]},
)
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