Skip to content
Snippets Groups Projects
Commit 63c2d46b authored by Ruben Vorderman's avatar Ruben Vorderman
Browse files

fix unicycler memory

parent dabe9af0
No related branches found
No related tags found
2 merge requests!9Changes for virus assembly pipeline,!10Extra tasks required for assembly.
...@@ -49,7 +49,7 @@ task spades { ...@@ -49,7 +49,7 @@ task spades {
${"--nanopore " + nanoporeReads } \ ${"--nanopore " + nanoporeReads } \
${"--tslr " + tslrContigs } \ ${"--tslr " + tslrContigs } \
${"--trusted-contigs " + trustedContigs } \ ${"--trusted-contigs " + trustedContigs } \
${"--untrusted-contigs" + untrustedContigs } \ ${"--untrusted-contigs " + untrustedContigs } \
${true="--only-error-correction" false="" onlyErrorCorrection } \ ${true="--only-error-correction" false="" onlyErrorCorrection } \
${true="--only-assembler" false="" onlyAssembler } \ ${true="--only-assembler" false="" onlyAssembler } \
${true="--careful" false="" careful } \ ${true="--careful" false="" careful } \
......
...@@ -9,8 +9,10 @@ task unicycler { ...@@ -9,8 +9,10 @@ task unicycler {
Int? minFastaLength Int? minFastaLength
Int? keep Int? keep
Boolean? vcf Boolean? vcf
Int threads Int? threads
Int memory Int? memory
Int finalThreads = select_first(threads, 1)
Int finalMemory = select_first(memory, 4)
String? mode String? mode
Float? minBridgeQual Float? minBridgeQual
Int? linearSeqs Int? linearSeqs
...@@ -55,7 +57,7 @@ task unicycler { ...@@ -55,7 +57,7 @@ task unicycler {
${"--min_fasta_length " + minFastaLength} \ ${"--min_fasta_length " + minFastaLength} \
${"--keep " + keep } \ ${"--keep " + keep } \
${true="--vcf" false="" vcf } \ ${true="--vcf" false="" vcf } \
${"--threads " + threads } \ ${"--threads " + finalThreads } \
${"--mode " + mode } \ ${"--mode " + mode } \
${"--min_bridge_qual " + minBridgeQual } \ ${"--min_bridge_qual " + minBridgeQual } \
${"--linear_seqs " + linearSeqs } \ ${"--linear_seqs " + linearSeqs } \
...@@ -94,7 +96,7 @@ task unicycler { ...@@ -94,7 +96,7 @@ task unicycler {
File log = out + "/unicycler.log" File log = out + "/unicycler.log"
} }
runtime { runtime {
cpu: threads cpu: finalThreads
memory: memory memory: finalMemory
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment