Debian Codegraph @

src/dr/app/vcs/VCS.tex

raw
1 \documentclass[12pt]{article}
2 \begin{document}
3
4 \title{VCS 0.2: Variable Coalescent Simulator}
5 \author{Alexei Drummond}
6 \date{\today{}}
7 \maketitle
8
9 \section*{Introduction}
10
11 VCS is a simple command line program to simulate coalescent trees from an arbitrarily varying population size history specified as a piecewise-linear function.
12
13 \section*{Usage}
14
15 The software is distributed as a Java Archive (jar file) and will run on any operating system that have Java 1.5+ installed.
16
17 The command line usage is
18
19 \begin{verbatim}
20 java -jar vcs.jar [options] <infile> <outfile>
21 \end{verbatim}
22
23 The options are
24
25 \begin{itemize}
26 \item \texttt{-g <gentime>} sets the generation time to the given value. This is used to scale times in the input file into units of generations. The default value is 1.
27
28 \item \texttt{-n <sampleSize>} sets the number of samples to generate the trees from. The default value is 50.
29
30 \item \texttt{-p <popSizeScale>} sets the population size scale factor. This scale factor transforms the population sizes in the input file to effective population sizes. This is useful if the population size profiles are expressed, for example, as prevalences, so then scale factor would represent the effective numbers of hosts in the population of interest. The default value is 1.
31
32 \item \texttt{-reps <reps>} the number of replicate simulations that will be performed. Each replicate will be separated in the output file by a comment line that labels the replicate, e.g. \texttt{\#rep 0}.
33
34 \item \texttt{-se <sampledEnd>} the time at which the last taxon is sampled, in the time scale provided by the input file. If this differs from the time specified be \texttt{-ss} option then the samples will be evenly spaced between the two times. The default value is the last time if \texttt{-f} is set and the first time otherwise.
35
36 \item \texttt{-ss <sampleStart>} the time at which the first taxon is sampled, in the time scale provided in the input file. If this differs from the time specified be \texttt{-se} option then the samples will be evenly spaced between the two times. The default value is the last time if \texttt{-f} is set and the first time otherwise.
37
38 \item \texttt{-f} specifies that the population size history proceeds forward in time. Otherwise the population size history is assumed to proceed into the past.
39 \end{itemize}
40
41 The file arguments are
42
43 \begin{itemize}
44 \item \texttt{<infile>} A whitespace-delimited plain text file. The first column contains the time and should be ascending from zero. Subsequent columns contain the population size histories, for which a tree will be simulated for each.
45 \item \texttt{<outfile>} The file to which the trees will be written in NEWICK format.
46 \end{itemize}
47
48 \subsection*{Example infile}
49
50 \begin{verbatim}
51 0.0000 0.0000143266 0.0008941020 0.0000143267 0.0008941025
52 0.0832 0.0000142609 0.0008927429 0.0000142609 0.0008927434
53 0.1665 0.0000142073 0.0008914258 0.0000142073 0.0008914263
54 0.2497 0.0000141426 0.0008896486 0.0000141426 0.0008896491
55 0.3329 0.0000140794 0.0008877067 0.0000140794 0.0008877073
56 0.4161 0.0000140179 0.0008856322 0.0000140179 0.0008856328
57 0.4994 0.0000139585 0.0008834640 0.0000139586 0.0008834646
58 \end{verbatim}
59
60 \end{document}