Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Cedric Midoux
deepomics16S
Commits
34a3025c
Commit
34a3025c
authored
Apr 12, 2019
by
Cedric Midoux
Browse files
rework affiliation
parent
ea533335
Changes
1
Hide whitespace changes
Inline
Side-by-side
affiliation.smk
View file @
34a3025c
rule
affiliatio
n:
rule
blast
n:
input:
biom = "work/dada/dada.biom",
fasta = "work/dada/seqtab.fasta"
output:
html = "work/FROGS/affiliation.html",
biom = "work/FROGS/affiliation.biom"
blast = "work/BLAST/seqtab.fasta.blast"
threads:
config["THREADS"]
params:
mem_tot = config["THREADS"]*MEM,
database = config["DATABASE"]
shell:
"affiliation_OTU.py "
"--nb-cpu {threads} "
"--java-mem {params.mem_tot} "
"blastn "
"-num_threads {threads} "
"-task megablast "
"-word_size 38 "
"-max_target_seqs 500 "
"-outfmt '6 qseqid sseqid pident length mismatch gapopen qstart qend sstart send evalue bitscore qlen' "
"-query {input.fasta} "
"-out {output.blast} "
"-db {params.database} "
rule addAffi:
input:
biom = "work/dada/dada.biom",
fasta = "work/dada/seqtab.fasta",
blast = "work/BLAST/seqtab.fasta.blast"
output:
biom = "work/FROGS/affiliation.biom"
params:
database = config["DATABASE"]
shell:
"addAffiliation2biom.py "
"--reference {params.database} "
"--input-biom {input.biom} "
"--input-fasta {input.fasta} "
"--summary {output.html} "
"--output-biom {output.biom}"
"--blast-file {input.blast} "
"--biom-in {input.biom} "
"--biom-out {output.biom} "
rule stats:
input:
...
...
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