File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ rule gubbins:
189189 group :
190190 "gubbins"
191191 log :
192- "../../../ logs/gubbins_{strain}.log"
192+ "logs/gubbins_{strain}.log"
193193 params :
194194 prefix = config ['gubbins' ]['prefix' ],
195195 tree_builder = config ['gubbins' ]['tree_builder' ],
@@ -200,13 +200,14 @@ rule gubbins:
200200 threads :
201201 2
202202 shell :
203- "pushd output/strains/{wildcards.strain}/ && \
203+ """
204+ (cd output/strains/{wildcards.strain}/ && \
204205 run_gubbins.py map_variants.aln --prefix {params.prefix} \
205206 --starting-tree besttree.nwk --tree-builder {params.tree_builder} \
206207 --min-snps {params.min_snp} --min-window-size {params.min_window} \
207208 --max-window-size {params.max_window} --iterations {params.iterations} \
208- --threads {threads} > {log} \
209- && popd "
209+ --threads {threads}) > {log} 2>&1
210+ "" "
210211
211212rule bactdating :
212213 input :
You can’t perform that action at this time.
0 commit comments