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
6b614624
Commit
6b614624
authored
Jun 15, 2020
by
peguerin
Browse files
renaming step 02
parent
8d4870b7
Changes
26
Hide whitespace changes
Inline
Side-by-side
02_assembly/Snakefile
View file @
6b614624
...
...
@@ -40,11 +40,12 @@ uniqRuns=dfrm.run.unique()
rule all:
input:
expand("{folder}{run}_R1.fastq.gz", run=uniqRuns,folder=config["fichiers"]["folder_fastq"]),
expand('01_illuminapairedend/{run}.fastq', run=uniqRuns),
expand('02_remove_unaligned/{run}.ali.fastq', run=uniqRuns),
expand('../
99_
log/02_assembly/02_remove_unaligned/{run}.log',run=uniqRuns),
expand('../
99_
log/02_assembly/01_illuminapairedend/{run}.log',run=uniqRuns)
expand('
../results/
01_illuminapairedend/{run}.fastq', run=uniqRuns),
expand('
../results/
02_remove_unaligned/{run}.ali.fastq', run=uniqRuns),
expand('../log
s
/02_assembly/02_remove_unaligned/{run}.log',run=uniqRuns),
expand('../log
s
/02_assembly/01_illuminapairedend/{run}.log',run=uniqRuns)
include: "../00_rules/assembly.smk"
include: "rules/illuminapairedend.smk"
include: "rules/remove_unaligned.smk"
02_assembly/rules/illuminapairedend.smk
0 → 100644
View file @
6b614624
__author__ = "Pierre-Edouard Guerin"
__license__ = "MIT"
### Paired end alignment then keep reads with quality > 40
rule illuminapairedend:
input:
R1=config["fichiers"]["folder_fastq"]+'{run}_R1.fastq.gz',
R2=config["fichiers"]["folder_fastq"]+'{run}_R2.fastq.gz',
output:
fq='01_illuminapairedend/{run}.fastq'
singularity:
config["singularity"]["obitools"]
log:
'../99_log/02_assembly/01_illuminapairedend/{run}.log'
params:
s_min=config["illuminapairedend"]["s_min"]
shell:
'''illuminapairedend -r {input.R2} {input.R1} --score-min={params.s_min} > {output.fq} 2> {log}'''
### Remove unaligned sequence records
rule remove_unaligned:
input:
fq='01_illuminapairedend/{run}.fastq'
output:
ali='02_remove_unaligned/{run}.ali.fastq'
singularity:
config["singularity"]["obitools"]
log:
'../99_log/02_assembly/02_remove_unaligned/{run}.log'
shell:
'''obigrep -p 'mode!=\"joined\"' {input.fq} > {output.ali} 2> {log}'''
02_assembly/rules/remove_unaligned.smk
0 → 100644
View file @
6b614624
__author__ = "Pierre-Edouard Guerin"
__license__ = "MIT"
### Remove unaligned sequence records
rule remove_unaligned:
input:
fq='01_illuminapairedend/{run}.fastq'
output:
ali='02_remove_unaligned/{run}.ali.fastq'
singularity:
config["singularity"]["obitools"]
log:
'../99_log/02_assembly/02_remove_unaligned/{run}.log'
shell:
'''obigrep -p 'mode!=\"joined\"' {input.fq} > {output.ali} 2> {log}'''
01_infos
/all_samples.tsv
→
config
/all_samples.tsv
View file @
6b614624
File moved
01_infos
/config_laperouse_alsace.yaml
→
config
/config_laperouse_alsace.yaml
View file @
6b614624
File moved
01_infos
/config_test.yaml
→
config
/config_test.yaml
View file @
6b614624
File moved
01_infos
/config_tiny.yaml
→
config
/config_tiny.yaml
View file @
6b614624
File moved
01_infos
/sample_description/Chond.dat
→
config
/sample_description/Chond.dat
View file @
6b614624
File moved
01_infos
/sample_description/Mamm.dat
→
config
/sample_description/Mamm.dat
View file @
6b614624
File moved
01_infos
/sample_description/Teleo.dat
→
config
/sample_description/Teleo.dat
View file @
6b614624
File moved
01_infos
/sample_description/Vert.dat
→
config
/sample_description/Vert.dat
View file @
6b614624
File moved
99_
log/.gitkeep
→
log
s
/.gitkeep
View file @
6b614624
File moved
results/02_assembly/01_illuminapairedend/.gitkeep
0 → 100644
View file @
6b614624
results/02_assembly/02_remove_unaligned/.gitkeep
0 → 100644
View file @
6b614624
results/03_demultiplex/00_dat/.gitkeep
0 → 100644
View file @
6b614624
results/03_demultiplex/01_assign_sequences/.gitkeep
0 → 100644
View file @
6b614624
results/03_demultiplex/02_raw/.gitkeep
0 → 100644
View file @
6b614624
results/04_filter_samples/01_dereplicated/.gitkeep
0 → 100644
View file @
6b614624
results/04_filter_samples/02_goodlength/.gitkeep
0 → 100644
View file @
6b614624
results/04_filter_samples/03_clean_pcrerr/.gitkeep
0 → 100644
View file @
6b614624
Prev
1
2
Next
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