utilities

  • check_for_matching_key_values

    Verify that keys in a collection of `maps` match.

    • concat_workflow_emissions

      Collect an emission from multiple channels or processes into a collection.

      • concatenate_maps_list

        Concatenate a collection of `map`s into a single `map`, overriding with successive keys.

        • convert_map_keys_to_files

          Iteratively search a `map` for matching keys which are converted to `file` types. Single values (`string`) are converted, or all elements in a `collection`, or all values of a `map`.

          • format_unique_key

            Joins strings togther with a spearator in the aim of making a uniquely identifiable identifier. But does no checking for any type of unique-ness.

            • make_map

              Create `Map` from a `Collection` of values and keys.

              • make_string_directory_safe

                Try to make a string safe for use as a directory (or file) name.

                • merge_metadata_and_process_output

                  Combines keys from maps to give the set of input parameters to a process and its emitted values.

                  • merge_process_emissions

                    Iteratively merges output channels of a process into a single channel of maps.

                    • pluck

                      Iteratively pluck keys from a map of maps.

                      • print_as_json

                        Print a data structure in JSON format so it is more-easily readable.

                        • remove_keys_from_map

                          Given a map, remove one or more keys and return the result.

                          • rename_map_keys

                            Given a `map` of key/value pairs, a subset of keys can be renamed.