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
5f2d4bd6
Commit
5f2d4bd6
authored
Sep 04, 2019
by
Midoux Cedric
Browse files
khmer
parent
6e480a47
Changes
3
Hide whitespace changes
Inline
Side-by-side
assembly.smk
0 → 100644
View file @
5f2d4bd6
def khmer_input(wildcards):
if config["SORTMERNA"]:
return {"R1R2": "work/sortmerna/{wildcards.reads}_mRNA.fastq.gz".format(wildcards=wildcards)}
else:
return {"R1R2": "DATA/trim/{wildcards.reads}_R1R2.fastq.gz".format(wildcards=wildcards)}
rule khmer:
input:
unpack(khmer_input)
output:
R1R2 = "work/khmer/{reads}_R1R2.fastq.gz",
log = "work/khmer/{reads}.log"
threads:
10
params:
mem_tot = 90 * 1e9,
K = 32,
C = 100
shell:
"normalize-by-median.py "
"--ksize {params.K} "
"--max-memory-usage {params.mem_tot} "
"--cutoff {params.C} "
"--paired "
"--report {output.log} "
"--output {output.R1R2} "
"--gzip "
"{input.R1R2}"
cluster.json
View file @
5f2d4bd6
...
...
@@ -14,7 +14,7 @@
"khmer"
:
{
"queue"
:
"highmem.q,maiage.q"
,
"cluster"
:
"-l
h_vmem={MEM}G
"
"cluster"
:
"-l
big_mem
"
},
"megahit"
:
{
...
...
global.smk
View file @
5f2d4bd6
...
...
@@ -12,3 +12,4 @@ rule all:
include: "../workflow_metagenomics/quality.smk"
include: "../workflow_metagenomics/preprocess.smk"
include: "../workflow_metagenomics/kaiju.smk"
include: "../workflow_metagenomics/assembly.smk"
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