Replies: 3 comments
-
Definitely, sounds like a plan! |
Beta Was this translation helpful? Give feedback.
-
@axiomcura outlines a strategy to use |
Beta Was this translation helpful? Give feedback.
-
Table of ContentsProposed Configfile Prototypeprototype 1: DAG based configurationThis mainly focuses on that each dag has it's own configuration Below is file structure:
This will require to download a 3rd party dependency called In prototype1, the
Therefore, inside the code, the absolute path or relative path is required to be assembled in runtime in order for Pros an ConsPros:
Cons:
prototype 2: single file configurationOnly uses on main configurational containing all the settings. Using top level keywords to separate the specific configs toplevel1:
foo:
foo1:
foo2:
bar:
bar1:
bar2:
toplevel2:
analysis:
module1:
param1:
param2:
module2:
param1:
param2: This is how the file structure look like:
Compared to prototype1, the analysis_config directory is removed Pros and ConsPros:
Cons:
prototype 3: Module based configurationThis is a more structure approach where each analysis has it's own yaml file. file structure:
Pros and ConsPros:
Cons:
NOTE: These issues can be solved with a script that is dedicated to only changing configurational files. Below is an example of a small program named prototype 4: Merge based approachEssentially is it prototype 1 and 2 (or 3) merged together (depending 2 or 3 depending on the file structure). Snakemake allows to use multiple configurational files by just adding multiple configurational files # order matters! when name hashing "cytopipe_configs" will be the main name
configfile: "config/cytopipe_configs.yaml"
configfile: "config/analysis_configs/annotate_config.yaml"
configfile: "config/analysis_configs/single_cell_config.yaml"
configfile: "config/analysis_configs/normalize_config.yaml" file structure shown below:
Pros and Conspros:
cons
|
Beta Was this translation helpful? Give feedback.
-
In #1 @axiomcura started the project off by adding the first snakemake DAG.
He writes:
Let's use this discussion as a space to talk about these two topics (1. structure of config file; 2. default parameters)!
Beta Was this translation helpful? Give feedback.
All reactions