Learn R Programming

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

nosoi (version 1.0.1)

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. in prep). 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.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Sebastian Lequime

Last Published

February 19th, 2020

Functions in nosoi (1.0.1)

RasterSanityChecks

Checks if the raster is properly formatted
dualContinuous

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

Draw newly infected
applyFunctionToHosts

Apply a function to table.host
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
dualDiscrete

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

Checks if a function is properly formatted
getTableHosts

Extracts table.hosts from a nosoiSim object
getTableState

Extracts table.state from a nosoiSim object
getTransmissionTree

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

Get Exiting or Moving individuals
getPositionInfected

get Position Infected
get_node

Get Node
get_state

Get State at sampling time
nosoiSim

Top-level function to use nosoi.
sampleTransmissionTree

Sample the transmission tree (phylogenetic tree-like)
sampleTransmissionTreeFromExiting

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

Dual-host pathogen in homogeneous hosts populations
newLineState

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

Gets R0 from a nosoi simulation
get_other_count

Get host count from table
iniTable

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

Meet Transmit function
endMessage

End message
getHostData

Extracts specific data from a nosoiSim object
singleContinuous

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

Make Move function
nosoiSimOneConstructor

nosoiSimOne Constructor
iniTableState

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

nosoiSim Constructor
singleDiscrete

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

Should we build the table.host table
nosoiSummary

Summarizes the epidemiological features of a nosoi simulation
merge_host_tables

Merge Population Data
keep.tip.treedata

Keep tips
moveFunction.discrete

Make Discrete Move function
singleNone

Single-host pathogen in a homogeneous host population
get_position

Get Position on branch
moveRotateContinuous

Rotates movement in 2D space
numberInfectedBGW

Number of infected hosts at time t (BGW)
parseFunction

Parse function for later use
newLine

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

Number of active infected hosts at time t
paramConstructor

Param concatenator
writeInfected

Write newly infected function
updateHostCount

Summarise position of hosts in a discrete or discretized (raster) space
moveFunction.continuous

Make Continuous Move function
updateTableState

Update table state with exiting individuals
progressMessage

Progress bar
cumulativeInfected

Cumulative number of infected hosts at time t
CoreSanityChecks

Checks if the simulator can start
add_node_tip

Add one tip
MatrixSanityChecks

Checks if the matrix is properly formatted