Options
build_dynamic_cli_options(snakemake_config, snk_config)
Builds a list of options from a snakemake config and a snk config.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
snakemake_config |
dict
|
A snakemake config. |
required |
snk_config |
SnkConfig
|
A snk config. |
required |
Returns:
Type | Description |
---|---|
List[dict]
|
List[dict]: A list of options. |
Source code in src/snk_cli/options/utils.py
create_option_from_annotation(annotation_key, annotation_values, default_values, from_annotation=False)
Create an Option object from a given annotation.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
annotation_key |
str
|
The key in the annotations. |
required |
annotation_values |
dict
|
The dictionary of annotation values. |
required |
default_values |
dict
|
Default value from config. |
required |
from_annotation |
bool
|
Whether the option is from an annotation. Defaults to False. |
False
|
Returns:
Name | Type | Description |
---|---|---|
Option |
Option
|
An Option object. |