You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue shows that problems of partial loading configuration into scripts. Partial loading requires more variables to be created to separately load configuration into these script
This issue becomes if more complex scripts requires more configurations to be loaded. It will not only increase the number of variables within the module but it will also increase the number of variables in the scripts therefore making it difficult to understand how the configs are being used.
It seems that some module config paths are used as inputs requiring scripts to read and parse configuration files. Snakemake already does this inherently, therefore it is redundant to parse yaml files inside scripts: Here's and example:
annotate.smk
rule annotate:
""" Generates an annotated profile with given metadata and is stored instored in the `results/` directory. Utilizes pycytominer's annotate module: https://github.com/cytomining/pycytominer/blob/master/pycytominer/annotate.py :input profiles: single-cell or aggregate profiles. :input barcode: file containing unique barcodes that maps to a specific plate. :input metadata: metadata file associated with single-cell morphology dataset. :config: workflow config pointing to annotate configs. :output annotated: annotated profile."""input:
profile=get_data_path(input_type=config["annotate_configs"]["params"]["input_data"],use_converted=DATA_CONFIGS["use_converted_plate_data"],),barcodes=BARCODES,metadata=METADATA_DIR,output:
get_data_path(input_type="annotated"),conda:
"../envs/cytominer_env.yaml"log:
"logs/annotate_{basename}.log",params:
annotate_config=config["config_paths"]["annotate"],script:
"../scripts/__annotate.py
This issue shows that problems of partial loading configuration into scripts. Partial loading requires more variables to be created to separately load configuration into these script
To access the configs with partial loading, one must separately declare variables
This issue becomes if more complex scripts requires more configurations to be loaded. It will not only increase the number of variables within the
module
but it will also increase the number of variables in thescripts
therefore making it difficult to understand how the configs are being used.This issue will be part of #41
The text was updated successfully, but these errors were encountered: