outbreak
add_campaign_event(campaign, start_day=1, demographic_coverage=1.0, target_num_individuals=None, node_ids=None, repetitions=1, timesteps_between_repetitions=365, ind_property_restrictions=None, target_age_min=0, target_age_max=MAX_AGE_YEARS, target_gender='All', intervention=None)
Adds a campaign event to the campaign with a passed in intervention.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
campaign
|
EMODCampaign
|
campaign object to which the intervention will be added, and schema_path container |
required |
start_day
|
int
|
The day the intervention is given out. |
1
|
demographic_coverage
|
float
|
This value is the probability that each individual in the target population will receive the intervention. It does not guarantee that the exact fraction of the target population set by Demographic_Coverage receives the intervention. |
1.0
|
target_num_individuals
|
int
|
The exact number of people to select out of the targeted group. If this value is set, demographic_coverage parameter is ignored |
None
|
node_ids
|
list
|
List of nodes to which to distribute the intervention. [] or None, indicates all nodes will get the intervention |
None
|
repetitions
|
int
|
The number of times an intervention is given, used with timesteps_between_repetitions. -1 means the intervention repeats forever. Sets Number_Repetitions |
1
|
timesteps_between_repetitions
|
int
|
The interval, in timesteps, between repetitions. Ignored if repetitions = 1. Sets Timesteps_Between_Repetitions |
365
|
ind_property_restrictions
|
list
|
A list of dictionaries of IndividualProperties, which are needed for the individual to receive the intervention. Sets the Property_Restrictions_Within_Node |
None
|
target_age_min
|
int
|
The lower end of ages targeted for an intervention, in years. Sets Target_Age_Min |
0
|
target_age_max
|
int
|
The upper end of ages targeted for an intervention, in years. Sets Target_Age_Max |
MAX_AGE_YEARS
|
target_gender
|
str
|
The gender targeted for an intervention: All, Male, or Female. |
'All'
|
intervention
|
any
|
Intervention or a list of interventions to be distributed by this event |
None
|
Source code in emodpy_malaria/interventions/outbreak.py
add_outbreak_individual(campaign, start_day=1, demographic_coverage=1.0, target_num_individuals=None, node_ids=None, repetitions=1, timesteps_between_repetitions=365, ind_property_restrictions=None, target_age_min=0, target_age_max=MAX_AGE_YEARS, target_gender='All', ignore_immunity=True, incubation_period_override=-1, antigen=0, genome=0, broadcast_event=None)
Adds a scheduled OutbreakIndividual intervention. This is set up to be used with Malaria-Ongoing branch.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
campaign
|
EMODCampaign
|
campaign object to which the intervention will be added, and schema_path container |
required |
start_day
|
int
|
The day the intervention is given out. |
1
|
demographic_coverage
|
float
|
This value is the probability that each individual in the target population will receive the intervention. It does not guarantee that the exact fraction of the target population set by Demographic_Coverage receives the intervention. |
1.0
|
target_num_individuals
|
int
|
The exact number of people to select out of the targeted group. If this value is set, demographic_coverage parameter is ignored |
None
|
node_ids
|
list
|
List of nodes to which to distribute the intervention. [] or None, indicates all nodes will get the intervention |
None
|
repetitions
|
int
|
The number of times an intervention is given, used with timesteps_between_repetitions. -1 means the intervention repeats forever. Sets Number_Repetitions |
1
|
timesteps_between_repetitions
|
int
|
The interval, in timesteps, between repetitions. Ignored if repetitions = 1. Sets Timesteps_Between_Repetitions |
365
|
ind_property_restrictions
|
list
|
A list of dictionaries of IndividualProperties, which are needed for the individual to receive the intervention. Sets the Property_Restrictions_Within_Node |
None
|
target_age_min
|
int
|
The lower end of ages targeted for an intervention, in years. Sets Target_Age_Min |
0
|
target_age_max
|
int
|
The upper end of ages targeted for an intervention, in years. Sets Target_Age_Max |
MAX_AGE_YEARS
|
target_gender
|
str
|
The gender targeted for an intervention: All, Male, or Female. |
'All'
|
ignore_immunity
|
bool
|
Individuals will be force-infected (with a specific strain) regardless of actual immunity level when set to True (1). Default is True (1). The person will or will not get an infection based on their immunity level if this is set to False. |
True
|
incubation_period_override
|
int
|
The incubation period, in days, that infected individuals will go through before becoming infectious. This value overrides the incubation period set in the configuration file. Set to -1 to honor the configuration parameter settings |
-1
|
antigen
|
int
|
The antigenic base strain ID of the outbreak infection |
0
|
genome
|
int
|
The genetic substrain ID of the outbreak infection |
0
|
broadcast_event
|
str
|
Optional event that will be sent out at the same time as outbreak is distributed |
None
|
Source code in emodpy_malaria/interventions/outbreak.py
add_outbreak_malaria_genetics(campaign, start_day=1, demographic_coverage=1.0, target_num_individuals=None, node_ids=None, repetitions=1, timesteps_between_repetitions=365, ind_property_restrictions=None, target_age_min=0, target_age_max=MAX_AGE_YEARS, target_gender='All', ignore_immunity=True, incubation_period_override=-1, create_nucleotide_sequence_from='BARCODE_STRING', barcode_string=None, drug_resistant_string=None, msp_variant_value=None, pfemp1_variants_values=None, barcode_allele_frequencies_per_genome_location=None, drug_resistant_allele_frequencies_per_genome_location=None, hrp_allele_frequencies_per_genome_location=None, hrp_string=None, broadcast_event=None)
Creates a scheduled OutbreakIndividualMalariaGenetics CampaignEvent which can then
be added to a campaign.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
campaign
|
EMODCampaign
|
campaign object to which the intervention will be added, and schema_path container |
required |
start_day
|
int
|
The day the intervention is given out. |
1
|
demographic_coverage
|
float
|
This value is the probability that each individual in the target population will receive the intervention. It does not guarantee that the exact fraction of the target population set by Demographic_Coverage receives the intervention. |
1.0
|
target_num_individuals
|
int
|
The exact number of people to select out of the targeted group. If this value is set, demographic_coverage parameter is ignored. |
None
|
node_ids
|
list
|
List of nodes to which to distribute the intervention. [] or None, indicates all nodes will get the intervention |
None
|
repetitions
|
int
|
The number of times an intervention is given, used with timesteps_between_repetitions. -1 means the intervention repeats forever. Sets Number_Repetitions |
1
|
timesteps_between_repetitions
|
int
|
The interval, in timesteps, between repetitions. Ignored if repetitions = 1. Sets Timesteps_Between_Repetitions |
365
|
ind_property_restrictions
|
list
|
A list of dictionaries of IndividualProperties, which are needed for the individual to receive the intervention. Sets the Property_Restrictions_Within_Node |
None
|
target_age_min
|
int
|
The lower end of ages targeted for an intervention, in years. Sets Target_Age_Min |
0
|
target_age_max
|
int
|
The upper end of ages targeted for an intervention, in years. Sets Target_Age_Max |
MAX_AGE_YEARS
|
target_gender
|
str
|
The gender targeted for an intervention: All, Male, or Female. |
'All'
|
ignore_immunity
|
bool
|
Individuals will be force-infected (with a specific strain) regardless of actual immunity level when set to True (1). Default is True (1). The person will or will not get an infection based on their immunity level if this is set to False. |
True
|
incubation_period_override
|
int
|
The incubation period, in days, that infected individuals will go through before becoming infectious. This value overrides the incubation period set in the configuration file. Set to -1 to honor the configuration parameter settings |
-1
|
create_nucleotide_sequence_from
|
str
|
A string that indicates how the genomes are created. Possible values are: BARCODE_STRING, ALLELE_FREQUENCIES, NUCLEOTIDE_SEQUENCE. |
'BARCODE_STRING'
|
barcode_string
|
str
|
Used with 'BARCODE_STRING' or 'NUCLEOTIDE_SEQUENCE'. A series of nucleotide base letters (A, C, G, T) that represent the values at locations in the genome. The length of the string depends on the number of locations defined in config.Parasite_Genetics.Barcode_Genome_Locations. Each character of the string corresponds to one of the locations. The locations are assumed to be in ascending order. |
None
|
drug_resistant_string
|
str
|
Used with 'BARCODE_STRING' or 'NUCLEOTIDE_SEQUENCE'. A series of nucleotide base letters (A, C, G, T) that represent the values at locations in the genome. The length of the string depends on the number of locations defined in config.Parasite_Genetics.Drug_Resistant_Genome_Locations. Each character of the string corresponds to one of the locations. The locations are assumed to be in ascending order. |
None
|
msp_variant_value
|
int
|
Used with 'NUCLEOTIDE_SEQUENCE'. The Merozoite Surface Protein value used to determine how the antibodies recognizes the merzoites. This value depends on config.Falciparum_MSP_Variants and must be less than or equal to it. |
None
|
pfemp1_variants_values
|
list
|
Used with 'NUCLEOTIDE_SEQUENCE'. The PfEMP1 Variant values / major epitopes used to define how the antibodies recognize the infected red blood cells. The values of the array depend on config. Falciparum_PfEMP1_Variants and must be less than or equal to it. There must be exactly 50 values – one for each epitope. |
None
|
barcode_allele_frequencies_per_genome_location
|
list
|
Used with 'ALLELE_FREQUENCIES'. The fractions of allele occurrences for each location in the barcode. This 2D array should have one array for each location/character in the barcode. For each location, there should be four values between 0 and 1 indicating the probability that specific character appears. The possible letters are: A=0, C=1, G=2, T=3. The frequencies should sum up to 1. |
None
|
drug_resistant_allele_frequencies_per_genome_location
|
list
|
Used with 'ALLELE_FREQUENCIES'. The fractions of allele occurrences for each location in the drug resistant markers. This 2D array should have one array for each drug resistant location. For each location, there should be four values between 0 and 1 indicating the probability that specific character will appear. The possible letters are S'A'=0, 'C'=1, 'G'=2, 'T'=3. The frequencies should sum up to 1. |
None
|
hrp_allele_frequencies_per_genome_location
|
list
|
Used with 'ALLELE_FREQUENCIES'. The fractions of allele occurrences for each location in the HRP markers. This 2D array should have one array for each HRP location. For each location, there should be four values between 0 and 1 indicating the probability that specific character will appear. The possible letters are 'A'=0, 'C'=1, 'G'=2, 'T'=3. |
None
|
hrp_string
|
str
|
Used with 'BARCODE_STRING' or 'NUCLEOTIDE_SEQUENCE'. A series of nucleotide base letters (A, C, G, T)
that represent the HRP values at locations in the genome. There must be one character for each location
defined in |
None
|
broadcast_event
|
str
|
Optional event that will be sent out at the same time as outbreak is distributed |
None
|
Source code in emodpy_malaria/interventions/outbreak.py
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 125 126 127 128 129 130 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 | |
add_outbreak_malaria_var_genes(campaign, start_day=1, demographic_coverage=1.0, target_num_individuals=None, node_ids=None, repetitions=1, timesteps_between_repetitions=365, ind_property_restrictions=None, target_age_min=0, target_age_max=MAX_AGE_YEARS, target_gender='All', ignore_immunity=True, incubation_period_override=-1, irbc_type=None, minor_epitope_type=None, msp_type=None)
Creates a scheduled OutbreakIndividualMalariaGenetics CampaignEvent which can then
be added to a campaign.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
campaign
|
EMODCampaign
|
campaign object to which the intervention will be added, and schema_path container |
required |
start_day
|
int
|
The day the intervention is given out. |
1
|
demographic_coverage
|
float
|
This value is the probability that each individual in the target population will receive the intervention. It does not guarantee that the exact fraction of the target population set by Demographic_Coverage receives the intervention. |
1.0
|
target_num_individuals
|
int
|
The exact number of people to select out of the targeted group. If this value is set, demographic_coverage parameter is ignored |
None
|
node_ids
|
list
|
List of nodes to which to distribute the intervention. [] or None, indicates all nodes will get the intervention |
None
|
repetitions
|
int
|
The number of times an intervention is given, used with timesteps_between_repetitions. -1 means the intervention repeats forever. Sets Number_Repetitions |
1
|
timesteps_between_repetitions
|
int
|
The interval, in timesteps, between repetitions. Ignored if repetitions = 1. Sets Timesteps_Between_Repetitions |
365
|
ind_property_restrictions
|
list
|
A list of dictionaries of IndividualProperties, which are needed for the individual to receive the intervention. Sets the Property_Restrictions_Within_Node |
None
|
target_age_min
|
int
|
The lower end of ages targeted for an intervention, in years. Sets Target_Age_Min |
0
|
target_age_max
|
int
|
The upper end of ages targeted for an intervention, in years. Sets Target_Age_Max |
MAX_AGE_YEARS
|
target_gender
|
str
|
The gender targeted for an intervention: All, Male, or Female. |
'All'
|
ignore_immunity
|
bool
|
Individuals will be force-infected (with a specific strain) regardless of actual immunity level when set to True (1). Default is True (1). The person will or will not get an infection based on their immunity level if this is set to False. |
True
|
incubation_period_override
|
int
|
The incubation period, in days, that infected individuals will go through before becoming infectious. This value overrides the incubation period set in the configuration file. Set to -1 to honor the configuration parameter settings |
-1
|
irbc_type
|
list
|
The array PfEMP1 Major epitope variant values. There must be exactly 50 values. Min value = 0, MAX value = config.Falciparum_PfEMP1_Variants. |
None
|
minor_epitope_type
|
list
|
The array PfEMP1 Minor epitope variant values. There must be exactly 50 values. Min value = 0, MAX value = config.Falciparum_Nonspecific_Types * MINOR_EPITOPE_VARS_PER_SET(=5) . |
None
|
msp_type
|
int
|
The Merozoite Surface Protein variant value of this infection. Min value = 0, MAX value = config.Falciparum_MSP_Variants. |
None
|