Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
metaclade2
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
Riccardo Vicedomini
metaclade2
Commits
53c6ca05
Commit
53c6ca05
authored
Apr 25, 2020
by
Riccardo Vicedomini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed error with existing directory
parent
f38df41d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
20 deletions
+11
-20
dama_arch.py
scripts/dama_arch.py
+1
-4
mclade_create_jobs.py
scripts/mclade_create_jobs.py
+6
-6
search_ccms_all.py
scripts/search_ccms_all.py
+2
-5
search_hmm.py
scripts/search_hmm.py
+2
-5
No files found.
scripts/dama_arch.py
View file @
53c6ca05
...
...
@@ -29,10 +29,7 @@ def main():
temp_dir
=
f
'{args.tempDir}'
if
not
os
.
path
.
exists
(
temp_dir
):
try
:
os
.
makedirs
(
temp_dir
)
except
OSError
as
error
:
pass
os
.
makedirs
(
temp_dir
,
exist_ok
=
True
)
start_time
=
time
.
time
()
...
...
scripts/mclade_create_jobs.py
View file @
53c6ca05
...
...
@@ -143,9 +143,9 @@ class CladeController:
def
createSearchFiles
(
self
):
print
(
f
"[{script_name}] creating search jobs"
)
if
not
os
.
path
.
exists
(
self
.
search_jobs_path
):
os
.
makedirs
(
self
.
search_jobs_path
)
os
.
makedirs
(
self
.
search_jobs_path
,
exist_ok
=
True
)
if
not
os
.
path
.
exists
(
self
.
search_results_path
):
os
.
makedirs
(
self
.
search_results_path
)
os
.
makedirs
(
self
.
search_results_path
,
exist_ok
=
True
)
#print(f"[{script_name}] loading CCMs dictionary")
self
.
loadCCMsDict
()
self
.
createSearchJobs
(
self
.
search_jobs_path
,
self
.
name
)
...
...
@@ -154,18 +154,18 @@ class CladeController:
def
createFilterFiles
(
self
):
print
(
f
"[{script_name}] creating filter jobs"
)
if
not
os
.
path
.
exists
(
self
.
filter_results_path
):
os
.
makedirs
(
self
.
filter_results_path
)
os
.
makedirs
(
self
.
filter_results_path
,
exist_ok
=
True
)
if
not
os
.
path
.
exists
(
self
.
filter_jobs_path
):
os
.
makedirs
(
self
.
filter_jobs_path
)
os
.
makedirs
(
self
.
filter_jobs_path
,
exist_ok
=
True
)
self
.
createFilterJobs
(
self
.
filter_jobs_path
,
self
.
name
)
#self.createQsubJob(self.filter_jobs_path,self.name)
def
createArchFiles
(
self
,
use_dama
=
False
):
print
(
f
"[{script_name}] creating architecture jobs"
)
if
not
os
.
path
.
exists
(
self
.
arch_results_path
):
os
.
makedirs
(
self
.
arch_results_path
)
os
.
makedirs
(
self
.
arch_results_path
,
exist_ok
=
True
)
if
not
os
.
path
.
exists
(
self
.
arch_jobs_path
):
os
.
makedirs
(
self
.
arch_jobs_path
)
os
.
makedirs
(
self
.
arch_jobs_path
,
exist_ok
=
True
)
if
use_dama
:
self
.
createDamaArchJob
(
self
.
arch_jobs_path
,
self
.
name
)
else
:
...
...
scripts/search_ccms_all.py
View file @
53c6ca05
...
...
@@ -64,14 +64,11 @@ def main():
temp_dir
=
f
'{args[TMP_DIR]}'
if
not
os
.
path
.
exists
(
temp_dir
):
try
:
os
.
makedirs
(
temp_dir
)
except
OSError
as
error
:
pass
os
.
makedirs
(
temp_dir
,
exist_ok
=
True
)
results_dir
=
f
'{args[RESULTS_DIR]}/{args[ACC_ID]}'
if
not
os
.
path
.
exists
(
results_dir
):
os
.
makedirs
(
results_dir
)
os
.
makedirs
(
results_dir
,
exist_ok
=
True
)
start_time
=
time
.
time
()
hmmsearch_args
=
[
args
[
HMMSEARCH_CMD
],
...
...
scripts/search_hmm.py
View file @
53c6ca05
...
...
@@ -64,14 +64,11 @@ def main():
temp_dir
=
f
'{args[TMP_DIR]}'
if
not
os
.
path
.
exists
(
temp_dir
):
try
:
os
.
makedirs
(
temp_dir
)
except
OSError
as
error
:
pass
os
.
makedirs
(
temp_dir
,
exist_ok
=
True
)
results_dir
=
f
'{args[RESULTS_DIR]}/{args[ACC_ID]}'
if
not
os
.
path
.
exists
(
results_dir
):
os
.
makedirs
(
results_dir
)
os
.
makedirs
(
results_dir
,
exist_ok
=
True
)
start_time
=
time
.
time
()
hmmsearch_args
=
[
args
[
HMMSEARCH_CMD
],
...
...
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