kraemer-lab / GRAPEVNE

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

Add file picker for parameters of type 'file' #279

Closed jsbrittain closed 3 months ago

jsbrittain commented 3 months ago

Add file selection dialog, enabled by setting the parameter metadata type to 'file' in the config.yaml file, e.g.

params:
  SomeFilename:
    Filename: "data.csv"
    Folder: "/data"
  ":SomeFilename":
    type: "File"

This follows the parameters metadata scheme discussed in #174 and implemented in #203 .

If a 'file' type parameter is detected, GRAPEVNE offers a file picker option in the parameters interface:

Screenshot 2024-06-28 at 11 56 21

When linking downstream modules, this arrangement allows the separation of 'filename' and 'folder' so that the filename can be linked and propagated to subsequent modules:

Screenshot 2024-06-28 at 11 56 36

As this is a configuration parameter this separation is also accessible in the Snakefile's.

This functionality is currently enabled and can be tested with the LinkLocalFile module (https://github.com/kraemer-lab/vneyard/pull/21)