Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
edna
snakemake_rapidrun_obitools
Commits
db8d35e4
Commit
db8d35e4
authored
Jul 20, 2020
by
peguerin
Browse files
try checkpoint
parent
f4b98142
Changes
1
Hide whitespace changes
Inline
Side-by-side
02_assembly/rules/chunk_illuminapairedend.smk
View file @
db8d35e4
...
...
@@ -3,7 +3,7 @@ __license__ = "MIT"
## On scattered fastq chunk Paired end alignment then keep reads with quality > 40
rule
illuminapairedend:
checkpoint
illuminapairedend:
input:
R1='../results/02_assembly/scaterred/{run}_R1_c{chunk}.fastq',
R2='../results/02_assembly/scaterred/{run}_R2_c{chunk}.fastq'
...
...
@@ -21,3 +21,18 @@ rule illuminapairedend:
shell:
'''illuminapairedend -r {input.R2} {input.R1} --score-min={params.s_min} > {output.fq} 2> {log};'''
def get_chunks(wildcards):
meschunks = checkpoints.illuminapairedend.get(**wildcards).output.fq
return meschunks
rule merge_chunks:
input:
get_chunks
output:
fq='../results/02_assembly/01_illuminapairedend/{run}.fastq'
shell:
'''cat {input} > {output}'''
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