@@ -50,6 +50,14 @@ def __init__(self, **kwargs):
5050 "If 'auto' the SPAdes k-mer lengths will be determined "
5151 "from the maximum read length of each assembly. If "
5252 "'default', SPAdes will use the default k-mer lengths. "
53+ },
54+ "clearInput" : {
55+ "default" : "false" ,
56+ "description" :
57+ "Permanently removes temporary input files. This option "
58+ "is only useful to remove temporary files in large "
59+ "workflows and prevents nextflow's resume functionality. "
60+ "Use with caution."
5361 }
5462 }
5563
@@ -81,6 +89,18 @@ def __init__(self, **kwargs):
8189 "scratch" : "true"
8290 }}
8391
92+ self .params = {
93+ "clearInput" : {
94+ "default" : "false" ,
95+ "description" :
96+ "Permanently removes temporary input files. This option "
97+ "is only useful to remove temporary files in large "
98+ "workflows and prevents nextflow's resume functionality. "
99+ "Use with caution."
100+ }
101+ }
102+
103+
84104class ViralAssembly (Process ):
85105 """
86106 Process to assemble viral genomes, based on SPAdes and megahit
@@ -95,7 +115,8 @@ def __init__(self, **kwargs):
95115
96116 self .dependencies = ["integrity_coverage" ]
97117
98- self .status_channels = ["va_spades" , "va_megahit" , "report_viral_assembly" ]
118+ self .status_channels = ["va_spades" , "va_megahit" ,
119+ "report_viral_assembly" ]
99120
100121 self .link_end .append ({"link" : "SIDE_max_len" , "alias" : "SIDE_max_len" })
101122
@@ -105,7 +126,7 @@ def __init__(self, **kwargs):
105126 "container" : "flowcraft/viral_assembly" ,
106127 "version" : "0.1-1" ,
107128 "scratch" : "true"
108- },"va_megahit" : {
129+ }, "va_megahit" : {
109130 "cpus" : 4 ,
110131 "memory" : "{ 5.GB * task.attempt }" ,
111132 "container" : "flowcraft/viral_assembly" ,
@@ -146,5 +167,13 @@ def __init__(self, **kwargs):
146167 "from the maximum read length of each assembly. If "
147168 "'default', megahit will use the default k-mer lengths. "
148169 "(default: $params.megahitKmers)"
170+ },
171+ "clearInput" : {
172+ "default" : "false" ,
173+ "description" :
174+ "Permanently removes temporary input files. This option "
175+ "is only useful to remove temporary files in large "
176+ "workflows and prevents nextflow's resume functionality. "
177+ "Use with caution."
149178 }
150- }
179+ }
0 commit comments