simrisc(1)

simrisc breast cancer simulation program
(simrisc.14.05.01)

2020-2022

NAME

simrisc - This program performs simulations in the context of breast cancer

SYNOPSIS

simrisc [options] analyses

The analyses argument is the name of the file specifying the analyses to perform. See section ANALYSES for details.

DESCRIPTION

Simrisc was originally designed around 2010 by Marcel Greuter at the University Medical Center Groningen, and thereafter modified in 2015 by Chris de Jonge.

Changes introduced in version 14.04.00

OPTIONS

Short options are provided between parentheses, immediately following their long option equivalents. Several parameters specify the path-names of files produced by simrisc. If a path-name starts with a tilde character (~) then the tilde is replaced by the user's home directory. An initial + is replaced by the program's base directory (see option base). When an analysis uses multiple iterations then `$' characters in filename specifications are replaced by the analysis' interation index.

All single-letter options referring to filesystem entries (directories, filenames) are capitalized, all other single-letter options are lowercase.

ANALYSES

Unless the one-analysis option is used the program's first and only required argument is the name of a file providing the details of the analyses to perform. Those files are called analysis files and must be standard ascii text files. I.e., they only contain 7-bit ascii printable and white-space characters. The identifiers used in analysis files and in configuration files are interpreted case sensitively.

Parameter specifications starting with uppercase letters (like Analysis: and Scenario:) specify (sub)sections and contain no additional specifications. Specifications starting with lowercase letters (like ageGroup:) are followed by actual parameter values. For a complete overview refer to the simriscparams(7) man-page.

Analysis files may define multiple analyses. Each analysis specification must begin with a line containing


    Analysis:
        
At each Analysis: specification the program's initial configuration is reset: the default option values are used unless redefined by explicitly provided command-line options. Explicitly provided command-line options cannot be altered by specifications in Analysis: sections and remain active while simrisc is running.

Following Analysis: lines the characteristics of the analysis are specified. These specifications may, in the following order:

All specifications in Analysis: sections are optional. An Analysis: specification merely containing the line Analysis: defines an analysis using the explicitly specified command-line options or the default program options and using the parameter specifications provided in the configuration file.

Empty lines, trailing white-space, and all characters on lines starting at the hash-mark (#) are ignored and may be used anywhere in analysis files.

Lines not conforming to the above description result in error messages, causing simrisc to end.

When parameters of configuration file sections (cf. simriscparams(7)) are omitted from Analysis: sections then the parameters as specified in the configuration file are used.

When program options are specified their long option names must be used. E.g.:


    base:       /tmp/
    last-case:  20
    

Command-line options always overrule options specified in analysis files.

Multiple analysis sections should not use identically named output files, as the output files are (re)written for each separate analysis.

Analysis sections are commonly used to alter the default specifications of the configuration file. E.g., the default number of iterations equals 1. By specifying


    iterations: 3
    
the analysis performs 3 iterations.

Parameters are either read from the configuration file or they are redefined in Analysis: sections. E.g., in de provided configuration file screening rounds use two-year intervals between the ages of 50 and 74. To use screening rounds using 5-year intervals, between ages 50 and 65, then an Analysis: specification could be, e.g.,


Screening:
    round:     50  Mammo MRI
    round:     55  Mammo MRI
    round:     60  Mammo MRI
    round:     65  Mammo MRI
    

When the --one-analysis option is used parameters may be altered by providing comma-separated parameter specifications as program command-line arguments. E.g., to perform one analysis, writing the data file to /tmp/data, simulating 1000 cases, and using 20 as seed for the random number generator the command


    simrisc -D /tmp/data -o Scenario:, cases: 1000, seed: 20
    
can be used. Note that when using the one-analysis option parameter section names must precede parameter specifications. E.g., since the parameters cases and seed are defined in the `Scenario' section (cf. simriscparams(7)) they must be preceded by the Scenario: specification.

Subsequent Analysis: specifications in analysis files use the program options as specified on the command line (or, if not specified, the default program options) and uses the configuration file's parameter specifications. So when an Analysis: specification modifies parameters, then subsequent Analysis: sections start from the unmodified option and parameter specifications.

When Analysis: sections specify base: directory locations then file specifications using an initial `+' character to represent the base directory (like --data +/data.txt) use the base directory specified at the Analysis:'s base: specification.

OUTPUT

The first lines of the generated files contain time stamps showing the date and time when the files were written and the used SimRisc version. Here is an example, following the RFC 2822 format for the timestamp:


    Thu, 08 Apr 2021 21:43:09 +0200 (SimRisc V. 14.04.00)
    
If label: lines are used then the time stamp is followed by the label specifications, which is then followed by an empty line. After this header the file's specific data are shown.

The data in all files (except for the file listing the actually used parameters (option --parameters (P))) are written using the standard comma-separated format (cf. RFC 4180). The initial lines contain table headings and column labels documenting the meanings of the various columns. Likewise there is a final line ending the tables.

Data of simulated cases

For each simulated case the values of the following variables are written to file (one line of comma-separated values per simulated case):

Actually used spread-values

When spread: true is specified then by default the actually used and orgiginal parameter values are written to the file spread-$.txt, where $ is replaced by the loop's iteration index. Here is a sample from the content of such a file, showing the values of modality Mammo's Beta parameters:


    Beta:
      nr: 1  using -4.37906 (configured: -4.38)
      nr: 2  using 0.490436 (configured: 0.49)
      nr: 3  using -1.33749 (configured: -1.34)
      nr: 4  using -7.22025 (configured: -7.18)
    

FILES

SEE ALSO

simriscparams(7)

COPYRIGHT

This is free software, distributed under the terms of the GNU General Public License (GPL).

AUTHOR

Frank B. Brokken (f.b.brokken@rug.nl),