Learn R Programming

⚠️There's a newer version (1.1.2) of this package.Take me there.

nosoi (version 1.0.2)

A Forward Agent-Based Transmission Chain Simulator

Description

The aim of 'nosoi' (pronounced no.si) is to provide a flexible agent-based stochastic transmission chain/epidemic simulator (Lequime et al. bioRxiv 2020.03.03.973107). It is named after the daimones of plague, sickness and disease that escaped Pandora's jar in the Greek mythology. 'nosoi' is able to take into account the influence of multiple variable on the transmission process (e.g. dual-host systems (such as arboviruses), within-host viral dynamics, transportation, population structure), alone or taken together, to create complex but relatively intuitive epidemiological simulations.

Copy Link

Version

Install

install.packages('nosoi')

Monthly Downloads

276

Version

1.0.2

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Sebastian Lequime

Last Published

April 3rd, 2020

Functions in nosoi (1.0.2)

CoreSanityChecks

Checks if the simulator can start
getExitingMoving

Get Exiting or Moving individuals
dualDiscrete

Dual-host pathogen in structured (discrete) hosts populations
getTableState

Extracts table.state from a nosoiSim object
moveRotateContinuous

Rotates movement in 2D space
sampleTransmissionTree

Sample the transmission tree (phylogenetic tree-like)
sampleTransmissionTreeFromExiting

Sample the transmission tree (phylogenetic tree-like) among the exited hosts
getHostData

Extracts specific data from a nosoiSim object
endMessage

End message
makeMoves

Make Move function
get_state

Get State at sampling time
newLine

Creates a new line to be added to the table when new host is infected (internal function)
iniTableState

Generates initial movement table to start the simulation (internal function)
keepState

Should we build the table.host table
drawBernouilli

Draw newly infected
getR0

Gets R0 from a nosoi simulation
keep.tip.treedata

Keep tips
moveFunction.discrete

Make Discrete Move function
meetTransmit

Meet Transmit function
getTransmissionTree

Gets the full transmission tree (phylogenetic tree-like) from a nosoi simulation
getPositionInfected

get Position Infected
getCumulative

Gets the cumulative number of infected hosts for the full length of the simulation
getDynamic

Gets the current number of infected hosts for the full length of the simulation
merge_host_tables

Merge Population Data
iniTable

Generates initial table to start the simulation (internal function)
numberInfectedBGW

Number of infected hosts at time t (BGW)
parseFunction

Parse function for later use
moveFunction.continuous

Make Continuous Move function
updateTableState

Update table state with exiting individuals
paramConstructor

Param concatenator
nosoiSim

Top-level function to use nosoi.
progressMessage

Progress bar
get_other_count

Get host count from table
newLineState

Creates a new line to be added to the movement table when hosts moves (internal function)
singleNone

Single-host pathogen in a homogeneous host population
nosoiSummary

Summarizes the epidemiological features of a nosoi simulation
get_position

Get Position on branch
nosoiSimOneConstructor

nosoiSimOne Constructor
numberInfected

Number of active infected hosts at time t
singleContinuous

Single-host pathogen in a structured (continuous) host population
writeInfected

Write newly infected function
singleDiscrete

Single-host pathogen in a structured (discrete) host population
updateHostCount

Summarise position of hosts in a discrete or discretized (raster) space
nosoiSimConstructor

nosoiSim Constructor
get_node

Get Node
RasterSanityChecks

Checks if the raster is properly formatted
dualContinuous

Dual-host pathogen in structured (continuous) hosts populations
cumulativeInfected

Cumulative number of infected hosts at time t
add_node_tip

Add one tip
FunctionSanityChecks

Checks if a function is properly formatted
dualNone

Dual-host pathogen in homogeneous hosts populations
MatrixSanityChecks

Checks if the matrix is properly formatted
applyFunctionToHosts

Apply a function to table.host
getTableHosts

Extracts table.hosts from a nosoiSim object