Guix Workflow Language Reference Manual
Table of Contents
Next: Introduction, Up: (dir) [Contents][Index]
Guix Workflow Language
This document describes the Guix Workflow Language version 0.5.1.
• Introduction | What is this all about? | |
• Installation | Installing the GWL. | |
• A Simple Workflow | Show me what this looks like! | |
• Defining a Process | What’s in a process? | |
• Code Snippets | Embedding scripts. | |
• Defining a Workflow | Combine processes to build a workflow. | |
• Process Engines | Generating executable pipeline scripts. | |
• Invoking guix workflow | Running workflows. | |
• Acknowledgments | Thanks! | |
• GNU Free Documentation License | The license of this manual. | |
• Concept Index | Concepts. | |
• Programming Index | Data types, functions, and variables. |
Next: Installation, Previous: Top, Up: Top [Contents][Index]
Introduction
This package provides the Guix Workflow Language (GWL), a
scientific computing extension to the Guix package manager. It
combines the specification of work units and their relationship to one
another with the reproducible software deployment facilities of the
functional package manager GNU Guix. A GWL workflow will always run
in a reproducible environment that GNU Guix automatically prepares.
The GWL extends your Guix installation with a single new sub-command:
guix workflow
.
In the GWL there are two concepts we need to know about: processes and workflows. We describe a computation (running a program, or evaluating a Scheme expression) using a process. A workflow describes how individual processes relate to each other (e.g. “process B must run after process A, and process C must run before process A”).
GWL workflows are executable code. The workflow language is embedded in the powerful general purpose language Guile Scheme, so you can compute arbitrarily complex process and workflow definitions. The GWL supports a classic Lisp syntax as well as a Python-like syntax called Wisp.
Next: A Simple Workflow, Previous: Introduction, Up: Top [Contents][Index]
Installation
There really is no point in using the GWL without Guix. If you
already have a Guix installation, you can install the GWL with
guix install gwl
.
The Guix Workflow Language uses the GNU build system. To install it from a release tarball just unpack it and run the usual commands:
./configure make make install
If you want to build the sources from the source repository you need to
bootstrap the build system first. Run autoreconf -vif
first and
then perform the above steps.
Note that in order for Guix to learn about the “workflow”
sub-command provided by the GWL, the guix/extensions directory
provided by the GWL must be added to the list of directories in the
GUIX_EXTENSIONS_PATH
environment variable.
Next: Defining a Process, Previous: Installation, Up: Top [Contents][Index]
A Simple Workflow
To get a little taste of what the workflow language looks like, let’s start by writing a simple workflow.
Here is a simple workflow example:
process greet
packages "hello"
# { hello }
process sleep
packages "coreutils"
# {
echo "Sleeping..."
sleep 10
}
process eat (with something)
name
string-append "eat-" something
# {
echo "Eating {{something}}"
}
process bye
# { echo "Farewell, world!" }
workflow simple-wisp
processes
define eat-fruit
eat "fruit"
define eat-veges
eat "vegetables"
graph
eat-fruit -> greet
eat-veges -> greet
sleep -> eat-fruit eat-veges
bye -> sleep
This white-space sensitive syntax is called Wisp and if you’re familiar with Python or YAML you should feel right at home. To use this syntax simply save your workflow to a file ending on .w, .wisp, or .gwl.
The workflow language really is a domain specific language (DSL) embedded in Guile Scheme, so if you’re a Lisper you may prefer to write your workflows directly in Scheme while basking in its parenthetical glow:
(define-public greet
(make-process
(name "greet")
(packages (list "hello"))
(procedure '(system "hello"))))
(define-public sleep
(make-process
(name "sleep")
(packages (list "coreutils"))
(procedure
'(begin
(display "Sleeping...\n")
(system "sleep 10")))))
(define-public (eat something)
(make-process
(name (string-append "eat-" something))
(procedure
`(format #t "Eating ~a\n" ,something))))
(define-public bye
(make-process
(name "bye")
(procedure
'(display "Farewell, world!\n"))))
(make-workflow
(name "simple")
(processes
(let ((eat-fruit (eat "fruit"))
(eat-veges (eat "vegetables")))
(graph (eat-fruit -> greet)
(eat-veges -> greet)
(sleep -> eat-fruit eat-veges)
(bye -> sleep)))))
Everything you can express in Scheme can also be expressed with the Wisp syntax, so the choice is down to personal preference.
Next: Code Snippets, Previous: A Simple Workflow, Up: Top [Contents][Index]
Defining a Process
In the GWL a “process” is a combination of some kind of command or script to be executed, the software packages that need to be available when executing the commands, and declarations of inputs and generated outputs. A process has a name, and optionally a synopsis and a description, for display purposes.
We create a process with the make-process
constructor like
this:
make-process
name "hello"
procedure
' display "hello"
This creates a process with the name “hello”, which will print the
string "hello"
once the process is executed. The
procedure
field holds the Scheme code that does all the work of
saying “hello”. We will talk about the procedure
field a
little later and show how to write code snippets in languages other
than Scheme.
Often we will want to refer to previously created processes later, for
example to combine them in a workflow definition. To do that we need
to bind the created processes to variable names. Here we bind the
above process to a variable named hello
:
define hello
make-process
name "hello"
procedure
' display "hello"
This is a very common thing to do, so the GWL offers a shorter syntax for not only creating a process but also binding it to a variable. The following example is equivalent to the above definition:
process hello
procedure
' display "hello"
• process Fields | ||
• Process templates | ||
• Useful procedures and macros |
Next: Process templates, Up: Defining a Process [Contents][Index]
process
Fields
Both make-process
and process
accept the same fields,
which we describe below.
name
The readable name of the process as a string. This is used for display purposes and to select processes by name. When the
process
constructor is used, thename
field need not be provided explicitly.version
This field holds an arbitrary version string. This can be used to disambiguate between different implementations of a process when searching by name.
synopsis
A short summary of what this process intends to accomplish.
description
A longer description about the purpose of this process.
packages
This field is used to specify what software packages need to be available when executing the process. Packages can either be Guix package specifications — such as the string
"guile@3.0"
for Guile version 3.0 — or package variable names.By default, package specifications are looked up in the context of the current Guix, i.e. the same version of Guix that you used to invoke
guix workflow
. This is to ensure that you get exactly those packages that you would expect given the Guix channels you have configured.We strongly advise against using package variables from Guix modules. The workflow language uses Guix as a library and is compiled and tested with the version of Guix that is currently available as the
guix
package in(gnu packages package-management)
. The version of this Guix will likely be older than the version of Guix you use to invokeguix workflow
.Package variables are useful for one-off ad-hoc packages that are not contained in any channel and are defined in the workflow file itself. We suggest you use the procedure
lookup-package
from the(gwl packages)
module to look up inputs in the context of the current Guix. To ensure reproducibility, however, we urge you to publish packages in a version-controlled channel. See the Guix reference manual to learn all there is to know about channels.The
packages
field accepts a list of packages as well as multiple values (an “implicit list”). All of the following specifications are valid. A single package:process packages "guile" …
More than one package:
process packages "guile" "python" …
A single list of packages:
process packages list "guile" "python" …
inputs
This field holds inputs to the process. Commonly, this will be a list of file names that the process requires to be present. The GWL can automatically connect processes by matching up their declared inputs and outputs, so that processes generating certain outputs are executed before those that declare the same item as an input.
As with the
packages
field, theinputs
field accepts an “implicit list” of multiple values as well as an explicit list. Additionally, individual inputs can be “tagged” or named by prefixing it with a keyword (see Keywords in GNU Guile Reference Manual). Here’s an example of an implicit list of inputs spread across multiple lines where two inputs have been tagged:process inputs . genome: "hg19.fa" . "cookie-recipes.txt" . samples: "foo.fq" …
The leading period is Wisp syntax to continue the previous line. You can, of course, do without the periods, but this may look a little more cluttered:
process inputs genome: "hg19.fa" "cookie-recipes.txt" samples: "foo.fq" …
Why tag inputs at all? Because you can reference them in other parts of your process definition without having to awkwardly traverse the whole list of inputs. Here is one way to select the first input that was tagged with the
samples:
keyword:pick genome: inputs
To select the second item after the tag
genome:
do this:pick second genome: inputs
or using a numerical zero-based index:
pick 1 genome: inputs
Code Snippets for a convenient way to access named items in code snippets without having to define your picks beforehand.
The procedure
process-inputs
can be used to access the list of inputs of any given process. By default, tags are removed from the list. If you want to include tags (e.g. to select specific inputs withpick
), you can pass the keywordwith-tags
.Here is an example of two processes where the second process refers to the inputs of the first.
process count-reads (with sample) packages . "r-minimal" inputs . bam: file sample "_Aligned.sortedByCoord.out.bam" . bai: file sample "_Aligned.sortedByCoord.out.bam.bai" . script: file "count-reads.R" outputs file sample ".read_counts.csv" # { R {{inputs:script}} {{inputs:bam}} {{inputs:bai}} > {{outputs}} } process genome-coverage (with sample) packages . "r-minimal" inputs define other-inputs process-inputs count-reads sample with-tags: . files: pick bam: others pick bai: others . script: file "genome-coverage.R" outputs files sample / (list ".forward" ".reverse") ".bigwig" # { R {{inputs:script}} {{inputs::files}} > {{outputs}} }
outputs
This field holds a list of outputs that are expected to appear after executing the process. Usually this will be a list of file names. Just like the
inputs
field, this field accepts a plain list, an implicit list of one or more values, and lists with named items.The GWL can automatically connect processes by matching up their declared inputs and outputs, so that processes generating certain outputs are executed before those that declare the same item as an input.
The procedure
process-outputs
can be used to access the list of outputs of any given process. By default, tags are removed from the list. If you want to include tags (e.g. to select specific outputs withpick
), you can pass the keywordwith-tags
.Here is an example of two processes where the second process refers to the outputs of the first.
process one packages . "coreutils" inputs . "input.txt" outputs . log: "first.log" . text: "first.txt" # { tail {{inputs}} > {{outputs:text}} } process two packages . "coreutils" inputs pick text: process-outputs one with-tags: outputs . done: "second.txt" . log: "second.log" # { head {{inputs}} > {{outputs:done}} }
output-path
This is a directory prefix for all outputs.
run-time
This field is used to specify run-time resource estimates, such as the memory requirement of the process or the maximum time it should run. This is especially useful when submitting jobs to an HPC cluster scheduler such as Grid Engine, as these schedulers may give higher priority to jobs that declare a short run time.
Resources are specified as a complexity value with the fields
space
(for memory requirements),time
(for the expected duration of the computation), andthreads
(to control the number of CPU threads). For convenience, memory requirements can be specified with the unitskibibytes
(orKiB
),mebibytes
(orMiB
), orgibibytes
(orGiB
). Supported time units areseconds
,minutes
, andhours
.Here is an example of a single-threaded process that is granted 20 MiB of run-time memory for a duration of 10 seconds:
process stamp-inputs inputs "first" "second" "third" outputs "inputs.txt" run-time complexity space 20 mebibytes time 10 seconds threads 1 # { echo {{inputs}} > {{outputs}} }
When this process is executed by a scheduler that honors resource limits, the process will be granted at most 20 MiB of memory and will be killed if it has not concluded after 10 seconds.
values
This field holds a list with keyword-tagged items that can be used in code snippets. Values defined here are passed to the process script at execution time (rather than preparation time), so this field can be used to avoid embedding literal values in code snippets when generating processes from a template. To learn more about code snippets Code Snippets.
Here is a simple example of a process template with values:
process greet (with name) packages . "hello" . "coreutils" outputs file name ".txt" values . capitalized: string-upcase name # { echo "This is a greeting for {{values:capitalized}}." hello >> {{outputs}} } map greet list "rekado" "civodul" "zimoun"
The generated script from this process does not embed any specific value for
name
or evencapitalized
. Instead it looks up the value forcapitalized
in the arguments passed to the script at execution time. So instead of generating three scripts that only differ in one value (the capitalized name), the GWL will only generate one script and pass it three different values for the three processes.For another example and further discussion of embedding values versus referencing them at execution time Process templates.
procedure
This field holds an expression of code that should be run when the process is executed. This is the “work” that a process should perform. By default that’s a quoted Scheme expression, but code snippets in other languages are also supported (see Code Snippets).
Here’s an example of a process with a procedure that writes a haiku to a file:
process haiku outputs "haiku.txt" synopsis "Write a haiku to a file" description . "This process writes a haiku by Gary Hotham \ to the file \"haiku.txt\"." procedure ` with-output-to-file ,outputs lambda () display "\ the library book overdue? slow falling snow"
The Scheme expression here is quasiquoted (with a leading
`
) to allow for unquoting (with,
) of variables, such asoutputs
.Not always will Scheme be the best choice for a process procedure. Sometimes all you want to do is fire off a few shell commands. While this is, of course, possible to express in Scheme, it is admittedly somewhat verbose. For convenience we offer a simple and surprisingly short syntax for this common use case. As a bonus you can even leave off the field name “procedure” and write your code snippet right there. How? Code Snippets.
Next: Useful procedures and macros, Previous: process
Fields, Up: Defining a Process [Contents][Index]
Process templates
When defining many similar processes, it can be useful to parameterize a single process template. This can be accomplished by defining a procedure that takes any number of arguments and returns a parameterized process. Here’s how to do this somewhat verbosely in plain Scheme:
(define (build-me-a-process thing)
"Return a process that displays THING."
(make-process
(name (string-append "show-" thing))
(procedure `(display ,thing))))
;; Now use this procedure to build concrete processes.
(define show-fruit
(build-me-a-process "fruit"))
(define show-kitchen
(build-me-a-process "kitchen"))
(define show-table
(build-me-a-process "table"))
As this is a somewhat common thing to do in real workflows, the GWL provides simplified syntax to express the same concepts with a little less effort:
process build-me-a-process (with thing)
name
string-append "show-" thing
procedure
` display ,thing
define show-fruit
build-me-a-process "fruit"
define show-kitchen
build-me-a-process "kitchen"
define show-table
build-me-a-process "table"
The result is the same: you get a procedure build-me-a-process
that you can use to define a number of similar processes. In the end
you have the three processes show-fruit
, show-kitchen
,
and show-table
.
In a real-life workflow, the above example would not be very
efficient. The GWL generates an executable script for every process,
passing the process properties (such as name
, inputs
,
outputs
, etc) as arguments. It is a good idea to only generate
one script per process template instead of producing one script
per process, as this vastly reduces preparation work that the
GWL has to perform.
The GWL can arrange for scripts to be reused as long as you take care
not to embed arbitrary variables in the process procedure
field. To this end the GWL offers the values
field for
arbitrary value definitions that should be passed to process scripts
as arguments.
Another thing to avoid is to make the process name dependent on template arguments. This prevents script reuse as the GWL is forced to generate scripts that are virtually identical except for their names. Here’s an example with ten processes that all share the same process script:
define LOG_DIR
file "logs"
define SAMPLES
list
. "first-sample"
. "second"
. "third-sample"
. "sample-no4"
. "take-five"
. "666"
. "se7en"
. "who-eight-nine?"
. "NEIN!"
reverse-string "net"
process index-bam (with sample)
inputs
file "mapped-reads" / sample "_Aligned.sortedByCoord.out.bam"
outputs
. bai:
file "mapped-reads" / sample "_Aligned.sortedByCoord.out.bam.bai"
. log:
file LOG_DIR / "samtools_index_" sample ".log"
packages
. "samtools"
. "coreutils"
values
. sample-id: sample
. backwards:
string-reverse
first inputs
# {
mkdir -p {{LOG_DIR}}
echo "The sample identifier is {{values:sample-id}}"
samtools index {{inputs}} {{outputs:bai}} >> {{outputs:log}} 2>&1
echo "By the way, the sample's file name in reverse is {{values:backwards}}."
}
workflow test
processes
map index-bam SAMPLES
Here the value of the variable LOG_DIR
is embedded in the
generated script, but that’s fine because it is independent of the
template argument sample
. While we could have used
sample
directly, we instead defined it as a value in the
values
field and tagged it with the keyword sample-id:
.
For the fun of it we also defined a value with the tag
backwards:
, which is defined in terms of another process field
(inputs
).
References to the fields inputs
, outputs
, name
,
and values
are resolved via arguments passed to the process
script at execution time. They do not interfere with script reuse as
their values are not embedded in the generated script.
Previous: Process templates, Up: Defining a Process [Contents][Index]
Useful procedures and macros
The (gwl utils)
module provides a number of useful helpers that
are intended to simplify common tasks when defining processes. The
helpers defined by this module are all available by default.
- Scheme Procedure: on collection higher proc
The
on
procedure is an alternative way to express the application of a higher order function to some collection. The only purpose of this procedure is to improve legibility when using Wisp syntax, as it allows one to avoid leading dots. The following two expressions are equivalent:;; With "on" on numbers map lambda (number) + number 10 ;; Without "on" map lambda (number) + number 10 . samples
- Scheme Macro: file file-name-part…
This macro enables you to construct a normalized file name out of any number of file name parts given as arguments. A file name part can either be a string literal or a variable or expression that evaluates to a string.
Directories are separated with a literal slash. This allows you to construct file names where parts of a directory or file name are computed from other values.
define user . "rekado" define my-list iota 32 define num number->string + 10 length my-list file / "home" / user / "file_" num ".txt" => "/home/rekado/file_42.txt"
- Scheme Macro: files file-name-part…
Much like the
file
macro, thefiles
macro enables you to construct multiple normalized file names out of any number of file name parts given as arguments. A file name part can either be a string literal, a variable or expression that evaluates to a string, or a variable or expression that evaluates to a list of strings.Any list of strings will lead to the construction of a combinatorial variant. This is very useful when you need to generate a list of input or output file names.
Directories are separated with a literal slash. This allows you to construct file names where parts of a directory or file name are computed from other values.
define users list "rekado" "zimoun" define projects list "foo" "bar" define extensions list "txt" "tar.gz" "scm" files / "home" / users / "proj_" projects / "file." extensions => '("/home/rekado/proj_foo/file.txt" "/home/rekado/proj_foo/file.tar.gz" "/home/rekado/proj_foo/file.scm" "/home/rekado/proj_bar/file.txt" "/home/rekado/proj_bar/file.tar.gz" "/home/rekado/proj_bar/file.scm" "/home/zimoun/proj_foo/file.txt" "/home/zimoun/proj_foo/file.tar.gz" "/home/zimoun/proj_foo/file.scm" "/home/zimoun/proj_bar/file.txt" "/home/zimoun/proj_bar/file.tar.gz" "/home/zimoun/proj_bar/file.scm")
- Scheme Procedure: pick [n] key collection
This procedure allows you to pick a named item from a collection by looking for the specified keyword key. Optionally, you can provide a selector procedure or index n as the first argument. Without a selector the first item matching the given key will be returned. When the selector is
*
all items following the key (up to the next tag) will be returned. If the selector is a number it is used as a zero-based index into the list of items following the key. If the selector is a procedure it is applied to the list of items following the key.define collection list . "one" . "two" . "three" . mine: "four" . "five" . yours: "six" pick mine: collection ; => "four" pick * mine: collection ; => '("four" "five") pick second mine: collection ; => "five" pick 0 yours: collection ; => "six"
- Scheme Syntax: load-workflow file
This macro lets you load a workflow from the given file. The file must evaluate to a workflow value. This macro is useful for when you want to extend previously defined workflows. The argument file is expected to be a file name relative to the file invoking
load-workflow
.
- Scheme Procedure: display-file file [max-lines]
This procedure lets you display a file, or the first max-lines lines of a file. This can be used to display a banner when the workflow starts, or to display a text report upon completion.
- Scheme Procedure: get collection [#:default default] path…
-
This procedure allows you to select an item from a (potentially nested) collection by traversing the specified path, a sequence of string or symbols that are keys in the collection. This becomes much clearer with an example:
(define config '(("locations" . (("input" . "/home/rekado/foo") ("output" . "/dev/null"))) ("resources" . (("R" . (("memory" . "2GB") ("cores" . 2))) ("samtools" . (("memory" . "128kB") ("cores" . 1))))))) (get config "locations" "output") ; => "/dev/null" (get config "resources" "R" "cores") ; => 2
The variable config here is a so-called association list that associates string keys with values. Some of these values are again association lists.
get
simply traverses the provided path of keys and “enters” each specified collection in turn.Association lists are very common in Scheme, and they are also used as an intermediate representation for many parsed files. Here is an example of using
get
on a parsed JSON file (this depends on theguile-json
package):;; Declare packages require-packages . "guile-json" ;; Load it import json define config json-string->scm "\ { \"locations\": { \"input\": \"/home/rekado/foo\", \"output\": \"/dev/null\" }, \"resources\": { \"R\": { \"memory\": \"2GB\", \"cores\": 2 }, \"samtools\": { \"memory\": \"128kB\", \"cores\": 1 } } } " get config "locations" "output" ; => "/dev/null" get config "resources" "R" "cores" ; => 2
If the provided path cannot be followed because one or more of the keys do not exist or the value after looking up an intermediate key does not result in a collection,
get
will raise an error condition. If you only want to look up an optional value in a collection that may or may not exist, you can provide a default value toget
. That value will be returned instead of raising an error.;; Declare packages require-packages . "guile-json" ;; Load it import json define config json-string->scm "\ { \"locations\": { \"input\": \"/home/rekado/foo\", \"output\": \"/dev/null\" }, \"resources\": { \"R\": { \"memory\": \"2GB\", \"cores\": 2 }, \"samtools\": { \"memory\": \"128kB\", \"cores\": 1 } } } " get config default: "/tmp" "locations" "temp-directory" ; => "/tmp"
Next: Defining a Workflow, Previous: Defining a Process, Up: Top [Contents][Index]
Code Snippets
The Guix Workflow Language is embedded in Guile Scheme, so it makes sense to use Scheme to define the work that a process should perform. Sometimes it may be more convenient, though, to express the procedure in a different language, such as GNU R, Python, or maybe even in Bash.
The GWL provides special syntax for embedding code snippets. The
special syntax is provided in the (gwl sugar)
module, and is
loaded by default. Here is an example of a process that runs an
embedded Bash shell script:
process run-bash
packages "bash"
# bash { echo "hello from bash!" }
Notice how the “procedure” field name was not used here, because the code snippet came last. This cuts down on boilerplate.
Code snippets are introduced with # interpreter {
, where
interpreter
is the command line for running an interpreter, such
as /bin/bash -c
. Code snippets must end with a closing brace,
}
.
Make sure that the package inputs include a package providing the
interpreter. For convenience we provide the special interpreters
bash
, R
, and python
, so that you don’t have to
specify a more complicated command line. When no interpreter is
provided the generic shell interpreter /bin/sh
will be used:
process run-sh
# { echo "hello from a shell!" }
Within code snippets a special syntax is supported for accessing
variables. Any uninterrupted value enclosed in double braces is
considered a reference to a variable, which may also be the name of
other process fields. In the following example, the shell snippet
refers to the name
and inputs
fields of the current
process:
process run-bash
packages "bash"
inputs
. "a"
. "b"
. "c"
# bash {
echo "The name of this process: {{name}}."
echo "The data inputs are: {{inputs}}."
}
You can even access named or tagged values in lists. In the following
example, the shell snippet refers to only selected values of the
inputs
field of the current process:
process run-bash
packages "bash"
inputs
. "a"
. mine: "b"
. "c"
. yours: "d"
# bash {
echo "This is mine: {{inputs:mine}}, and this is yours: {{inputs:yours}}."
}
As expected, this will output the following text when run:
This is mine: b, and this is yours: d.
You can also access tagged sub-lists with the ::
accessor:
process frobnicate
packages "frobnicator"
inputs
. genome: "hg19.fa"
. samples: "a" "b" "c"
outputs
. "result"
# {
frobnicate -g {{inputs:genome}} --files {{inputs::samples}} > {{outputs}}
}
This process will cause the following command to be executed:
frobnicate -g hg19.fa --files a b c > result
If these two ways to access elements of a list are not enough, we
recommend defining a variable using pick
(Useful procedures and macros).
In the following example we define a variable second-sample
inside of the procedure
field to hold the second of the inputs
after the keyword samples:
, i.e. the string the
. We can
then refer to that variable by name in the code snippet.
process foo
inputs
. "something"
. samples: "in" "the" "way"
procedure
define second-sample
pick second samples: inputs
# { echo {{second-sample}} }
You can also access process meta data through environment variables. The following variables may be set:
-
_GWL_PROCESS_NAME
-
_GWL_PROCESS_SYNOPSIS
-
_GWL_PROCESS_DESCRIPTION
-
_GWL_PROCESS_INPUTS
-
_GWL_PROCESS_OUTPUT_PATH
-
_GWL_PROCESS_OUTPUTS
-
_GWL_PROCESS_COMPLEXITY_TIME
-
_GWL_PROCESS_COMPLEXITY_SPACE
-
_GWL_PROCESS_COMPLEXITY_THREADS
-
_GWL_PROCESS_VALUES
Next: Process Engines, Previous: Code Snippets, Up: Top [Contents][Index]
Defining a Workflow
A workflow is a combination of processes that run in a certain order or simultaneously. You can specify the dependencies of processes manually or let the GWL figure it out by matching up the declared inputs and outputs of all processes.
A workflow definition will look something like this:
workflow do-stuff
processes
. this
. that
. something-else
This defines a workflow with the name “do-stuff”, binds it to a variable
do-stuff
, and declares that it consists of the three processes
this
, that
, and something-else
. All of these
processes will be run at the same time. This may not be what you want
when the processes depend on each other.
If the processes all declare inputs and outputs, the GWL can connect
the processes and ensure that only independent processes are run
simultaneously. Use the auto-connect
procedure on your
processes:
workflow do-stuff
processes
auto-connect
. this
. that
. something-else
You can also explicitly construct a graph of processes with the aptly
named graph
macro. The following workflow definition lets the
process combine
run after generate-A
and
generate-B
, which will both run in parallel. The process
compress
will run after combine
, and thus at the very
end.
workflow frobnicate
processes
graph
combine -> generate-A generate-B
compress -> combine
• Declaring package requirements | ||
• workflow Fields |
Next: workflow
Fields, Up: Defining a Workflow [Contents][Index]
Declaring package requirements
Sometimes it may be desirable to use features from external packages in the definition of the workflow. For example, you may want to parse a configuration file with Guile DSV before even defining any processes. Or perhaps you may need to use an application to prepare state or query a database before the workflow is executed.
You can declare any package requirements with a
require-packages
form at the very top of your workflow file.
This must be the first code expression after any commented lines.
Before a workflow file is evaluated, the current environment is
modified to make the specified packages available. Any specified
Guile libraries are added to the load path, so care should be taken to
ensure that the libraries are in fact compatible with the version of
Guile used by the Workflow Language.
- Scheme Procedure: require-packages package…
The
require-packages
procedure takes any number of package specifications. A package specification is the package name, optionally followed by@
and a version string. The Workflow Language guarantees that the declared packages will be available when the workflow file is evaluated.;; Declare packages require-packages . "guile-dsv" ; for parsing CSV files . "guile-libyaml" ; for parsing YAML files ;; Load them import dsv yaml ;; Use them define : load-config file if : file-exists? file read-yaml-file file error "Could not find configuration file!" …
Previous: Declaring package requirements, Up: Defining a Workflow [Contents][Index]
workflow
Fields
Both make-workflow
and workflow
accept the same fields,
which we describe below. Of all these fields only name
and
processes
are required.
name
The readable name of the workflow as a string. This is used for display purposes. When the
workflow
constructor is used, thename
field need not be provided explicitly.version
A version string to distinguish different releases of the workflow.
synopsis
A short summary of what this workflow is about.
description
A description of what the workflow is supposed to accomplish.
processes
This field contains a list of processes that should be scheduled when the workflow is executed. A plain list of processes specifies processes that may run in parallel. A list of process lists is used to specify process dependencies. This is best done with the
graph
macro:The following workflow definition lets the process
combine
run aftergenerate-A
andgenerate-B
, which will both run in parallel. The processcompress
will run aftercombine
, and thus at the very end.workflow frobnicate processes graph combine -> generate-A generate-B compress -> combine
This can be expressed just as well with lists of process lists, but it looks a little dense. Here is the same thing in Scheme without the
graph
macro:(workflow frobnicate (processes (list (list combine generate-A generate-B) (compress combine))))
If the processes all declare inputs and outputs, the GWL can connect the processes and ensure that only independent processes are run simultaneously. Use the
auto-connect
procedure on your processes:workflow do-stuff processes auto-connect . this . that . something-else
before
This field holds a Scheme procedure that will be executed before the workflow processes are scheduled. This can be useful for printing introduction banners or logos.
workflow fancy-hello before lambda _ display "\ _ _ _ . | | | | | . | |__ ___| | | ___ . | '_ \\ / _ \\ | |/ _ \\ . | | | | __/ | | (_) | . |_| |_|\\___|_|_|\\___/ . " newline display "Now that I've got your attention, let's compute!" newline newline processes list hello
after
This field holds a Scheme procedure that will be executed after all workflow processes have been executed. This can be useful for printing further instructions or hints as to where the user may find important output files.
workflow fancy-bye after lambda _ newline display "The main report file is called `report2021_final_really_approved.html'." newline newline processes list generate-report
Next: Invoking guix workflow, Previous: Defining a Workflow, Up: Top [Contents][Index]
Process Engines
Once you have defined a workflow, there are different ways to run the
processes it consists of. The simplest way is to turn the workflow into
a Guile script that sets up the desired environment and then executes
the workflow processes on the current machine. This is what the
simple-engine
does.
The drmaa-engine
submits generated process scripts to an HPC
cluster scheduler implementing
DRMAA version 1, such as
the various incarnations of
Grid Engine or
Slurm. To use this engine you must
first set the environment variable GUILE_DRMAA_LIBRARY
to the
location of the libdrmaa.so shared library provided by your HPC
scheduler. Here is an example command from a system using Altair Grid
Engine:
export GUILE_DRMAA_LIBRARY=/opt/age-8.7.0/drmaa/lib/lx-amd64/libdrmaa.so
The grid-engine
is similar to the simple-engine
in that
it generates a shell script, with the difference that it also includes
resource variable definitions for submission to a Grid Engine
scheduling system. The resource variables are derived from the
process run-time
field. This process engine is deprecated in
favor of drmaa-engine
.
Next: Acknowledgments, Previous: Process Engines, Up: Top [Contents][Index]
Invoking guix workflow
The Guix Workflow Language extends your Guix installation with a new
command: guix workflow
. There are three sub-commands:
run
To run (or prepare to run) a workflow from a file.
graph
Load a workflow from a file and generate a graph in Graphviz Dot-format.
web
The GWL includes a web interface. This command starts it.
• Options for guix workflow run | ||
• Options for guix workflow web |
Next: Options for guix workflow web, Up: Invoking guix workflow [Contents][Index]
Options for guix workflow run
This is the command to run (or prepare to run) a workflow from a file. It generate the process scripts, builds or downloads all dependencies, and then runs the workflow process scripts corresponding to the workflow defined in the given file.
The following options can be provided to change the behavior of this command.
--input=name[=file]
-i name[=file]
A workflow may have so-called free inputs, inputs that are not provided by any of the workflow’s processes. By default, the GWL will pick files from the current working directory that match the names of free inputs. This option can be used to map a file with an arbitrary name to a free input in the workflow with the given name. This option can be provided more than once.
In the following example, the free input called
genome
is mapped to the file /data/hg19.fa before running the workflow defined in analysis.w:guix workflow run --input=genome=/data/hg19.fa analysis.w
The workflow in analysis.w could look something like the following. Note the input file genome, which is an input not provided by any other processes, and which must hence be provided through the command line.
process state-the-obvious inputs . "genome" outputs . "result" # { echo "This is a genome: {{inputs}}" > {{outputs}} } workflow processes list state-the-obvious
--output=location
-o location
This option currently has no effect.
--engine=engine
-e engine
Select the process engine engine as the target of the generated process scripts. See Process Engines.
--prepare=file
-p file
Generate the process scripts and build or download all dependencies, but do not run the workflow process scripts corresponding to the workflow defined in file.
--log-events=event,…
-l events,…
Print messages for the comma-separated list of events. This defaults to logging the events
error
,execute
(for fatal errors) (for processes that are run), andinfo
(for status information). The following log events exist:error
,info
,execute
,cache
,debug
, andguix
. The special event typeall
enables all logging.--dry-run
-n
Prepare the scripts and the environments but don’t actually run the processes. Only show what commands would be run.
--force
-f
Execute all processes, even if their outputs may have been cached from previous runs.
--container
-c
Run each process inside of an isolated environment with file system virtualization and user namespaces. Only declared input files will be available at execution time, and only declared output files will be stored. This is a great option to use when you want to make sure that your processes only depend on state that you have declared. A downside is that generated output files cannot be written to the target directories directly but are copied from the container to the file system.
Previous: Options for guix workflow run, Up: Invoking guix workflow [Contents][Index]
Options for guix workflow web
--port=port
-p port
The network port on which the web interface listens for connections.
--host=host
-H host
The network host on which to listen for connections. This defaults to
localhost
.--workflows-directory=location
This is a location containing other workflows that the web interface may access to visualize them.
The following options are only rarely used:
--max-file-size=bytes
The maximum size (in bytes) of files served by the web interface.
--dot=/path/to/dot
Use this to provide an alternative variant of the dot executable.
--root=location
Use this to override the root location of the workflow web interface.
--assets-directory=location
Use this to override the location of web assets (CSS, JavaScript, images).
--examples-root-directory=location
Use this to override the default name of the directory containing workflow examples.
Next: GNU Free Documentation License, Previous: Invoking guix workflow, Up: Top [Contents][Index]
Acknowledgments
Thanks to the following people who contributed to the Guix Workflow Language through bug reports, patches, or through insightful discussions:
- Ludovic Courtès ludo@gnu.org
- Simon Tournier
- Kyle Meyer kyle@kyleam.com
Also thanks to the people who reviewed this project for joining the GNU project.
- Mike Gerwitz mtg@gnu.org
Thank you.
Next: Concept Index, Previous: Acknowledgments, Up: Top [Contents][Index]
GNU Free Documentation License
Copyright © 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc. http://fsf.org/ Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
- PREAMBLE
The purpose of this License is to make a manual, textbook, or other functional and useful document free in the sense of freedom: to assure everyone the effective freedom to copy and redistribute it, with or without modifying it, either commercially or noncommercially. Secondarily, this License preserves for the author and publisher a way to get credit for their work, while not being considered responsible for modifications made by others.
This License is a kind of “copyleft”, which means that derivative works of the document must themselves be free in the same sense. It complements the GNU General Public License, which is a copyleft license designed for free software.
We have designed this License in order to use it for manuals for free software, because free software needs free documentation: a free program should come with manuals providing the same freedoms that the software does. But this License is not limited to software manuals; it can be used for any textual work, regardless of subject matter or whether it is published as a printed book. We recommend this License principally for works whose purpose is instruction or reference.
- APPLICABILITY AND DEFINITIONS
This License applies to any manual or other work, in any medium, that contains a notice placed by the copyright holder saying it can be distributed under the terms of this License. Such a notice grants a world-wide, royalty-free license, unlimited in duration, to use that work under the conditions stated herein. The “Document”, below, refers to any such manual or work. Any member of the public is a licensee, and is addressed as “you”. You accept the license if you copy, modify or distribute the work in a way requiring permission under copyright law.
A “Modified Version” of the Document means any work containing the Document or a portion of it, either copied verbatim, or with modifications and/or translated into another language.
A “Secondary Section” is a named appendix or a front-matter section of the Document that deals exclusively with the relationship of the publishers or authors of the Document to the Document’s overall subject (or to related matters) and contains nothing that could fall directly within that overall subject. (Thus, if the Document is in part a textbook of mathematics, a Secondary Section may not explain any mathematics.) The relationship could be a matter of historical connection with the subject or with related matters, or of legal, commercial, philosophical, ethical or political position regarding them.
The “Invariant Sections” are certain Secondary Sections whose titles are designated, as being those of Invariant Sections, in the notice that says that the Document is released under this License. If a section does not fit the above definition of Secondary then it is not allowed to be designated as Invariant. The Document may contain zero Invariant Sections. If the Document does not identify any Invariant Sections then there are none.
The “Cover Texts” are certain short passages of text that are listed, as Front-Cover Texts or Back-Cover Texts, in the notice that says that the Document is released under this License. A Front-Cover Text may be at most 5 words, and a Back-Cover Text may be at most 25 words.
A “Transparent” copy of the Document means a machine-readable copy, represented in a format whose specification is available to the general public, that is suitable for revising the document straightforwardly with generic text editors or (for images composed of pixels) generic paint programs or (for drawings) some widely available drawing editor, and that is suitable for input to text formatters or for automatic translation to a variety of formats suitable for input to text formatters. A copy made in an otherwise Transparent file format whose markup, or absence of markup, has been arranged to thwart or discourage subsequent modification by readers is not Transparent. An image format is not Transparent if used for any substantial amount of text. A copy that is not “Transparent” is called “Opaque”.
Examples of suitable formats for Transparent copies include plain ASCII without markup, Texinfo input format, LaTeX input format, SGML or XML using a publicly available DTD, and standard-conforming simple HTML, PostScript or PDF designed for human modification. Examples of transparent image formats include PNG, XCF and JPG. Opaque formats include proprietary formats that can be read and edited only by proprietary word processors, SGML or XML for which the DTD and/or processing tools are not generally available, and the machine-generated HTML, PostScript or PDF produced by some word processors for output purposes only.
The “Title Page” means, for a printed book, the title page itself, plus such following pages as are needed to hold, legibly, the material this License requires to appear in the title page. For works in formats which do not have any title page as such, “Title Page” means the text near the most prominent appearance of the work’s title, preceding the beginning of the body of the text.
The “publisher” means any person or entity that distributes copies of the Document to the public.
A section “Entitled XYZ” means a named subunit of the Document whose title either is precisely XYZ or contains XYZ in parentheses following text that translates XYZ in another language. (Here XYZ stands for a specific section name mentioned below, such as “Acknowledgements”, “Dedications”, “Endorsements”, or “History”.) To “Preserve the Title” of such a section when you modify the Document means that it remains a section “Entitled XYZ” according to this definition.
The Document may include Warranty Disclaimers next to the notice which states that this License applies to the Document. These Warranty Disclaimers are considered to be included by reference in this License, but only as regards disclaiming warranties: any other implication that these Warranty Disclaimers may have is void and has no effect on the meaning of this License.
- VERBATIM COPYING
You may copy and distribute the Document in any medium, either commercially or noncommercially, provided that this License, the copyright notices, and the license notice saying this License applies to the Document are reproduced in all copies, and that you add no other conditions whatsoever to those of this License. You may not use technical measures to obstruct or control the reading or further copying of the copies you make or distribute. However, you may accept compensation in exchange for copies. If you distribute a large enough number of copies you must also follow the conditions in section 3.
You may also lend copies, under the same conditions stated above, and you may publicly display copies.
- COPYING IN QUANTITY
If you publish printed copies (or copies in media that commonly have printed covers) of the Document, numbering more than 100, and the Document’s license notice requires Cover Texts, you must enclose the copies in covers that carry, clearly and legibly, all these Cover Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on the back cover. Both covers must also clearly and legibly identify you as the publisher of these copies. The front cover must present the full title with all words of the title equally prominent and visible. You may add other material on the covers in addition. Copying with changes limited to the covers, as long as they preserve the title of the Document and satisfy these conditions, can be treated as verbatim copying in other respects.
If the required texts for either cover are too voluminous to fit legibly, you should put the first ones listed (as many as fit reasonably) on the actual cover, and continue the rest onto adjacent pages.
If you publish or distribute Opaque copies of the Document numbering more than 100, you must either include a machine-readable Transparent copy along with each Opaque copy, or state in or with each Opaque copy a computer-network location from which the general network-using public has access to download using public-standard network protocols a complete Transparent copy of the Document, free of added material. If you use the latter option, you must take reasonably prudent steps, when you begin distribution of Opaque copies in quantity, to ensure that this Transparent copy will remain thus accessible at the stated location until at least one year after the last time you distribute an Opaque copy (directly or through your agents or retailers) of that edition to the public.
It is requested, but not required, that you contact the authors of the Document well before redistributing any large number of copies, to give them a chance to provide you with an updated version of the Document.
- MODIFICATIONS
You may copy and distribute a Modified Version of the Document under the conditions of sections 2 and 3 above, provided that you release the Modified Version under precisely this License, with the Modified Version filling the role of the Document, thus licensing distribution and modification of the Modified Version to whoever possesses a copy of it. In addition, you must do these things in the Modified Version:
- Use in the Title Page (and on the covers, if any) a title distinct from that of the Document, and from those of previous versions (which should, if there were any, be listed in the History section of the Document). You may use the same title as a previous version if the original publisher of that version gives permission.
- List on the Title Page, as authors, one or more persons or entities responsible for authorship of the modifications in the Modified Version, together with at least five of the principal authors of the Document (all of its principal authors, if it has fewer than five), unless they release you from this requirement.
- State on the Title page the name of the publisher of the Modified Version, as the publisher.
- Preserve all the copyright notices of the Document.
- Add an appropriate copyright notice for your modifications adjacent to the other copyright notices.
- Include, immediately after the copyright notices, a license notice giving the public permission to use the Modified Version under the terms of this License, in the form shown in the Addendum below.
- Preserve in that license notice the full lists of Invariant Sections and required Cover Texts given in the Document’s license notice.
- Include an unaltered copy of this License.
- Preserve the section Entitled “History”, Preserve its Title, and add to it an item stating at least the title, year, new authors, and publisher of the Modified Version as given on the Title Page. If there is no section Entitled “History” in the Document, create one stating the title, year, authors, and publisher of the Document as given on its Title Page, then add an item describing the Modified Version as stated in the previous sentence.
- Preserve the network location, if any, given in the Document for public access to a Transparent copy of the Document, and likewise the network locations given in the Document for previous versions it was based on. These may be placed in the “History” section. You may omit a network location for a work that was published at least four years before the Document itself, or if the original publisher of the version it refers to gives permission.
- For any section Entitled “Acknowledgements” or “Dedications”, Preserve the Title of the section, and preserve in the section all the substance and tone of each of the contributor acknowledgements and/or dedications given therein.
- Preserve all the Invariant Sections of the Document, unaltered in their text and in their titles. Section numbers or the equivalent are not considered part of the section titles.
- Delete any section Entitled “Endorsements”. Such a section may not be included in the Modified Version.
- Do not retitle any existing section to be Entitled “Endorsements” or to conflict in title with any Invariant Section.
- Preserve any Warranty Disclaimers.
If the Modified Version includes new front-matter sections or appendices that qualify as Secondary Sections and contain no material copied from the Document, you may at your option designate some or all of these sections as invariant. To do this, add their titles to the list of Invariant Sections in the Modified Version’s license notice. These titles must be distinct from any other section titles.
You may add a section Entitled “Endorsements”, provided it contains nothing but endorsements of your Modified Version by various parties—for example, statements of peer review or that the text has been approved by an organization as the authoritative definition of a standard.
You may add a passage of up to five words as a Front-Cover Text, and a passage of up to 25 words as a Back-Cover Text, to the end of the list of Cover Texts in the Modified Version. Only one passage of Front-Cover Text and one of Back-Cover Text may be added by (or through arrangements made by) any one entity. If the Document already includes a cover text for the same cover, previously added by you or by arrangement made by the same entity you are acting on behalf of, you may not add another; but you may replace the old one, on explicit permission from the previous publisher that added the old one.
The author(s) and publisher(s) of the Document do not by this License give permission to use their names for publicity for or to assert or imply endorsement of any Modified Version.
- COMBINING DOCUMENTS
You may combine the Document with other documents released under this License, under the terms defined in section 4 above for modified versions, provided that you include in the combination all of the Invariant Sections of all of the original documents, unmodified, and list them all as Invariant Sections of your combined work in its license notice, and that you preserve all their Warranty Disclaimers.
The combined work need only contain one copy of this License, and multiple identical Invariant Sections may be replaced with a single copy. If there are multiple Invariant Sections with the same name but different contents, make the title of each such section unique by adding at the end of it, in parentheses, the name of the original author or publisher of that section if known, or else a unique number. Make the same adjustment to the section titles in the list of Invariant Sections in the license notice of the combined work.
In the combination, you must combine any sections Entitled “History” in the various original documents, forming one section Entitled “History”; likewise combine any sections Entitled “Acknowledgements”, and any sections Entitled “Dedications”. You must delete all sections Entitled “Endorsements.”
- COLLECTIONS OF DOCUMENTS
You may make a collection consisting of the Document and other documents released under this License, and replace the individual copies of this License in the various documents with a single copy that is included in the collection, provided that you follow the rules of this License for verbatim copying of each of the documents in all other respects.
You may extract a single document from such a collection, and distribute it individually under this License, provided you insert a copy of this License into the extracted document, and follow this License in all other respects regarding verbatim copying of that document.
- AGGREGATION WITH INDEPENDENT WORKS
A compilation of the Document or its derivatives with other separate and independent documents or works, in or on a volume of a storage or distribution medium, is called an “aggregate” if the copyright resulting from the compilation is not used to limit the legal rights of the compilation’s users beyond what the individual works permit. When the Document is included in an aggregate, this License does not apply to the other works in the aggregate which are not themselves derivative works of the Document.
If the Cover Text requirement of section 3 is applicable to these copies of the Document, then if the Document is less than one half of the entire aggregate, the Document’s Cover Texts may be placed on covers that bracket the Document within the aggregate, or the electronic equivalent of covers if the Document is in electronic form. Otherwise they must appear on printed covers that bracket the whole aggregate.
- TRANSLATION
Translation is considered a kind of modification, so you may distribute translations of the Document under the terms of section 4. Replacing Invariant Sections with translations requires special permission from their copyright holders, but you may include translations of some or all Invariant Sections in addition to the original versions of these Invariant Sections. You may include a translation of this License, and all the license notices in the Document, and any Warranty Disclaimers, provided that you also include the original English version of this License and the original versions of those notices and disclaimers. In case of a disagreement between the translation and the original version of this License or a notice or disclaimer, the original version will prevail.
If a section in the Document is Entitled “Acknowledgements”, “Dedications”, or “History”, the requirement (section 4) to Preserve its Title (section 1) will typically require changing the actual title.
- TERMINATION
You may not copy, modify, sublicense, or distribute the Document except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, or distribute it is void, and will automatically terminate your rights under this License.
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, receipt of a copy of some or all of the same material does not give you any rights to use it.
- FUTURE REVISIONS OF THIS LICENSE
The Free Software Foundation may publish new, revised versions of the GNU Free Documentation License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. See http://www.gnu.org/copyleft/.
Each version of the License is given a distinguishing version number. If the Document specifies that a particular numbered version of this License “or any later version” applies to it, you have the option of following the terms and conditions either of that specified version or of any later version that has been published (not as a draft) by the Free Software Foundation. If the Document does not specify a version number of this License, you may choose any version ever published (not as a draft) by the Free Software Foundation. If the Document specifies that a proxy can decide which future versions of this License can be used, that proxy’s public statement of acceptance of a version permanently authorizes you to choose that version for the Document.
- RELICENSING
“Massive Multiauthor Collaboration Site” (or “MMC Site”) means any World Wide Web server that publishes copyrightable works and also provides prominent facilities for anybody to edit those works. A public wiki that anybody can edit is an example of such a server. A “Massive Multiauthor Collaboration” (or “MMC”) contained in the site means any set of copyrightable works thus published on the MMC site.
“CC-BY-SA” means the Creative Commons Attribution-Share Alike 3.0 license published by Creative Commons Corporation, a not-for-profit corporation with a principal place of business in San Francisco, California, as well as future copyleft versions of that license published by that same organization.
“Incorporate” means to publish or republish a Document, in whole or in part, as part of another Document.
An MMC is “eligible for relicensing” if it is licensed under this License, and if all works that were first published under this License somewhere other than this MMC, and subsequently incorporated in whole or in part into the MMC, (1) had no cover texts or invariant sections, and (2) were thus incorporated prior to November 1, 2008.
The operator of an MMC Site may republish an MMC contained in the site under CC-BY-SA on the same site at any time before August 1, 2009, provided the MMC is eligible for relicensing.
ADDENDUM: How to use this License for your documents
To use this License in a document you have written, include a copy of the License in the document and put the following copyright and license notices just after the title page:
Copyright (C) year your name. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled ``GNU Free Documentation License''.
If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, replace the “with…Texts.” line with this:
with the Invariant Sections being list their titles, with the Front-Cover Texts being list, and with the Back-Cover Texts being list.
If you have Invariant Sections without Cover Texts, or some other combination of the three, merge those two alternatives to suit the situation.
If your document contains nontrivial examples of program code, we recommend releasing these examples in parallel under your choice of free software license, such as the GNU General Public License, to permit their use in free software.
Next: Programming Index, Previous: GNU Free Documentation License, Up: Top [Contents][Index]
Concept Index
Jump to: | (
A B C D E F G H I K L M N O P R S T U V W |
---|
Jump to: | (
A B C D E F G H I K L M N O P R S T U V W |
---|
Previous: Concept Index, Up: Top [Contents][Index]
Programming Index
Jump to: | D F G L O P R |
---|
Jump to: | D F G L O P R |
---|