Skip to content

Commit

Permalink
Fixed a couple of messages in testing, fixed Daijin failing when DRMA…
Browse files Browse the repository at this point in the history
…A is not present (EI-CoreBioinformatics#119), fixed requirements, added conda recipes
  • Loading branch information
Luca Venturini authored and Luca Venturini committed May 10, 2018
1 parent c9e2e7e commit 2fbe61b
Show file tree
Hide file tree
Showing 19 changed files with 534 additions and 281 deletions.
275 changes: 0 additions & 275 deletions .circleci-TBA/config.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Mikado/__init__.py
Expand Up @@ -10,7 +10,7 @@
__author__ = 'Luca Venturini'
__license__ = 'GPL3'
__copyright__ = 'Copyright 2015-2016 Luca Venturini'
__version__ = "1.2"
__version__ = "1.2.1"

__all__ = ["configuration",
"exceptions",
Expand Down
20 changes: 18 additions & 2 deletions Mikado/daijin/__init__.py
Expand Up @@ -330,7 +330,15 @@ def assemble_transcripts_pipeline(args):

drmaa_var = None
if args.no_drmaa is False and res_cmd:
drmaa_var = res_cmd
try:
import drmaa
_ = drmaa.Session()
except (RuntimeError,ImportError,AttributeError):
print("WARNING: DRMAA not installed or not configured properly. Switching to local/cluster mode. Please use the \"-nd\" flag to run Daijin if you do not plan to use DRMAA.", file=sys.stderr)
drmaa_var = None
args.no_drmaa = True
else:
drmaa_var = res_cmd

if drmaa_var or cluster_var:
if os.path.exists(args.hpc_conf):
Expand Down Expand Up @@ -425,7 +433,15 @@ def mikado_pipeline(args):

drmaa_var = None
if args.no_drmaa is False and res_cmd:
drmaa_var = res_cmd
try:
import drmaa
_ = drmaa.Session()
except (RuntimeError,ImportError,AttributeError):
print("WARNING: DRMAA not installed or not configured properly. Switching to local/cluster mode. Please use the \"-nd\" flag to run Daijin if you do not plan to use DRMAA.", file=sys.stderr)
drmaa_var = None
args.no_drmaa = True
else:
drmaa_var = res_cmd

if drmaa_var or cluster_var:
if os.path.exists(args.hpc_conf):
Expand Down

0 comments on commit 2fbe61b

Please sign in to comment.