reporters
InsetChart
Bases: InsetChart
JSON report containing simulation-wide averages per time step across a wide range of malaria-specific data channels. Channels are fully determined by the simulation type and cannot be altered without modifying the EMOD source code.
Output is written to InsetChart.json. The report cannot be generated per-node; use
ReportMalariaFiltered for node-level InsetChart-style output.
Standard malaria channels:
- 30-day Avg Infection Duration — running average duration (days) of infections cleared in the last 30 days (naturally and via drugs). Controlled by include_30day_avg_infection_duration.
- Adult Vectors — average number of adult vectors per node.
- Air Temperature — average air temperature (Celsius) per node.
- Avg Num Infections — average number of infections per infected person (may exceed 1).
- Avg Num Vector Infs — average infections per infected/infectious vector. Only present with MALARIA_MECHANISTIC_MODEL_WITH_PARASITE_GENETICS.
- Births — cumulative live births.
- Blood Smear Gametocyte Prevalence — fraction detectable by BLOOD_SMEAR_GAMETOCYTES diagnostic.
- Blood Smear Parasite Prevalence — fraction detectable by BLOOD_SMEAR_PARASITES diagnostic.
- Campaign Cost — cumulative campaign cost (USD) from Cost_To_Consumer.
- Daily Bites per Human — average mosquito bites per person per day.
- Daily EIR — entomological inoculation rate (infected bites/day/person).
- Disease Deaths — cumulative malaria-attributed deaths.
- Fever Prevalence — fraction with fever above Report_Detection_Threshold_Fever.
- Human Infectious Reservoir — average infectiousness per individual to vectors.
- Infected — fraction of population currently infected.
- Infected and Infectious Vectors — fraction of adult female vectors with oocysts or sporozoites. Only present with MALARIA_MECHANISTIC_MODEL_WITH_PARASITE_GENETICS.
- Infectious Vectors — fraction of vectors currently infectious.
- Land Temperature — average land temperature (Celsius) per node.
- Log Prevalence — log10 of the Infected channel.
- Mean Parasitemia — geometric mean parasites per microliter of blood.
- New Clinical Cases — count of new clinical cases (controlled by Clinical_Fever_Threshold parameters).
- New Infections — number of individuals newly infected (not total new infections).
- New Severe Cases — new severe malaria cases based on anemia, parasite density, and fever probabilities.
- New Vector Infections — vectors newly infected that day. Only present with MALARIA_MECHANISTIC_MODEL_WITH_PARASITE_GENETICS.
- Newly Symptomatic — 50% of new infections randomly selected as symptomatic.
- PCR Gametocyte Prevalence — fraction detectable by PCR_GAMETOCYTES diagnostic.
- PCR Parasite Prevalence — fraction detectable by PCR_PARASITES diagnostic.
- PfHRP2 Prevalence — fraction detectable by PF_HRP2 diagnostic.
- Rainfall — average rainfall (mm/day) per node.
- Relative Humidity — average relative humidity per node.
- Statistical Population — total individuals in the simulation.
- Symptomatic Population — not connected in malaria simulations.
- True Prevalence — fraction detectable by TRUE_PARASITE_DENSITY diagnostic.
- Variant Fraction-PfEMP1 Major — average fraction of PfEMP1 antibody variants seen.
Dynamic channels (added via configuration):
- Has_
— one channel per entry in has_interventions. Fraction of population with that persistent intervention. - HasIP_
: — one channel per value of each IP key in has_ip. Fraction of population with that IP value. - Possible Mothers, New Pregnancies, Currently Pregnant — added when include_pregnancies is True.
See output details in Inset Chart Report.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by emodpy. |
required |
has_ip
|
list[str]
|
A channel is added for each value of each IndividualProperty key
provided. Channel name: Default: None |
None
|
has_interventions
|
list[str]
|
A channel is added for each intervention name provided.
Channel name: Default: None |
None
|
include_pregnancies
|
bool
|
If True, adds pregnancy-related channels: Possible Mothers, New Pregnancies, Currently Pregnant. Default: False |
False
|
include_30day_avg_infection_duration
|
bool
|
If True, includes the '30-day Avg Infection Duration' channel. If False, the channel is not in the report. Default: False |
False
|
Source code in emodpy_malaria/reporters/reporters.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 | |
MalariaImmunityReport
Bases: BuiltInReporter
The malaria immunity report (MalariaImmunityReport.json) is a JSON-formatted report that provides statistics for
several antibody types for specified age bins over a specified reporting duration. The report tracks the average and
standard deviation in the fraction of observed antibodies for merozoite surface protein (MSP), Plasmodium falciparum
erythrocyte membrane protein 1 (PfEMP1), and non-specific (less immunogenic) minor surface epitopes. The total
amount possible is determined by the parameters Falciparum_MSP_Variants, Falciparum_PfEMP1_Variants, and
Falciparum_Nonspecific_Types. The greater the fraction, the more antibodies the individual has against possible
new infections; the smaller the fraction, the more naive the individual's immune system is to malaria.
Output channels (each stratified by age bin and reporting interval):
MSP Mean by Age Bin/MSP StdDev by Age Bin— average and standard deviation of the fraction of MSP antibodies over the total possible (Falciparum_MSP_Variants).PfEMP1 Mean by Age Bin/PfEMP1 StdDev by Age Bin— average and standard deviation of the fraction of PfEMP1 antigens for which antibodies have developed over the total possible (Falciparum_PfEMP1_Variants).Non-Specific Mean by Age Bin/Non-Specific StdDev by Age Bin— average and standard deviation of the fraction of non-specific minor epitope antibodies over the total possible (Falciparum_Nonspecific_Types).
See output details in Malaria Immunity Report.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by emodpy. |
required |
reporting_interval
|
float
|
Defines the cadence of the report by specifying how many time steps to collect data before writing to the file. This will limit system memory usage and is advised when large output files are expected. Minimum value: 1 Maximum value: 1000000 Default: 1000000 |
1000000
|
age_bins
|
list[float]
|
The age bins (in years, in ascending order) to aggregate within and report. An empty array does not stratify by age. Minimum value: 0 Maximum value: 125 Default: [] |
None
|
max_number_reports
|
int
|
The maximum number of report output files that will be produced for a given simulation. Minimum value: 0 Maximum value: 1000000 Default: 1000000 |
1000000
|
pretty_format
|
bool
|
When set to true, the JSON output will use pretty formatting. The default, false, saves space. Default: False |
False
|
report_filter
|
ReportFilter
|
Common report filtering parameters. Valid filtering parameters for this report are: |
None
|
Source code in emodpy_malaria/reporters/reporters.py
508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 | |
MalariaPatientJSONReport
Bases: BuiltInReporter
The malaria patient data report (MalariaPatientJSONReport.json) is a JSON-formatted report that provides medical data for each individual on each day of the simulation. For a specified number of time steps, each "patient" will have information collected on the temperature of their fever, their parasite counts, treatments they received, and other relevant data.
The output contains a patient_array where each patient has both constant fields (id, birthday,
initial_age) and daily time-series arrays for: asexual_parasites (blood smear count),
asexual_positive_fields, gametocyte_positive_fields, gametocytes (blood smear count), hemoglobin,
infected_mosquito_fraction, temps (body temperature in Celsius, -1 if no fever), treatment (drug names
separated by 'space+space'), true_asexual_parasites, and true_gametocytes.
This reporter has no additional parameters beyond filtering.
See output details in Malaria Patient Report.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by emodpy. |
required |
report_filter
|
ReportFilter
|
Common report filtering parameters. Valid filtering parameters for this report are: |
None
|
Source code in emodpy_malaria/reporters/reporters.py
MalariaSummaryReport
Bases: BuiltInReporter
Provides a summary of malaria-related data stratified by age bins and parasitemia bins. Outputs prevalence, clinical incidence, severe disease, and parasite densities aggregated over configurable reporting intervals.
See output details in Malaria Summary Report.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by emodpy. |
required |
reporting_interval
|
float
|
In days, Defines the cadence of the report by specifying how many time steps to collect data before writing the data to the file. This will limit system memory usage and is advised when large output files are expected. Minimum value: 1 Maximum value: 1000000 |
required |
age_bins
|
list[float]
|
The age bins (in years, in ascending order) to aggregate within and report. An empty array means the report will not stratify data by age. Minimum value: 0 Maximum value: 125 Default: [] |
None
|
parasitemia_bins
|
list[float]
|
Parasitemia bins (in infected red blood cells per microliter of blood) to aggregate within and report. A value greater than or equal to zero in the first bin indicates that the uninfected people should be added to this bin. The values must be in ascending order. Minimum value: -3.40282e+38 Maximum value: 3.40282e+38 Default: [] |
None
|
infectiousness_bins
|
list[float]
|
Infectiousness bins to aggregate within and report. The values must be in ascending order. Minimum value: 0 Maximum value: 100 Default: [] |
None
|
max_number_reports
|
int
|
The maximum number of report output files that will be produced for a given simulation. Minimum value: 0 Maximum value: 1000000 Default: 1 |
1
|
pretty_format
|
bool
|
When set to true (1), the JSON output will use pretty formatting. The default, false (0), saves space. Default: False |
False
|
add_prevalence_by_hrp2
|
bool
|
If true, the 'PfPR_2to10-HRP2' and the 'PfPR by Age Bin-HRP2' channels will be added. These channels use detection_threshold_true_hrp2 to determine if a person's HRP2 level counts towards prevalence. Default: False |
False
|
add_true_density_vs_threshold
|
bool
|
If set to true, four new channels will be added to the report that use true density instead of measured. These additional channels are: 'PfPR_2to10-True', 'PfPR by Age Bin-True', 'Pf Gametocyte Prevalence by Age Bin-True', and 'Mean Log Parasite Density by Age Bin-True'. The true densities will be compared to thresholds: detection_threshold_true_parasite_density and detection_threshold_true_gametocyte_density. Default: False |
False
|
detection_threshold_true_parasite_density
|
float
|
Used when add_true_density_vs_threshold is true. The true parasite density is compared against this threshold. It impacts the 'PfPR_2to10-True', 'PfPR by Age Bin-True', and 'Mean Log Parasite Density by Age Bin-True' channels. Minimum value: 0 Maximum value: 3.40282e+38 Default: None |
None
|
detection_threshold_true_gametocyte_density
|
float
|
Used when add_true_density_vs_threshold is true. The true gametocyte density is compared against this threshold. It impacts the 'Pf Gametocyte Prevalence by Age Bin-True' channel. Minimum value: 0 Maximum value: 3.40282e+38 Default: None |
None
|
detection_threshold_true_hrp2
|
float
|
Used when add_prevalence_by_hrp2 is true. If the true HRP2 value is greater than this threshold, the prevalence will be increased in the 'PfPR_2to10-HRP2' and the 'PfPR by Age Bin-HRP2' channels. Minimum value: 0 Maximum value: 3.40282e+38 Default: None |
None
|
include_data_by_time_and_pfpr
|
bool
|
When set to true, the 'DataByTimeAndPfPRBinsAndAgeBins' element is included in the report. You can save disk space by setting this to false. Default: True |
True
|
include_data_by_time_and_infectiousness
|
bool
|
When set to true, the 'DataByTimeAndInfectiousnessBinsAndPfPRBinsAndAgeBins' element is included in the report. You can save disk space by setting this to false. Default: True |
True
|
report_filter
|
ReportFilter
|
Common report filtering parameters. Valid filtering parameters for this report are: |
None
|
Source code in emodpy_malaria/reporters/reporters.py
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 | |
MalariaSurveyAnalyzer
Bases: BuiltInReporter
JSON report providing detailed individual-level malaria data for each event that occurs during the
reporting interval. Each individual who experiences a specified event is captured as an entry in a
patient_array, with per-event snapshots of parasite densities, gametocyte counts, infectiousness,
and diagnostic measurements. Multiple output files can be produced — one per reporting interval.
Output is written to MalariaSurveyJSONAnalyzer.json. Each file contains:
- ntsteps — number of days of the simulation for which data was collected. Equals the reporting interval unless the simulation ended before the interval completed.
- patient_array — array with one entry per individual who experienced the specified event(s).
Per-patient metadata:
- id — individual ID.
- node_id — external ID of the node the person is in at the time of the first event.
- initial_age — age in days when the report started tracking the individual.
- local_birthday — day the individual was born/created, relative to the start of the report.
Per-event data arrays (each entry corresponds to one event occurrence):
- strain_ids — antigen/clade ID and genome ID of the individual's current infection(s).
- ip_data — individual property value(s) based on ip_key_to_collect (all IPs if not specified).
- true_asexual_parasites — actual (true) parasite density.
- true_gametocytes — actual (true) gametocyte density.
- smeared_true_asexual_parasites — true parasite density smeared using NASBADensityWithUncertainty.
- smeared_true_gametocytes — true gametocyte density smeared using NASBADensityWithUncertainty.
- asexual_parasites — parasite density measured via BLOOD_SMEAR_PARASITES diagnostic.
- gametocytes — gametocyte density measured via BLOOD_SMEAR_GAMETOCYTES diagnostic.
- pcr_parasites — parasite density measured via PCR_PARASITES diagnostic.
- pcr_gametocytes — gametocyte density measured via PCR_GAMETOCYTES diagnostic.
- pfhrp2 — HRP2 level measured via PF_HRP2 diagnostic.
- smeared_asexual_parasites — positive fields of view (pos_asexual_fields) with parasite density.
- smeared_gametocytes — positive fields of view (pos_gametocyte_fields) with gametocyte density.
- infectiousness — infectiousness of the individual at the time of the event.
- infectiousness_smeared — binomial infectiousness smearing.
- infectiousness_age_scaled — infectiousness adjusted for age-dependent surface area biting.
- pos_asexual_fields — number of positive fields of view for parasite smears.
- pos_gametocyte_fields — number of positive fields of view for gametocyte smears.
- temps — body temperature in Celsius if the individual has a fever, otherwise -1.
See output details in Malaria Survey Report.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by emodpy. |
required |
event_trigger_list
|
list[str]
|
A list of individual-level events that trigger a survey snapshot. If no events are listed, an exception is thrown. Default: None |
None
|
reporting_interval
|
float
|
Defines the cadence of the report by specifying how many time steps to collect data before writing to the file. This limits system memory usage and is advised when large output files are expected. Minimum value: 1 Maximum value: 1000000 Default: 365 |
365
|
max_number_reports
|
int
|
The maximum number of report output files that will be produced for a given simulation. Minimum value: 0 Maximum value: 1000000 Default: 1000000 |
1000000
|
pretty_format
|
bool
|
When set to true (1), the JSON output will use pretty formatting. The default, false (0), saves space. Default: False |
False
|
ip_key_to_collect
|
str
|
The name of an IndividualProperty key whose value to collect. An empty string or None means collect values for all IPs. Default: None |
None
|
report_filter
|
ReportFilter
|
Common report filtering parameters. Valid filtering parameters for this report are: |
None
|
Source code in emodpy_malaria/reporters/reporters.py
1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 | |
ReportAntibodies
Bases: BuiltInReporter
The antibodies report (ReportAntibodiesCapacity.csv or ReportAntibodiesConcentration.csv) is a CSV-formatted report that provides antibody data for each qualifying individual on user-determined days of the simulation. The report contains one row per individual per reporting day, with each antibody variant represented as a separate column. The values can be either the concentration or capacity of each antibody, depending on the contain_capacity_data setting.
Stratification columns include Time, NodeID, IndividualID, Gender, AgeYears, Infected, PyrogenicThreshold, and
FeverKillingRate. Data columns include MSP variants (MSP_0 through MSP_n) and PfEMP1 variants (PfEMP1_0 through
PfEMP1_m), where the number of variants is determined by the Falciparum_MSP_Variants and
Falciparum_PfEMP1_Variants parameters set via malaria_config.set_team_defaults()
or malaria_config.set_parasite_genetics_params(). For example, with the default
Falciparum_PfEMP1_Variants of 1070, the report will contain over 1000 PfEMP1 columns alone, producing very
wide CSV output. The report only records individuals who have been at least exposed to antigens; antibodies that
have not been triggered appear as empty fields.
Note: this report gets very large very quickly and adds processing time. It is advised to use the reporting_interval and other filtering options to limit the size of the report.
See output details in Antibodies Report.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by emodpy. |
required |
reporting_interval
|
float
|
Defines how many days will pass between each time the report collects data and writes to the file. Data will be recorded every reporting_interval days starting with the start_day. This will limit system memory usage and is advised when large output files are expected. Minimum value: 1 Maximum value: 1000000 Default: 1 |
1
|
contain_capacity_data
|
bool
|
When true, the data for each antibody is the capacity of the antibody; when false, the data is the concentration. The output filename reflects this setting: ReportAntibodiesCapacity.csv when true, ReportAntibodiesConcentration.csv when false. Default: False |
False
|
infected_only
|
bool
|
When true, only individuals who are currently infected will be included in the report. Default: False |
False
|
report_filter
|
ReportFilter
|
Common report filtering parameters. Valid filtering parameters for this report are: |
None
|
Source code in emodpy_malaria/reporters/reporters.py
1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 | |
ReportFpgNewInfections
Bases: BuiltInReporter
The full parasite genetics new infections report (ReportFpgNewInfections.csv) provides detailed information on
new human infections for simulations where Malaria_Model is set to
MALARIA_MECHANISTIC_MODEL_WITH_PARASITE_GENETICS. Each row represents one new human infection.
By default (report_crossover_data_instead = False), the report tracks the complete transmission chain for each new infection with columns including: SporozoiteToHuman_Time (day the infection happened), SporozoiteToHuman_NodeID, SporozoiteToHuman_VectorID, SporozoiteToHuman_BiteID, SporozoiteToHuman_HumanID, SporozoiteToHuman_NewInfectionID, SporozoiteToHuman_NewGenomeID, HomeNodeID (human's starting node), GametocyteToVector_Time (day the vector acquired gametocytes), GametocyteToVector_NodeID, GametocyteToVector_VectorID, GametocyteToVector_BiteID, GametocyteToVector_HumanID, FemaleGametocyteToVector_InfectionID, FemaleGametocyteToVector_GenomeID, MaleGametocyteToVector_InfectionID, and MaleGametocyteToVector_GenomeID.
When report_crossover_data_instead is True, the report contains less detail on the transmission chain but adds a GenomeCrossoverLocations column listing the genome locations of crossovers that occurred during recombination to create this infection's genome. In this mode, columns include: SporozoiteToHuman_Time, SporozoiteToHuman_NewInfectionID, SporozoiteToHuman_NewGenomeID, FemaleGametocyteToVector_InfectionID, FemaleGametocyteToVector_GenomeID, MaleGametocyteToVector_InfectionID, MaleGametocyteToVector_GenomeID, and GenomeCrossoverLocations. This options allows for explicit tracking of crossover locations to validation purposes.
See output details in FPG New Infections Report.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by emodpy. |
required |
report_crossover_data_instead
|
bool
|
When true, instead of reporting new infections in full detail, the report will contain basic new infection information with the crossover locations that created each infection's genome. The output columns change accordingly (see class description above). Default: False |
False
|
report_filter
|
ReportFilter
|
Common report filtering parameters. Valid filtering parameters for this report are: |
None
|
Source code in emodpy_malaria/reporters/reporters.py
1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 | |
ReportFpgOutput
Bases: BuiltInReporter
FPG simulations have complete knowledge of every parasite genome in the population, but real-world genomic surveillance collects data through specific sampling strategies that capture only a fraction of infections. This report bridges that gap by extracting the complete genetic data on all filtered infected individuals, allowing post-processing tools such as the FPGObservationalModel to apply realistic surveillance sampling strategies and study what genetic signals different approaches can detect.
Unlike most EMOD reports which produce a single output file, this report produces a three-file ensemble:
infIndexRecursive-genomes-df.csv, variants.npy, and roots.npy. This report is intended for simulations
where Malaria_Model is set to MALARIA_MECHANISTIC_MODEL_WITH_PARASITE_GENETICS.
The CSV file contains one row per infected person per sampling time step. Stratification columns include population (node ID elsewhere), year, month, day, infIndex, age_day, fever_status, IndividualID, and recursive_count. Data columns include recursive_nid (genome indices into the .npy files), infection_ids, bite_ids, and optionally genome_ids. The variants.npy file contains nucleotide sequence data and roots.npy contains allele root data, both indexed by the recursive_nid values in the CSV.
See output details in FPG Observational Model Report.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by emodpy. |
required |
sampling_period
|
float
|
The number of days between sampling the population. Data is collected on days start_day, start_day + sampling_period, start_day + 2 * sampling_period, and so on. For approximate monthly sampling, use 30.4166667 (365/12). Minimum value: 1 Maximum value: 3.40282e+38 Default: 1 |
1
|
minimum_parasite_density
|
float
|
The minimum parasite density (asexual parasites per microliter of blood) that an infection must have to be included. A non-zero value filters out hepatocyte-stage infections and those with only gametocytes. Minimum value: 0 Maximum value: 3.40282e+38 Default: 1 |
1
|
include_genome_ids
|
bool
|
When true, an additional genome_ids column is appended to the CSV output containing EMOD's unique ID for the genome of each infection's parasite. This ID can be used to cross-reference genome data with other EMOD reports that include genome IDs. Default: False |
False
|
report_filter
|
ReportFilter
|
Common report filtering parameters. Valid filtering parameters for this report are: |
None
|
Source code in emodpy_malaria/reporters/reporters.py
1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 | |
ReportInfectionStatsMalaria
Bases: BuiltInReporter
Outputs per-infection statistics for malaria including parasite density, gametocyte counts, and immune responses.
See output details in Malaria Infection Statistics Report.
Please note, when "include_column" parameters are set to True, the infection will only be included in the report if it meets ALL the corresponding "include_data_threshold" parameters. For example, if include_column_gametocyte and include_column_irbc are both set to True, an infection will only be included if it meets the thresholds for both gametocytes and infected red blood cells. If an infection meets the threshold for one but not the other, it will be excluded from the report entirely.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by emodpy. |
required |
reporting_interval
|
float
|
Defines how often (in days) data is collected and written. Minimum value: 1 Maximum value: 1000000 Default: 1 |
1
|
include_column_gametocyte
|
bool
|
When true, the gametocyte count column will be included. You will also need to set include_data_threshold_gametocytes to specify the minimum gametocyte count for an infection to be included in the report. The infections that do not satisfy the gametocyte threshold will be excluded from the report entirely, even if they satisfy the thresholds for other columns. Default: False |
False
|
include_column_hepatocyte
|
bool
|
When true, the hepatocyte count column will be included. You will also need to set include_data_threshold_hepatocytes to specify the minimum hepatocyte count for an infection to be included in the report. The infections that do not satisfy the hepatocyte threshold will be excluded from the report entirely, even if they satisfy the thresholds for other columns. Default: False |
False
|
include_column_irbc
|
bool
|
When true, the infected red blood cell (IRBC) count column will be included. You will also need to set include_data_threshold_irbc to specify the minimum IRBC count for an infection to be included in the report. The infections that do not satisfy the IRBC threshold will be excluded from the report entirely, even if they satisfy the thresholds for other columns. Default: False |
False
|
include_data_threshold_gametocytes
|
float
|
The minimum number of gametocytes required for a row to be included in the output. This threshold is only applied if include_column_gametocyte is set to true. Minimum value: 0 Maximum value: 3.40282e+38 Default: 0 |
None
|
include_data_threshold_hepatocytes
|
float
|
The minimum number of hepatocytes required for a row to be included in the output. This threshold is only applied if include_column_hepatocyte is set to true. Minimum value: 0 Maximum value: 3.40282e+38 Default: 0 |
None
|
include_data_threshold_irbc
|
float
|
The minimum number of infected red blood cells required for a row to be included in the output. This threshold is only applied if include_column_irbc is set to true. Minimum value: 0 Maximum value: 3.40282e+38 Default: 0 |
None
|
report_filter
|
ReportFilter
|
Common report filtering parameters. Valid filtering parameters for this report are: |
None
|
Source code in emodpy_malaria/reporters/reporters.py
1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 | |
ReportInterventionPopAvg
Bases: BuiltInReporter
CSV report providing population-average data on the usage and efficacy of persistent interventions. For each persistent intervention distributed to a node or person, the report provides one row per node per time step with the fraction of people (or nodes) that have the intervention and the average efficacy across multiple effect categories.
Only persistent interventions — those that exist between time steps (e.g. SimpleBednet, UsageDependentBednet, Ivermectin, Larvicides) — are tracked. Transient interventions like diagnostics, which execute and disappear within a single time step, are not included.
For individual-level interventions, efficacy values are averaged over the people in the node who have the intervention. For node-level interventions (typically vector control), there is usually one instance per node, so the values represent that single intervention's efficacy.
Not all interventions provide data for this report. If an intervention does not provide support, a warning is issued in standard output.
Output is written to ReportInterventionPopAvg.csv.
Stratification columns:
- Time — simulation day when the data was collected.
- NodeID — external ID of the node.
Data columns:
- NodePopulation — population of the node that has the indicated intervention.
- InterventionName — name of the intervention (custom via Intervention_Name parameter, or the class name by default).
- FractionHas — fraction of people in the node with at least one instance of the intervention. For node-level interventions, this is almost always 1.0.
- AvgNumberOfInterventions — for individuals, the average number of instances per person who has the intervention. For nodes, the count of instances in the node.
- AvgEfficacy-Attracting — average attracting efficacy (e.g. HumanHostSeekingTrap).
- AvgEfficacy-Repelling — average repelling efficacy (e.g. IRSHousingModification, SpatialRepellentHousingModification).
- AvgEfficacy-Blocking — average blocking efficacy (e.g. SimpleBednet).
- AvgEfficacy-Killing — average killing efficacy (e.g. SimpleBednet, Ivermectin, Larvicides, SpaceSpraying).
- AvgEfficacy-Usage — average usage efficacy (e.g. UsageDependentBednet).
- AvgEfficacy-AcquisitionBlocking — average acquisition blocking efficacy (e.g. SimpleVaccine).
- AvgEfficacy-TransmissionBlocking — average transmission blocking efficacy (e.g. SimpleVaccine).
- AvgEfficacy-MortalityBlocking — average mortality blocking efficacy (e.g. SimpleVaccine).
- DrugConcentration — for drug interventions, the average drug concentration across people in the node with the drug during this time step. For MultiPackComboDrug, each person contributes the sum of concentrations of drugs taken from the pack.
See output details in Intervention Population Average Report.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by emodpy. |
required |
report_filter
|
ReportFilter
|
Common report filtering parameters. Valid filtering parameters for this report are: |
None
|
Source code in emodpy_malaria/reporters/reporters.py
1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 | |
ReportMalariaFiltered
Bases: BuiltInReporter
The malaria filtered report (ReportMalariaFiltered.json) is the same as the default InsetChart report, but provides filtering options to select data by time, node, age, individual properties, and interventions. The output format and channels are identical to InsetChart.json.
Standard malaria channels include: Adult Vectors, Air Temperature, Avg Num Infections, Births,
Blood Smear Gametocyte Prevalence, Blood Smear Parasite Prevalence, Campaign Cost, Daily Bites per Human,
Daily EIR, Disease Deaths, Fever Prevalence, Human Infectious Reservoir, Infected, Infectious Vectors,
Land Temperature, Log Prevalence, Mean Parasitemia, New Clinical Cases, New Infections, New Severe Cases,
Newly Symptomatic, PCR Gametocyte Prevalence, PCR Parasite Prevalence, PfHRP2 Prevalence, Rainfall,
Relative Humidity, Statistical Population, True_Prevalence, and Variant Fraction-PfEMP1 Major. Additional
dynamic channels (Has_<Intervention>, HasIP_<Key>:<Value>) are added based on has_interventions
and has_ip.
See output details in Filtered Malaria Report.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by emodpy. |
required |
has_ip
|
list[str]
|
A list of individual property Key:Value pairs. For each pair, a
Default: None |
None
|
has_interventions
|
list[str]
|
A list of intervention names (matching the Default: None |
None
|
include_30day_avg_infection_duration
|
bool
|
If true, the '30-Day Avg Infection Duration' channel is included. This is a running average of the duration of each infection that cleared in the last 30 days (both naturally and due to drugs). Default: True |
True
|
include_pregnancies
|
bool
|
If true, three pregnancy-related channels are added to the report: 'Possible Mothers', 'New Pregnancies', and 'Currently Pregnant'. Default: False |
False
|
report_filter
|
ReportFilter
|
Common report filtering parameters. Valid filtering parameters for this report are: |
None
|
Source code in emodpy_malaria/reporters/reporters.py
357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 | |
ReportMalariaFilteredIntraHost
Bases: BuiltInReporter
Provides detailed intra-host malaria dynamics (parasite densities, immune responses) filtered by configurable criteria. Same parameters as ReportMalariaFiltered.
See output details in Filtered Malaria Intra-Host Report.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by emodpy. |
required |
has_ip
|
list[str]
|
A list of individual property Key:Value pairs. For each pair, a set of channels will be added to the report for people with that property. Default: None |
None
|
has_interventions
|
list[str]
|
A list of intervention names. For each intervention, a set of channels will be added to the report for people who have that intervention. Default: None |
None
|
include_30day_avg_infection_duration
|
bool
|
When true, the '30-Day Avg Infection Duration' channel will be included in the report. Default: True |
True
|
include_pregnancies
|
bool
|
If true, three pregnancy-related channels are added to the report: 'Possible Mothers', 'New Pregnancies', and 'Currently Pregnant'. Default: False |
False
|
report_filter
|
ReportFilter
|
Common report filtering parameters. Valid filtering parameters for this report are: |
None
|
Source code in emodpy_malaria/reporters/reporters.py
ReportMicrosporidia
Bases: BuiltInReporter
CSV report tracking vector population counts broken down by species and microsporidia strain at each time step. For every combination of species and strain — including a "NoMicrosporidia" row representing uninfected vectors — it reports the number of vectors in each life stage. Useful for monitoring how microsporidia spreads through vector populations over time.
No configuration parameters are required. Output is written to ReportMicrosporidia.csv. One row is
written per time step, per node, per species, and per microsporidia strain.
Output columns:
- Time — simulation time in days when the data was collected.
- NodeID — external ID of the node.
- Species — name of the vector species.
- MicrosporidiaStrain — name of the microsporidia strain. "NoMicrosporidia" indicates vectors not infected with any strain.
- VectorPopulation — total number of adult female vectors in this species/strain group (STATE_INFECTIOUS + STATE_INFECTED + STATE_ADULT).
- STATE_INFECTIOUS — number of adult female vectors that are infectious.
- STATE_INFECTED — number of adult female vectors that are infected but not yet infectious.
- STATE_ADULT — number of uninfected adult female vectors.
- STATE_MALE — number of adult male vectors.
- STATE_IMMATURE — number of immature vectors (male and female).
- STATE_LARVA — number of larvae (male and female).
- STATE_EGG — number of eggs (male and female).
See output details in Microsporidia Report.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object. |
required |
Source code in emodpy_malaria/reporters/reporters.py
ReportNodeDemographicsMalaria
Bases: ReportNodeDemographics
CSV report extending ReportNodeDemographics with malaria-specific statistics. Provides population data stratified by node, with additional columns for malaria parasite counts, infectiousness, gametocyte density, and clinical symptom status.
Output is written to ReportNodeDemographicsMalaria.csv.
Stratification columns:
- Time — simulation day when the data was collected.
- NodeID — external ID of the node.
- Gender — M or F. Only present if stratify_by_gender is True.
- AgeYears — max age in years of the bin. Only present if age_bins is non-empty.
- IndividualProp — IP value for the row. Only present if ip_key_to_collect is set.
- HasClinicalSymptoms — T or F. Only present if stratify_by_has_clinical_symptoms is True.
Data columns:
- NumIndividuals — number of individuals that meet the stratification criteria.
- NumInfected — number of infected individuals that meet the stratification criteria.
- NodeProp =
— one column per node property with its value. Absent if no NodeProperties. - AvgInfectiousness — average infectiousness to mosquitoes, based on mature gametocyte count.
- AvgParasiteDensity — average true parasite density.
- AvgGametocyteDensity — average true gametocyte density.
- AvgVariantFractionPfEMP1Major — average fraction of PfEMP1 Major antibody variants the individual has relative to Falciparum_PfEMP1_Variants.
- AvgNumInfections — average number of infections.
- AvgInfectionClearedDuration — average duration to clear infections.
- NumInfectionsCleared — number of cleared infections.
- NumHasFever — number of people with fever per the Report_Detection_Threshold_Fever parameter.
- NumHasClinicalSymptoms — number of people with clinical symptoms. Only present if stratify_by_has_clinical_symptoms is False (otherwise the stratification separates them).
See output details in Malaria Node Demographics Report.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by emodpy. |
required |
age_bins
|
list[float]
|
The age bins (in years, in strictly ascending order) to aggregate within and report. An empty list or None means the report will not stratify by age. Default: None |
None
|
ip_key_to_collect
|
str
|
The name of the IndividualProperties key by which to stratify the report. An empty string or None means the report is not stratified by IP. Default: None |
None
|
stratify_by_gender
|
bool
|
When True, stratify the report by gender (M/F columns). Default: True |
True
|
stratify_by_has_clinical_symptoms
|
bool
|
When True, add an extra stratification for people who have clinical symptoms vs. those who do not. Default: False |
False
|
Source code in emodpy_malaria/reporters/reporters.py
1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 | |
ReportNodeDemographicsMalariaGenetics
Bases: ReportNodeDemographics
CSV report extending ReportNodeDemographicsMalaria with parasite genetics data — barcode counts, drug resistance markers, and HRP markers per node. Requires Malaria_Model to be set to MALARIA_MECHANISTIC_MODEL_WITH_PARASITE_GENETICS.
Output is written to ReportNodeDemographicsMalariaGenetics.csv.
Stratification columns (same as ReportNodeDemographicsMalaria):
- Time — simulation day when the data was collected.
- NodeID — external ID of the node.
- Gender — M or F. Only present if stratify_by_gender is True.
- AgeYears — max age in years of the bin. Only present if age_bins is non-empty.
- IndividualProp — IP value for the row. Only present if ip_key_to_collect is set.
- HasClinicalSymptoms — T or F. Only present if stratify_by_has_clinical_symptoms is True.
Data columns (inherited from ReportNodeDemographicsMalaria):
- NumIndividuals — number of individuals that meet the stratification criteria.
- NumInfected — number of infected individuals that meet the stratification criteria.
- NodeProp =
— one column per node property with its value. - AvgInfectiousness — average infectiousness to mosquitoes, based on mature gametocyte count.
- AvgParasiteDensity — average true parasite density.
- AvgGametocyteDensity — average true gametocyte density.
- AvgVariantFractionPfEMP1Major — average fraction of PfEMP1 Major antibody variants.
- AvgNumInfections — average number of infections.
- AvgInfectionClearedDuration — average duration to clear infections.
- NumInfectionsCleared — number of cleared infections.
- NumHasFever — number of people with fever.
- NumHasClinicalSymptoms — number with clinical symptoms (only if stratification is off).
Genetics-specific data columns:
- [barcode] — one column per barcode string in barcodes. Contains the number of human infections matching that barcode. Wildcards ('') at a locus include all values at that locus (e.g. 'AT' includes AAT, ACT, AGT, ATT).
- OtherBarcodes — number of infections whose barcode is not counted by any defined barcode column.
- [drug_resistant_string] — one column per entry in drug_resistant_strings. The value depends on drug_resistant_and_hrp_statistic_type: either a person count or an infection count.
- NoDrugResistance — infections/people with drug resistant strings not matching any defined column.
- [hrp_string] — one column per entry in hrp_strings.
- OtherHRP — infections with HRP strings not matching any defined column.
See output details in Malaria Node Demographics Genetics Report.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by emodpy. |
required |
age_bins
|
list[float]
|
The age bins (in years, in strictly ascending order) to aggregate within and report. An empty list or None means the report will not stratify by age. Default: [] |
None
|
ip_key_to_collect
|
str
|
The name of the IndividualProperties key by which to stratify the report. An empty string or None means the report is not stratified by IP. Default: None |
None
|
stratify_by_gender
|
bool
|
When True, stratify the report by gender (M/F columns). Default: True |
True
|
barcodes
|
list[str]
|
A list of barcode strings. The report contains the number of human infections with each barcode. Use '' as a wildcard at a locus to include all values at that locus. For example, 'AT' includes AAT, ACT, AGT, and ATT. An OtherBarcodes column is added for barcodes not matching any defined string. Default: None |
None
|
drug_resistant_and_hrp_statistic_type
|
Union[DrugResistantStatisticType, str]
|
Controls what statistic is reported in the drug resistant and HRP columns.
Default: NUM_PEOPLE_WITH_RESISTANT_INFECTION |
NUM_PEOPLE_WITH_RESISTANT_INFECTION
|
drug_resistant_strings
|
list[str]
|
A list of strings representing drug resistant markers. A column is created for each with the count of infections/people matching that marker. Use '*' as a wildcard at a locus. A NoDrugResistance column is added for unmatched markers. Default: None |
None
|
hrp_strings
|
list[str]
|
A list of strings representing HRP markers. A column is created for each with the count of infections matching that marker. Use '*' as a wildcard at a locus. An OtherHRP column is added for unmatched markers. Default: None |
None
|
include_identity_by_xxx
|
bool
|
When True, include columns for average Identity By State (IBS) and Identity By Descent (IBD) for all new infections with unique barcodes in the last year. Default: False |
False
|
Source code in emodpy_malaria/reporters/reporters.py
1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 | |
ReportSimpleMalariaTransmission
Bases: BuiltInReporter
JSON report tracking malaria transmission events — who transmitted malaria to whom, via which vector, and with what parasite strains. Each entry in the output represents a new infection and records the full transmission chain: the transmitting individual, the vector, and the acquiring individual. This report requires Malaria_Model to be set to MALARIA_MECHANISTIC_MODEL_WITH_CO_TRANSMISSION. Typically used as input to the GenEpi model.
Output is written to ReportSimpleMalariaTransmission.csv. The file contains a transmissions
array of CoTransmission objects with the following fields:
- node_id — ID of the node where the infection occurred.
- transmitTime — day when the vector was infected. 0 if the infection was due to OutbreakIndividual.
- transmitIndividualId — ID of the individual that infected the vector. 0 if due to OutbreakIndividual.
- transmitInfectionIds — list of infection IDs of the individual who infected the vector. Empty if due to OutbreakIndividual.
- transmitGametocyteDensities — parallel list to transmitInfectionIds where each value is the gametocyte density for the corresponding infection. Empty if due to OutbreakIndividual.
- vectorId — ID of the vector that carried the infection from the transmitting individual to the acquiring individual. 0 if due to OutbreakIndividual.
- acquireTime — day the vector infected the acquiring individual.
- acquireIndividualId — ID of the individual who received the infection. 0 for human-to-vector transmission events.
- acquireInfectionIds — list of infections created due to the bite. Currently contains one entry.
- concurrentInfectionIds — IDs of other infections the acquiring individual already had when they received this new infection.
When include_human_to_vector_transmission is true, human-to-vector events are also recorded.
These can be identified by acquireIndividualId = 0 and transmitTime = acquireTime.
This can make the file size quite large.
See output details in Simple Malaria Transmission Report.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by emodpy. |
required |
include_human_to_vector_transmission
|
bool
|
When true, human-to-vector transmission events will be included in the report. These events have acquireIndividualId=0 and transmitTime=acquireTime. .. warning:: Enabling this can make the output file size very large. Default: False |
False
|
report_filter
|
ReportFilter
|
Common report filtering parameters. Valid filtering parameters for this report are: |
None
|
Source code in emodpy_malaria/reporters/reporters.py
1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 | |
ReportVectorGenetics
Bases: BuiltInReporter
The vector genetics report is a CSV-formatted report that collects information on how many vectors of each
genome/allele combination exist at each time, node, and vector state. Information can only be collected on one
species per report; to track multiple species, configure multiple instances with different species values.
When parasite_barcodes is provided, the report adds
NumVectorsWithSporozoites_<barcode> columns.
Each row in the output represents one time step, node, and genome/allele combination. Stratification columns include
Time, NodeID, and either Genome (when stratify_by is GENOME or SPECIFIC_GENOME) or Alleles
(when stratify_by is ALLELE or ALLELE_FREQ).
Data columns include VectorPopulation (total female vectors in infectious, infected, or adult states) and,
when include_vector_state_columns is true: STATE_INFECTIOUS, STATE_INFECTED, STATE_ADULT,
STATE_MALE, STATE_IMMATURE, STATE_LARVA, and STATE_EGG. When include_death_state_columns is
true, additional columns are added for the number of vectors that died in each state (VectorPopulationNumDied,
InfectiousNumDied, InfectedNumDied, AdultsNumDied, MaleNumDied) and average age at death
(VectorPopulationAvgAgeAtDeath, InfectiousAvgAgeAtDeath, InfectedAvgAgeAtDeath,
AdultsAvgAgeAtDeath, MaleAvgAgeAtDeath).
See output details in Vector Genetics Report.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by emodpy. |
required |
species
|
str
|
The vector species to report on; the name must match a species added via
Default: None |
None
|
gender
|
Union[VectorGender, str]
|
The gender of the vectors to include in the report. This
controls which state columns appear in the output. Use the Default: VectorGender.VECTOR_FEMALE |
VECTOR_FEMALE
|
include_vector_state_columns
|
bool
|
If true, columns for each vector state (STATE_INFECTIOUS, STATE_INFECTED, STATE_ADULT, STATE_MALE, STATE_IMMATURE, STATE_LARVA, STATE_EGG) will be included. Default: True |
True
|
include_death_state_columns
|
bool
|
If true, adds columns for the number of vectors that died in each state during the time step as well as the average age at death. It adds two columns (count and average age) for each of the following states: ADULT, INFECTED, INFECTIOUS, and MALE. Default: False |
False
|
combine_similar_genomes
|
bool
|
If true, genomes are combined for each locus (ignoring gender) if
the set of alleles of the two genomes are the same (e.g. '1-0' is considered the same as '0-1'). Only
applies when Default: False |
False
|
stratify_by
|
Union[VectorGeneticsStratification, str]
|
Determines how the report will be
stratified. Use the
Default: VectorGeneticsStratification.GENOME |
GENOME
|
specific_genome_combinations_for_stratification
|
list
|
A list of genome combination objects. Required
when Example:: Default: None |
None
|
allele_combinations_for_stratification
|
list
|
A list of allele combination lists. Required when
Example:: Default: None |
None
|
alleles_for_stratification
|
list[str]
|
A list of allele strings for which to collect frequency
counts. Used when Example:: Default: None |
None
|
parasite_barcodes
|
list[str]
|
A list of malaria parasite barcode strings. When provided, the report adds
Example:: Default: None |
None
|
report_filter
|
ReportFilter
|
Common report filtering parameters. Valid filtering parameters for this report are: |
None
|
Source code in emodpy_malaria/reporters/reporters.py
601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 | |
ReportVectorMigration
Bases: BuiltInReporter
Outputs data about vector migration between nodes.
Note: this report can grow very large very quickly. Use the filtering parameters
(must_be_from_node, must_be_to_node, must_be_in_state, species_list,
and report_filter start/end days) to limit output to only what you need.
See output details in Vector Migration Report.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by emodpy. |
required |
include_genome_data
|
bool
|
When true, genome data will be included in the migration report. Default: False |
False
|
species_list
|
list[str]
|
A list of vector species to report on. An empty list or None means all species. Default: None |
None
|
must_be_from_node
|
list[int]
|
Only include vectors migrating from these node IDs. Default: None |
None
|
must_be_to_node
|
list[int]
|
Only include vectors migrating to these node IDs. Default: None |
None
|
must_be_in_state
|
list[Union[VectorStateEnum, str]]
|
Only include vectors in these states.
Only STATE_MALE, STATE_ADULT, STATE_INFECTED, and STATE_INFECTIOUS actually migrate.
Use the Default: None |
None
|
report_filter
|
ReportFilter
|
Common report filtering parameters. Valid filtering parameters for this report are: |
None
|
Source code in emodpy_malaria/reporters/reporters.py
932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 | |
ReportVectorStats
Bases: BuiltInReporter
The vector statistics report (ReportVectorStats.csv) is a CSV-formatted report that provides detailed life-cycle data on the vectors in the simulation. The report is stratified by time, node ID, and (optionally) species.
ReportVectorStatsMalariaGenetics is an alias for this class — users only need ReportVectorStats and can
pass the barcodes parameter to enable genetics output.
When barcodes is provided, the report adds genetics-specific columns for malaria
parasite status in the vector population. These additional columns include:
MigrationFromCountLocal/MigrationFromCountRegional— vector migration counts.NumVectorsNone— uninfected vectors (no oocysts or sporozoites).NumVectorsOnlyOocysts— infected but not yet infectious (oocysts only).NumVectorsOnlySporozoites— infectious vectors (sporozoites only).NumVectorsBothOocystsSporozoites— vectors with both oocysts and sporozoites.NumBitesAdults/NumBitesInfected/NumBitesInfectious— bite counts by infection state.NumDiedAdults/NumDiedInfected/NumDiedInfectious— death counts by infection state.NumParasiteCohortsOocysts/NumParasiteCohortsSporozoites— parasite cohort counts.NumOocysts/NumSporozoites— total parasite counts in the vector population.NumInfectiousToAdult/NumInfectiousToInfected— state transition counts.<Barcode>columns — one per entry inbarcodes, plus anOtherBarcodescolumn.
Standard data columns always present include: Population, VectorPopulation, STATE_INFECTIOUS,
STATE_INFECTED, STATE_ADULT, STATE_MALE, STATE_IMMATURE, STATE_LARVA, STATE_EGG,
NewEggsCount, IndoorBitesCount, IndoorBitesCountInfectious, OutdoorBitesCount,
OutdoorBitesCountInfectious, UnmatedAdults, NewAdults, DiedBeforeFeeding,
DiedDuringFeedingIndoor, AvgDurationLarvaeToImmature, and habitat columns
(AvailableHabitat, EggCrowdingCorrection).
Optional column groups controlled by boolean parameters:
- Gestation (
include_gestation_columns):NumLookingToFeed,NumFedCount,NumGestatingBegin/End,NumAttemptFeedIndoor/Outdoor,NumAttemptButNotFeed,NumGestatingOnDay_0throughNumGestatingOnDay_7. - Death by state (
include_death_state_columns):NumDiedInfectious,NumDiedInfected,NumDiedAdults,NumDiedMale,AvgAgeAtDeathInfectious,AvgAgeAtDeathInfected,AvgAgeAtDeathAdults,AvgAgeAtDeathMale. - Wolbachia (
include_wolbachia_columns):VECTOR_WOLBACHIA_FREE,VECTOR_WOLBACHIA_A,VECTOR_WOLBACHIA_B,VECTOR_WOLBACHIA_AB. Summation should equalVectorPopulation. - Microsporidia (
include_microsporidia_columns):HasMicrosporidia-STATE_XXXandNoMicrosporidia-STATE_XXXcolumns for each vector state.
See output details in Vector Statistics Report and Vector Statistics Malaria Genetics Report.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by emodpy. |
required |
species_list
|
list[str]
|
The species for which to include information. If empty or absent, data for all species will be collected. Default: None |
None
|
include_wolbachia_columns
|
bool
|
If true, columns will be added for each Wolbachia type
( Default: False |
False
|
include_gestation_columns
|
bool
|
If true, columns will be added for feeding and gestation data
including Default: False |
False
|
include_microsporidia_columns
|
bool
|
If true, columns will be added for each vector state showing
the number of vectors with and without microsporidia ( Default: False |
False
|
include_death_state_columns
|
bool
|
If true, adds columns for the number of vectors that died in
each state during the time step ( Default: False |
False
|
stratify_by_species
|
bool
|
If true, data will be stratified by species for each node, adding a
Default: False |
False
|
barcodes
|
list[str]
|
A list of barcode strings. When provided, for each barcode, a column is created showing the number
of vectors with sporozoites matching that barcode. Use Example:: Default: None |
None
|
Source code in emodpy_malaria/reporters/reporters.py
807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 | |
SpatialReportMalariaFiltered
Bases: BuiltInReporter
The filtered malaria spatial report (SpatialReportMalariaFiltered.bin) provides spatial information on malaria simulations, similar to the SpatialReport, but allows filtering the data by time, node ID, age, individual properties, and interventions, as well as collection over different intervals. Each selected channel is written to a separate binary file.
Use emodpy_malaria.utils.emod_enum.SpatialOutputChannel to specify output channels for this report.
See output details in Spatial Malaria Report.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by emodpy. |
required |
spatial_output_channels
|
list[Union[SpatialOutputChannel, str]]
|
An array of channel names for
spatial output by node and time step. The data from each channel will be written to a separate binary file.
Use the Example:: Default: None |
None
|
reporting_interval
|
float
|
The number of days to collect data before normalizing it by the reporting_interval to produce a per-day average. Minimum value: 0 Maximum value: 3.40282e+38 Default: 1 |
1
|
report_filter
|
ReportFilter
|
Common report filtering parameters. Valid filtering parameters for this report are: |
None
|
Source code in emodpy_malaria/reporters/reporters.py
1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 | |
SqlReportMalaria
Bases: BuiltInReporter
SQLite report providing epidemiological and transmission data. Extends the base SqlReport with malaria-specific tables and optionally genetics data (barcode, drug resistance, HRP) per infection.
Three EMOD reporter classes are selected based on the include_malaria and include_malaria_genetics flags:
include_malaria=False, include_malaria_genetics=False— uses SqlReport (generic, no malaria-specific tables).include_malaria=True— uses SqlReportMalaria, adding malaria-specific health and infection data plus an optional drug status table.include_malaria_genetics=True— uses SqlReportMalariaGenetics, which additionally includes genetics data (barcode, drug resistance, HRP) in the infection data table.
The include_drug_status_table parameter is only valid when include_malaria or include_malaria_genetics is True.
See output details in SQL Malaria Report and SQL Malaria Genetics Report and SQL Report.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object given by emodpy. |
required |
include_malaria
|
bool
|
When True, uses the SqlReportMalaria EMOD reporter class which adds malaria-specific health and infection data tables. Default: True |
True
|
include_malaria_genetics
|
bool
|
When True, uses the SqlReportMalariaGenetics EMOD reporter class which additionally includes genetics data (barcode, drug resistance, HRP) per infection. Takes precedence over include_malaria. Default: False |
False
|
include_health_table
|
bool
|
If True, include the Health table which has data for each time step for the health of an individual. Default: True |
True
|
include_individual_properties
|
bool
|
If True, include a table with all possible individual properties and include IP data for each person in the Health table. Default: False |
False
|
include_infection_data_table
|
bool
|
If True, include the InfectionData table which has data for each time step for each active infection. Default: True |
True
|
include_drug_status_table
|
bool
|
If True, include the table that provides data at each time step for each drug the person has. Only valid when include_malaria or include_malaria_genetics is True. Default: False |
False
|
report_filter
|
ReportFilter
|
Common report filtering parameters. Valid filtering parameters for this report are: |
None
|
Source code in emodpy_malaria/reporters/reporters.py
1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 | |
VectorHabitatReport
Bases: BuiltInReporter
JSON report containing larval habitat data for each vector species in the simulation. Focuses on statistics relevant to mosquito developmental stages (eggs and larvae), such as egg capacity, larval crowding, and larval mortality.
No configuration parameters are required. Output is written to VectorHabitatReport.json.
The report is organized as a binned JSON structure. The header contains Subchannel_Metadata that
describes the Species:Habitat axis — one bin per habitat per species (e.g. "gambiae:TEMPORARY_RAINFALL",
"funestus:WATER_VEGETATION"). Data arrays are two-dimensional: the outer dimension is species:habitat
bins, the inner dimension is time steps.
Output channels (7 total):
- Artificial Larval Mortality — probability of larvae in the habitat being killed due to interventions (e.g. larvicides).
- Current Habitat Capacity — number of larvae the habitat can currently hold.
- Egg Crowding Factor — probability that eggs die due to overcrowding.
- Local Larval Growth Modifier — local density-dependent hatching modifier that depends on larval crowding.
- Local Larval Mortality — local larval mortality rate due to larval competition. Mortality is relative to a species baseline (1.0) and intermediate larval age (0.5).
- Rainfall Larval Mortality — rate at which larvae are dying due to rainfall.
- Total Larva — total number of larvae of that species in that habitat during that time step.
See output details in Vector Habitat Report.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reporters_object
|
Reporters
|
The reporters object. |
required |