From f218aaad1b9b80074ea602cde0352c34c18e70b5 Mon Sep 17 00:00:00 2001 From: Maarten0110 Date: Tue, 1 Mar 2022 18:42:03 +0100 Subject: [PATCH] docs: Fix typo and grammar mistake in scatter-gather section. (#1441) --- docs/snakefiles/rules.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/snakefiles/rules.rst b/docs/snakefiles/rules.rst index 90fdd5dd1..56b630bb3 100644 --- a/docs/snakefiles/rules.rst +++ b/docs/snakefiles/rules.rst @@ -1368,7 +1368,7 @@ The resulting tsv file can be used as input for other rules, just like any other Defining scatter-gather processes --------------------------------- -Via Snakemake's powerful and abitrary Python based aggregation abilities (via the ``expand`` function and arbitrary Python code, see :ref:`here `), scatter-gather workflows well supported. +Via Snakemake's powerful and abitrary Python based aggregation abilities (via the ``expand`` function and arbitrary Python code, see :ref:`here `), scatter-gather workflows are well supported. Nevertheless, it can sometimes be handy to use Snakemake's specific scatter-gather support, which allows to avoid boilerplate and offers additional configuration options. Scatter-gather processes can be defined via a global ``scattergather`` directive: @@ -1413,7 +1413,7 @@ Then, scattering and gathering can be implemented by using globally available `` "cat {input} > {output}" Thereby, ``scatter.split("splitted/{scatteritem}.txt")`` yields a list of paths ``"splitted/1-of-n.txt"``, ``"splitted/2-of-n.txt"``, ..., depending on the number ``n`` of scatter items defined. -Analogously, ``gather.split("splitted/{scatteritem}.post.txt")``, yields a list of paths ``"splitted/0.post.txt"``, ``"splitted/1.pos.txt"``, ..., which request the application of the rule ``intermediate`` to each scatter item. +Analogously, ``gather.split("splitted/{scatteritem}.post.txt")``, yields a list of paths ``"splitted/0.post.txt"``, ``"splitted/1.post.txt"``, ..., which request the application of the rule ``intermediate`` to each scatter item. The default number of scatter items can be overwritten via the command line interface. For example