kraemer-lab / GRAPEVNE

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

Template new modules in GRAPEVNE #160

Closed jtmccr1 closed 5 months ago

jtmccr1 commented 11 months ago

Is your feature request related to a problem? Please describe. It's not a huge inconvenience, but right now there are a few manual steps needed to create a module. And this breaks up the processes of designing a new workflow. What if there is a simple module you'd like to add and don't realize it until you're already making a workflow.

Describe the solution you'd like I would like it to be possible to click a 'new module' button that opens a similar panel to what is shown when you click on a module - however with the option to add input/output/parameters command etc. We'd also want to provide documentation and dependancies. GRAPEVNE could then generate the directory structure and snakemake rule for the module when it inserts it in the graph.

Potentially this module could be 'published' to a github repo as a pull request.

Describe alternatives you've considered Doing it by hand.

Additional context Not solving a huge problem here, but it would make the software more accessible to those without much experience in snakemake.

jsbrittain commented 6 months ago

Mockup templating screen:

Image

Image

Image

The 'parameters' section has been left deliberately generic at this time, but there is substantial scope for more fine-grained decomposition of parameter / parameters types / and incorporation of params lists automatically into the docstring.