-
Notifications
You must be signed in to change notification settings - Fork 11
Description
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:
- create a github repo
name - prepare
.gitignoreand.gitattributesfiles for it - setup the structure above with a
README.mdto explain what each folder does - setup a master DSC file as
name.dscwith 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
...