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
168e4c87
Commit
168e4c87
authored
Jun 15, 2020
by
peguerin
Browse files
individual rules for step 03
parent
c7040b60
Changes
2
Hide whitespace changes
Inline
Side-by-side
03_demultiplex/rules/assign_sequences.smk
0 → 100644
View file @
168e4c87
### Assign each sequence record to the corresponding sample/marker combination
rule assign_sequences:
output:
assign='../results/03_demultiplex/01_assign_sequences/{demultiplex}.ali.assigned.fastq',
unid='../results/03_demultiplex/01_assign_sequences/{demultiplex}.unidentified.fastq'
singularity:
config["singularity"]["obitools"]
params:
dmulti= lambda wildcards: dfRunMarker[dfRunMarker.projMarkRun == wildcards.demultiplex].to_dict('records')[0],
log:
'../logs/03_demultiplex/01_assign_sequences/{demultiplex}.log'
shell:
'''ngsfilter -t {params.dmulti[dat]} -u {output.unid} ../02_assembly/02_remove_unaligned/{params.dmulti[run]}.ali.fastq --fasta-output > {output.assign} 2> {log}'''
03_demultiplex/rules/split_sequences.smk
0 → 100644
View file @
168e4c87
### Split the input sequence file in a set of subfiles according to the values of attribute `sample`
rule split_sequences:
input:
'../results/03_demultiplex/01_assign_sequences/{demultiplex}.ali.assigned.fastq'
params:
dir='../results/03_demultiplex/02_raw/{demultiplex}/'
singularity:
config["singularity"]["obitools"]
log:
'../logs/03_demultiplex/02_split_sequences/{demultiplex}.log'
shell:
'''mkdir -p {params.dir}; obisplit -p "{params.dir}" -t sample --fasta {input} 2> {log}'''
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