nosoi1.1.2 package

A Forward Agent-Based Transmission Chain Simulator

add_node_tip

Add one tip

applyFunctionToHosts

Apply a function to table.host

CoreSanityChecks

Checks if the simulator can start

cumulativeInfected

Cumulative number of infected hosts at time t

drawBernouilli

Draw newly infected

dualContinuous

Dual-host pathogen in structured (continuous) hosts populations

dualDiscrete

Dual-host pathogen in structured (discrete) hosts populations

dualNone

Dual-host pathogen in homogeneous hosts populations

endMessage

End message

FunctionSanityChecks

Checks if a function is properly formatted

get_node

Get Node

get_other_count

Get host count from table

get_position

Get Position on branch

get_state

Get State at sampling time

getCumulative

Gets the cumulative number of infected hosts for the full length of th...

getDynamic

Gets the current number of infected hosts for the full length of the s...

getExitingMoving

Get Exiting or Moving individuals

getHostData

Extracts specific data from a nosoiSim object

getPositionInfected

get Position Infected

getR0

Gets R0 from a nosoi simulation

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...

iniTable

Generates initial table to start the simulation (internal function)

iniTableState

Generates initial movement table to start the simulation (internal fun...

keep.tip.treedata

Keep tips

keepState

Should we build the table.host table

makeMoves

Make Move function

MatrixSanityChecks

Checks if the matrix is properly formatted

meetTransmit

Meet Transmit function

merge_host_tables

Merge Population Data

moveFunction.continuous

Make Continuous Move function

moveFunction.discrete

Make Discrete Move function

moveRotateContinuous

Rotates movement in 2D space

newLine

Creates a new line to be added to the table when new host is infected ...

newLineState

Creates a new line to be added to the movement table when hosts moves ...

nosoiSim

Top-level function to use nosoi.

nosoiSimConstructor

nosoiSim Constructor

nosoiSimOneConstructor

nosoiSimOne Constructor

nosoiSummary

Summarizes the epidemiological features of a nosoi simulation

numberInfected

Number of active infected hosts at time t

numberInfectedBGW

Number of infected hosts at time t (BGW)

numberInfectedStates

Number of active infected hosts at time t

paramConstructor

Param concatenator

parseFunction

Parse function for later use

progressMessage

Progress bar

RasterSanityChecks

Checks if the raster is properly formatted

sampleTransmissionTree

Sample the transmission tree (phylogenetic tree-like)

sampleTransmissionTreeFromExiting

Sample the transmission tree (phylogenetic tree-like) among the exited...

singleContinuous

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

singleDiscrete

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

SingleNone

Single-host pathogen in a homogeneous host population

updateHostCount

Summarise position of hosts in a discrete or discretized (raster) spac...

updateTableState

Update table state with exiting individuals

writeInfected

Write newly infected function

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.

  • Maintainer: Sebastian Lequime
  • License: GPL-3
  • Last published: 2024-02-09