Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ONT_pilot_gitlab
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
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Contributor 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
ESB
ONT_pilot_gitlab
Commits
b6dfa4c7
Commit
b6dfa4c7
authored
4 years ago
by
Valentina Galata
Browse files
Options
Downloads
Patches
Plain Diff
issue
#72
: added wtdbg2 (LR assembler)
parent
2b965a5d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
workflow/envs/wtdbg2.yaml
+14
-0
14 additions, 0 deletions
workflow/envs/wtdbg2.yaml
workflow/rules/assembly.smk
+33
-3
33 additions, 3 deletions
workflow/rules/assembly.smk
workflow/steps/assembly.smk
+5
-3
5 additions, 3 deletions
workflow/steps/assembly.smk
with
52 additions
and
6 deletions
workflow/envs/wtdbg2.yaml
0 → 100644
+
14
−
0
View file @
b6dfa4c7
name
:
perl
channels
:
-
anaconda
-
conda-forge
-
bioconda
-
defaults
-
r
-
etetoolkit
-
au-eoed
dependencies
:
-
java-jdk=7.0.91
-
libgcc-ng=9.1.0
-
perl=5.26.2
This diff is collapsed.
Click to expand it.
workflow/rules/assembly.smk
+
33
−
3
View file @
b6dfa4c7
...
...
@@ -7,7 +7,6 @@ rule assembly_lr_flye:
input:
os.path.join(RESULTS_DIR, "preproc/metag/lr/lr.fastq.gz")
output:
# NOTE: NOT the name for "final" FASTA file which will be created AFTER polishing
os.path.join(RESULTS_DIR, "assembly/lr/flye/assembly.fasta")
threads:
config["flye"]["threads"]
...
...
@@ -70,9 +69,9 @@ rule polishing_lr_medaka:
# "cd $(dirname {output}) && ln -sf consensus.fasta $(basename {output}) && " # NOTE: flye already creates this file
"date) &> {log}"
localrules: assembly_lr_
flye_
link
localrules: assembly_lr_link
rule assembly_lr_
flye_
link:
rule assembly_lr_link:
input:
os.path.join(RESULTS_DIR, "assembly/lr/{tool}/polishing/racon_medaka/consensus.fasta")
output:
...
...
@@ -80,6 +79,37 @@ rule assembly_lr_flye_link:
shell:
"ipath=$(realpath {input}) && cd $(dirname {output}) && ln -sf $(realpath --relative-to=\".\" \"${{ipath}}\") $(basename {output})"
rule assembly_lr_wtdbg2:
input:
os.path.join(RESULTS_DIR, "preproc/metag/lr/lr.fastq.gz")
output:
os.path.join(RESULTS_DIR, "assembly/lr/wtdbg2/assembly.fasta")
threads:
config["wtdbg2"]["threads"]
log:
"logs/wtdbg2.log"
conda:
os.path.join(ENV_DIR, "wtdbg2.yaml")
message:
"Assembly: long reads: wtdbg2"
shell:
"(date && "
"export PATH=$PATH:{config[wtdbg2][bin]} && "
"wtdbg2 -x ont -g {config[wtdbg2][genome_size]} -t {threads} -i {input} -fo $(dirname {output})/assembly && "
"wtpoa-cns -t {threads} -i $(dirname {output})/assembly.ctg.lay.gz -fo {output} && "
"date) &> {log}"
# localrules: assembly_lr_wtdbg2_link
# NOTE: only for testing !!!
# rule assembly_lr_wtdbg2_link:
# input:
# os.path.join(RESULTS_DIR, "assembly/lr/wtdbg2/assembly.fasta")
# output:
# os.path.join(RESULTS_DIR, "assembly/lr/wtdbg2/ASSEMBLY.fasta")
# shell:
# "ipath=$(realpath {input}) && cd $(dirname {output}) && ln -sf $(realpath --relative-to=\".\" \"${{ipath}}\") $(basename {output})"
##################################################
# Short reads
...
...
This diff is collapsed.
Click to expand it.
workflow/steps/assembly.smk
+
5
−
3
View file @
b6dfa4c7
...
...
@@ -7,8 +7,10 @@ include:
rule ASSEMBLY:
input:
lr=expand(os.path.join(RESULTS_DIR, "assembly/lr/{tool}/ASSEMBLY.FILTERED.fasta"), tool=config["assemblers"]["lr"]),
sr=expand(os.path.join(RESULTS_DIR, "assembly/sr/{tool}/ASSEMBLY.FILTERED.fasta"), tool=config["assemblers"]["sr"]),
hy=expand(os.path.join(RESULTS_DIR, "assembly/hy/{tool}/ASSEMBLY.FILTERED.fasta"), tool=config["assemblers"]["hy"]),
# lr=expand(os.path.join(RESULTS_DIR, "assembly/lr/{tool}/ASSEMBLY.FILTERED.fasta"), tool=config["assemblers"]["lr"]),
lr=expand(os.path.join(RESULTS_DIR, "assembly/lr/{tool}/ASSEMBLY.FILTERED.fasta"), tool=["flye"]),
lr2=expand(os.path.join(RESULTS_DIR, "assembly/lr/{tool}/ASSEMBLY.fasta"), tool=["wtdbg2"]),
sr=expand(os.path.join(RESULTS_DIR, "assembly/sr/{tool}/ASSEMBLY.FILTERED.fasta"), tool=config["assemblers"]["sr"]),
hy=expand(os.path.join(RESULTS_DIR, "assembly/hy/{tool}/ASSEMBLY.FILTERED.fasta"), tool=config["assemblers"]["hy"]),
output:
touch("status/assembly.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