snakemake.common

Functions

async_run(coroutine)

Attaches to running event loop or creates a new one to execute a coroutine. .. seealso:: https://github.com/snakemake/snakemake/issues/1105 https://stackoverflow.com/a/65696398.

bytesto(bytes, to[, bsize])

convert bytes to megabytes.

dict_to_key_value_args(some_dict[, ...])

expand_vars_and_user(value)

get_appdirs()

get_container_image()

get_file_hash(filename[, algorithm])

find the SHA256 hash string of a file.

get_function_params(func)

get_input_function_aux_params(func, ...)

get_last_stable_version()

get_snakemake_searchpaths()

get_uuid(name)

group_into_chunks(n, iterable)

Group iterable into chunks of size at most n.

is_local_file(path_or_uri)

is_namedtuple_instance(x)

log_location(msg)

mb_to_mib(mb)

num_if_possible(s)

Convert string to number if possible, otherwise return string.

parse_key_value_arg(arg, errmsg[, strip_quotes])

parse_uri(path_or_uri)

set_env(**environ)

Temporarily set the process environment variables.

smart_join(base, path[, abspath])

strip_prefix(text, prefix)

unique_justseen(iterable[, key])

List unique elements, preserving order.

Classes

Gather()

A namespace for gather to allow items to be accessed via dot notation.

Rules()

A namespace for rules so that they can be accessed via dot notation.

Scatter()

A namespace for scatter to allow items to be accessed via dot notation.

Modules

snakemake.common.argparse

snakemake.common.configfile

snakemake.common.git

snakemake.common.tbdstring

snakemake.common.workdir_handler