Learn R Programming

nosoi (version 1.1.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. Methods in Ecology and Evolution 11:1002-1007). 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.1.2

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Sebastian Lequime

Last Published

February 9th, 2024

Functions in nosoi (1.1.2)

nosoiSim

Top-level function to use nosoi.
getHostData

Extracts specific data from a nosoiSim object
makeMoves

Make Move function
singleDiscrete

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

Extracts table.hosts from a nosoiSim object
sampleTransmissionTree

Sample the transmission tree (phylogenetic tree-like)
sampleTransmissionTreeFromExiting

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

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

Write newly infected function
get_node

Get Node
iniTable

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

Meet Transmit function
iniTableState

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

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

Rotates movement in 2D space
updateHostCount

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

Progress bar
newLine

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

Parse function for later use
getPositionInfected

get Position Infected
get_other_count

Get host count from table
nosoiSummary

Summarizes the epidemiological features of a nosoi simulation
dualNone

Dual-host pathogen in homogeneous hosts populations
updateTableState

Update table state with exiting individuals
getTableState

Extracts table.state from a nosoiSim object
nosoiSimOneConstructor

nosoiSimOne Constructor
numberInfected

Number of active infected hosts at time t
moveFunction.discrete

Make Discrete Move function
newLineState

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

nosoiSim Constructor
getTransmissionTree

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

Number of infected hosts at time t (BGW)
merge_host_tables

Merge Population Data
moveFunction.continuous

Make Continuous Move function
paramConstructor

Param concatenator
numberInfectedStates

Number of active infected hosts at time t
singleNone

Single-host pathogen in a homogeneous host population
drawBernouilli

Draw newly infected
FunctionSanityChecks

Checks if a function is properly formatted
dualContinuous

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

Checks if the raster is properly formatted
add_node_tip

Add one tip
CoreSanityChecks

Checks if the simulator can start
MatrixSanityChecks

Checks if the matrix is properly formatted
cumulativeInfected

Cumulative number of infected hosts at time t
applyFunctionToHosts

Apply a function to table.host
getR0

Gets R0 from a nosoi simulation
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
endMessage

End message
getExitingMoving

Get Exiting or Moving individuals
keep.tip.treedata

Keep tips
get_state

Get State at sampling time
get_position

Get Position on branch
keepState

Should we build the table.host table