Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Midoux Cedric
workflow_metagenomics
Commits
094afed7
Commit
094afed7
authored
Jun 30, 2020
by
Midoux Cedric
Browse files
blastn spacers crispr
parent
9b5550a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
global.smk
View file @
094afed7
...
@@ -29,6 +29,7 @@ rule all:
...
@@ -29,6 +29,7 @@ rule all:
#virome
#virome
expand("report/viromeQC-{sample}.txt", sample=config["SAMPLES"]),
expand("report/viromeQC-{sample}.txt", sample=config["SAMPLES"]),
expand("work/virhostmatcher/{sample}/done", sample=config["SAMPLES"]),
expand("work/virhostmatcher/{sample}/done", sample=config["SAMPLES"]),
expand("work/blast/spacer_{sample}.tsv", sample=config["SAMPLES"]),
include: "../workflow_metagenomics/quality.smk"
include: "../workflow_metagenomics/quality.smk"
...
...
virome.smk
View file @
094afed7
...
@@ -45,3 +45,31 @@ rule virhostmatcher:
...
@@ -45,3 +45,31 @@ rule virhostmatcher:
# "conda deactivate "
# "conda deactivate "
"&& "
"&& "
"touch {output.done} "
"touch {output.done} "
rule crispr:
input:
unpack(contigs_input)
output:
"work/blast/{db}_{sample}.tsv"
params:
db = "DATA/blast/{db}", # wget https://crisprcas.i2bc.paris-saclay.fr/Home/DownloadFile?filename=20190618_spacer_34.zip -O DATA/spacer.zip && unzip DATA/spacer.zip -d DATA && rm DATA/spacer.zip && makeblastdb -in DATA/20190618_spacer_34.fasta -dbtype nucl -out DATA/blast/spacer && rm DATA/20190618_spacer_34.fasta
header = "qaccver qlen qseq saccver slen sseq pident mismatch gapopen evalue bitscore qcovs length qstart qend sstart send"
threads:
20
shell:
"conda activate blast-2.9.0 "
"&& "
"blastn "
"-task blastn-short "
"-db {params.db} "
"-query {input} "
"-out {output} "
"-outfmt '6 {params.header}' "
"-evalue 0.003 "
"-word_size 6 "
"-gapopen 10 "
"-gapextend 2 "
"-penalty -1 "
"-max_target_seqs 1000 "
"&& "
"conda deactivate "
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