From 9f4b24a3d71392c8ec3dd42cbccac9e6000699c4 Mon Sep 17 00:00:00 2001 From: Peter Ebert Date: Fri, 30 Dec 2016 15:41:57 +0100 Subject: [PATCH] DOC: improved documentation of process template --- template/README.md | 28 +++++++++++++++++++++------- template/deep_process_template.xml | 27 ++++++++++++++++++++++++++- 2 files changed, 47 insertions(+), 8 deletions(-) diff --git a/template/README.md b/template/README.md index 254fa6c..5510777 100644 --- a/template/README.md +++ b/template/README.md @@ -1,30 +1,44 @@ # Templates for new documents -## New Process document -In order to document a new analysis, please download the file `deep_process_template.xml` and fill out all sections with you favorite text editor. -Certain entries must appear only once, whereas others, e.g., those to specify reference and output files, -can occur as often as needed in the *Process* file - just copy the XML skeleton for a new entry. +## Create a new Process document +In order to document a new analysis, please download the file `deep_process_template.xml` +and fill out all sections with your favorite text or XML editor. +Certain entries must appear only once (*Process* name, version and author as well as the description), +whereas the remaining sections can contain as many entries as needed; +you can list any number of input, output and reference files and as many tools as needed in the +Software section to give a complete step-by-step documentation of the analysis pipeline. An important note: please verify that the template you are using lists the following style sheet document at the top: + ```xml ``` This is required to render the *Process* XML file into a nicely readable form when opened with a standard web browser. Also, please make sure that there is no encoding specified, i.e., ***the following is considered bad practice***: + ```xml ``` +For a more detailed description, please refer to the following publication: + +["A general concept for consistent documentation of computational analyses", *Database* 2015](https://dx.doi.org/10.1093/database/bav050) -#### Technical note: encoding +##### Technical note: encoding If you are wondering why there should no encoding be specified in the *Process* document itself: the encoding for all DEEP *Process* files is set in the *XML schema* file. This ensures that all *Process* files are read with the same encoding when using the [validation script](../validation/) and the respective schema file. -#### Technical note: style sheet +##### Technical note: style sheet If you are wondering why the link the *Process* template does not refer to this repository: repositories are not meant for file hosting like a regular web server. To discourage users from nevertheless doing so, the Github software forces the [MIME type](https://en.wikipedia.org/wiki/Media_type) of the style sheet document to be `text/plain` instead of `text/css` when it is loaded in your browser. Unfortunately, the browser cannot recognize -(interpret) the style sheet as such in this scenario and, hence, the *Process* document would not be rendered as intended. \ No newline at end of file +(interpret) the style sheet as such in this scenario and, hence, the *Process* document would not be rendered as intended. + + +## Validate the new Process document +After having created a new *Process* document, the most convenient way to check it for syntactical errors +(e.g., missing software versions or invalid characters) is to use the small Python script provided in this +repository [validation script](../validation/). diff --git a/template/deep_process_template.xml b/template/deep_process_template.xml index 354a0be..4c052a6 100644 --- a/template/deep_process_template.xml +++ b/template/deep_process_template.xml @@ -1,15 +1,25 @@ + + + + PROC + 0 + Author_Name Author_Email + Description + + Input_ID1 @@ -18,6 +28,8 @@ Comment_1 + + Reference_ID1 @@ -26,6 +38,10 @@ Comment_2 + + Output_ID1 @@ -34,13 +50,22 @@ Comment_3 + + Tool_Name Tool_Version - + + + no_looping Comment_4 +