Learn R Programming

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

nosoi (version 1.0.3)

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

307

Version

1.0.3

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Sebastian Lequime

Last Published

May 12th, 2020

Functions in nosoi (1.0.3)

getTableHosts

Extracts table.hosts from a nosoiSim object
getTableState

Extracts table.state from a nosoiSim object
keep.tip.treedata

Keep tips
nosoiSummary

Summarizes the epidemiological features of a nosoi simulation
getHostData

Extracts specific data from a nosoiSim object
dualDiscrete

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

Top-level function to use nosoi.
updateHostCount

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

Get Exiting or Moving individuals
iniTableState

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

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

Dual-host pathogen in homogeneous hosts populations
getPositionInfected

get Position Infected
getDynamic

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

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

Update table state with exiting individuals
getTransmissionTree

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

Gets R0 from a nosoi simulation
get_other_count

Get host count from table
numberInfected

Number of active infected hosts at time t
writeInfected

Write newly infected function
moveRotateContinuous

Rotates movement in 2D space
paramConstructor

Param concatenator
iniTable

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

End message
get_state

Get State at sampling time
nosoiSimConstructor

nosoiSim Constructor
progressMessage

Progress bar
newLine

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

Make Move function
singleDiscrete

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

nosoiSimOne Constructor
get_position

Get Position on branch
keepState

Should we build the table.host table
get_node

Get Node
parseFunction

Parse function for later use
meetTransmit

Meet Transmit function
moveFunction.discrete

Make Discrete Move function
moveFunction.continuous

Make Continuous Move function
sampleTransmissionTree

Sample the transmission tree (phylogenetic tree-like)
singleContinuous

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

Single-host pathogen in a homogeneous host population
sampleTransmissionTreeFromExiting

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

Merge Population Data
numberInfectedStates

Number of active infected hosts at time t
numberInfectedBGW

Number of infected hosts at time t (BGW)
MatrixSanityChecks

Checks if the matrix is properly formatted
dualContinuous

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

Apply a function to table.host
RasterSanityChecks

Checks if the raster is properly formatted
add_node_tip

Add one tip
cumulativeInfected

Cumulative number of infected hosts at time t
drawBernouilli

Draw newly infected
FunctionSanityChecks

Checks if a function is properly formatted
CoreSanityChecks

Checks if the simulator can start