Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
IMP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IMP-dev
IMP
Commits
95264d1a
Commit
95264d1a
authored
9 years ago
by
Yohan Jarosz
Browse files
Options
Downloads
Patches
Plain Diff
should #fix 30
parent
c7f8b30b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Snakefile
+22
-0
22 additions, 0 deletions
Snakefile
rules/Util.rules
+1
-0
1 addition, 0 deletions
rules/Util.rules
with
23 additions
and
0 deletions
Snakefile
+
22
−
0
View file @
95264d1a
...
...
@@ -4,6 +4,7 @@ import gzip
import json
import bz2
from copy import deepcopy
import subprocess
def dict_merge(a, b):
...
...
@@ -82,6 +83,27 @@ def prepare_environment(stepname):
return out, os.path.join(out, '%s.log' % stepname)
def symlink_prokka():
# ## prokka by default will look databases where is located the binary.
# ## we have to softlink to put the binary somewhere and the databases somewhere else.
cmd = """
if [[ "{DBPATH}" = /* ]]
then
PP={DBPATH};
else
PP=$PWD/{DBPATH};
fi
DD=$(dirname $(which prokka))/../db
if [[ ! -L $DD ]]
then
echo "Softlinking $DD to $PP"
cd $(dirname $(which prokka))/.. && ln -s $PP db
fi
"""
shell(cmd)
symlink_prokka()
# INCLUDES RULES
include:
"rules/Util.rules"
...
...
This diff is collapsed.
Click to expand it.
rules/Util.rules
+
1
−
0
View file @
95264d1a
...
...
@@ -55,6 +55,7 @@ rule _DOWNLOAD_PROKKA_DATABASES:
"""
rule _DOWNLOAD_TRIMMOMATIC_ADAPTERS:
output:
"{DBPATH}/adapters/adapters.done"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment