kraemer-lab / GRAPEVNE

Graphical Analytical Pipeline Development Evironment
MIT License
6 stars 3 forks source link

Selectable defaults #280

Closed jsbrittain closed 1 week ago

jsbrittain commented 1 week ago

Provide a facility to select from a set of default parameters.

This can be achieved by checking for the presence of multiple config/*.yaml files in the module repo and providing a drop-down menu to allow the user to select the appropriate one in the editor. This drop-down menu could also permit users to select a 'local' file for use instead.

jsbrittain commented 1 week ago

A possible implementaton would be to replace the configfile: "config/config.yaml" line at the head of the Snakefile with an equivalent redirecting to the chosen config file. This would require a generalisation of the config.yaml filename within builder.py and web.ts.

Edit: Perhaps a simpler solution is to read the list of available config files, present them in a dropdown and simply overwrite the configuration of the module in the editor. No changes are required to the module's configfile directive since these are overridden when loading modules as part of workflows.