Diff of /man/outbreaker_data.Rd [000000] .. [dfe06d]

Switch to unified view

a b/man/outbreaker_data.Rd
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/outbreaker_data.R
3
\name{outbreaker_data}
4
\alias{outbreaker_data}
5
\title{Process input data for outbreaker}
6
\usage{
7
outbreaker_data(..., data = list(...))
8
}
9
\arguments{
10
\item{...}{a list of data items to be processed (see description)}
11
12
\item{data}{optionally, an existing list of data item as returned by \code{outbreaker_data}.}
13
}
14
\description{
15
This function performs various checks on input data given to outbreaker.  It
16
takes a list of named items as input, performs various checks, set defaults
17
where arguments are missing, and return a correct list of data input. If no
18
input is given, it returns the default settings.
19
}
20
\details{
21
Acceptables arguments for ... are:
22
\describe{
23
\item{dates}{dates a vector indicating the collection dates, provided either as
24
integer numbers or in a usual date format such as \code{Date} or
25
\code{POSIXct} format. By convention, zero will indicate the oldest date. If
26
the vector is named, the vector names will be used for matching cases to
27
contact tracing data and labelled DNA sequences.}
28
29
\item{dna}{the DNA sequences in \code{DNAbin} format (see
30
\code{\link[ape]{read.dna}} in the ape package); this can be imported from a
31
fasta file (extension .fa, .fas, or .fasta) using \code{adegenet}'s function
32
\link[adegenet]{fasta2DNAbin}.}
33
34
\item{ctd}{the contact tracing data provided as a matrix/dataframe of two
35
columns, indicating a reported contact between the two individuals whose ids
36
are provided in a given row of the data, or an epicontacts object. In the case
37
of the latter, linelist IDs will be used for matching dates and DNA
38
sequences}
39
40
\item{w_dens}{a vector of numeric values indicating the generation time
41
distribution, reflecting the infectious potential of a case t = 1, 2, ...
42
time steps after infection. By convention, it is assumed that
43
newly infected patients cannot see new infections on the same time step. If not
44
standardized, this distribution is rescaled to sum to 1.}
45
46
\item{f_dens}{similar to \code{w_dens}, except that this is the distribution
47
of the colonization time, i_e. time interval during which the pathogen can
48
be sampled from the patient.}}
49
}
50
\examples{
51
52
x <- fake_outbreak
53
outbreaker_data(dates = x$sample, dna = x$dna, w_dens = x$w)
54
55
}
56
\author{
57
Thibaut Jombart (\email{thibautjombart@gmail.com})
58
}