import emodpy_malaria.malaria_config as conf
"gambiae"]) conf.add_species(config, manifest, [
Add Vector Species
EMOD allows us to specify the distribution of mosquito species in the simulation, and to specify life cycle, larval habitat, and transmission parameters for each species.
Single Species
The example below would populate the model with 100% gambiae mosquitoes and can be included in the config builder with a simple add_species()
.
Default parameters will appear in the config file for A. gambiae. Some defaults differ between species and EMOD defaults can be found here.
Multiple Species
We can also include a mix of vector species, adding multiple vector populations with species-specific parameters.
import emodpy_malaria.malaria_config as conf
=["gambiae", "arabiensis"]) conf.add_species(config, manifest, species_to_select
For each species listed in Vector_Species_Params, a “VectorPopulation” object will be added to the simulation at each node. Each species will be defined by parameters in the simulation configuration file for the vector ecology and behavior of the species. This allows for a mechanistic description of vector abundances and behavior through the effects of climate and weather on different preferred larval habitats.
Modify vector species parameters
To change vector species parameters from defaults, use the set_species_param()
function.
import emodpy_malaria.malaria_config as conf
# Example: Decrease the 'Transmission_Rate' of A. arabiensis from 0.9 (default) to 0.75.
conf.set_species_param(config, ="arabiensis",
species="Transmission_Rate",
parameter=0.75,
value=False # If True, replaces any previous stored values
overwrite )
Modify species habitat parameters
The larval habitat parameters for each vector species can also be modified.
import emodpy_malaria.malaria_config as conf
# Example: Add brackish swamp habitat availability for A. arabiensis only.
= {"arabiensis": {"BRACKISH_SWAMP": 1.7e9, "Max_Larval_Capacity": 30000000.0}}
new_habitats for species, habitat in new_habitats.items():
conf.set_species_param(config, species,="Larval_Habitat_Types",
parameter= habitat,
value=False # Does not delete previous habitat types
overwrite )