Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
snakemake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Metagenomics
snakemake
Commits
e5a53223
Commit
e5a53223
authored
3 years ago
by
Kenzo-Hugo Hillion
Browse files
Options
Downloads
Patches
Plain Diff
fix issues
parent
8eb87e66
No related branches found
No related tags found
1 merge request
!8
Prodigal
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tools/cd-hit/Snakefile
+13
-10
13 additions, 10 deletions
tools/cd-hit/Snakefile
tools/cd-hit/example_usage/Snakefile
+1
-1
1 addition, 1 deletion
tools/cd-hit/example_usage/Snakefile
tools/cd-hit/example_usage/config.yaml
+3
-2
3 additions, 2 deletions
tools/cd-hit/example_usage/config.yaml
with
17 additions
and
13 deletions
tools/cd-hit/Snakefile
+
13
−
10
View file @
e5a53223
...
@@ -85,22 +85,25 @@ Options
...
@@ -85,22 +85,25 @@ Options
"CD-HIT: accelerated for clustering the next generation sequencing data", Limin Fu, Beifang Niu, Zhengwei Zhu, Sitao Wu & Weizhong Li. Bioinformatics, (2012) 28:3150-3152
"CD-HIT: accelerated for clustering the next generation sequencing data", Limin Fu, Beifang Niu, Zhengwei Zhu, Sitao Wu & Weizhong Li. Bioinformatics, (2012) 28:3150-3152
"""
"""
__cd-hit_exec_command = config.get('cd-hit', {}).get('exec_command', 'cd-hit')
__cd_hit_exec_command = config.get('cd_hit', {}).get('exec_command', 'cd_hit')
__cd-hit_modules = config.get('cd-hit', {}).get('modules')
__cd_hit_modules = config.get('cd_hit', {}).get('modules')
__cd-hit_options = config.get('cd-hit', {}).get('options', '')
__cd_hit_options = config.get('cd_hit', {}).get('options', '')
__cd_hit_threads = config.get('cd_hit', {}).get('threads', 1)
rule cd
-
hit:
rule cd
_
hit:
input:
input:
__cd
-
hit_input
__cd
_
hit_input
output:
output:
__cd
-
hit_output
__cd
_
hit_output
params:
params:
exec_command = __cd-hit_exec_command,
exec_command = __cd_hit_exec_command,
modules = __cd-hit_modules,
modules = __cd_hit_modules,
options = __cd-hit_options
options = __cd_hit_options
threads:
__cd_hit_threads
run:
run:
command = []
command = []
if params.modules:
if params.modules:
command.append("module load {params.modules}")
command.append("module load {params.modules}")
command.append("{params.exec_command} {params.options} -i {input} -o {output}")
command.append("{params.exec_command} {params.options} -i {input}
-T {threads}
-o {output}")
shell(" && ".join(command))
shell(" && ".join(command))
This diff is collapsed.
Click to expand it.
tools/cd-hit/example_usage/Snakefile
+
1
−
1
View file @
e5a53223
configfile: "config.yaml"
configfile: "config.yaml"
# ==== Snakefile path ====
# ==== Snakefile path ====
__cd-hit_rules = config.get("snakefiles", {}).get("cd
-
hit")
__cd-hit_rules = config.get("snakefiles", {}).get("cd
_
hit")
__main_output_dir = config.get('output_dir', 'output')
__main_output_dir = config.get('output_dir', 'output')
...
...
This diff is collapsed.
Click to expand it.
tools/cd-hit/example_usage/config.yaml
+
3
−
2
View file @
e5a53223
snakefiles
:
snakefiles
:
prodigal
:
/pasteur/zeus/projets/p02/metasig/gitlab/snakemake/tools/cd-hit/Snakefile
cd_hit
:
/pasteur/zeus/projets/p02/metasig/gitlab/snakemake/tools/cd-hit/Snakefile
input_dir
:
/some/input/directory
input_dir
:
/some/input/directory
output_dir
:
/some/output/directory
output_dir
:
/some/output/directory
...
@@ -9,6 +9,7 @@ samples:
...
@@ -9,6 +9,7 @@ samples:
-
test_00001
-
test_00001
-
test_00002
-
test_00002
prodigal
:
cd_hit
:
exec_command
:
cd-hit
exec_command
:
cd-hit
modules
:
blast+/2.10.0 cd-hit
modules
:
blast+/2.10.0 cd-hit
threads
:
16
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