Skip to content

A dsc-setup command #208

@gaow

Description

@gaow

To continue our in person discussion for a dsc-setup command: what it should do is to provide a one line command to setup a github friendly template for DSC. It should include the basic suggested script structure / hierarchy for DSC benchmarks, and optionally templates to query and explore results (for dscrutils::dscquery, with potentially workflowr structure or dscrutils::shiny_plot in mind).

implementation-wise I suggest it be written as a command tool that people type dsc-setup in terminal to use it, but written in R language -- this makes it easier for the lab to maintain and change it, and we can potentially borrow codes from workflowr already for initializing a project.

For starters this ticket discuss what we want to achieve. My current DSC organization is:

- scripts
   - module1.R
   - module2.R
   - whatever-lumped-scripts.R
- modules
   - module1.dsc
   - module2.dsc
   - whatever-lumped-modules.dsc
benchmark1.dsc
benchmark2.dsc
...

where benchmark*.dsc only has the DSC section.

We can use dsc-setup as dsc-setup name that will:

  1. create a github repo name
  2. prepare .gitignore and .gitattributes files for it
  3. setup the structure above with a README.md to explain what each folder does
  4. setup a master DSC file as name.dsc with the DSC section only, with contents:
#!/usr/bin/env dsc
%import modules/*.dsc

DSC:
   output: "name"

I don't think it would be necessary (or encouraged) to add comments in a DSC script like this because the HTML file for exported DSC script will now contain the information (#209). That is, the file when you run DSC and see in the first line of output:

$ ./finemap.dsc --debug
INFO: DSC script exported to finemap_output.html
...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions