emodpy_malaria.serialization.replace_genomes module#
- class emodpy_malaria.serialization.replace_genomes.Genome[source]#
Bases:
objectRepresent a single genome
- property barcode#
- property hashcode#
- emodpy_malaria.serialization.replace_genomes.get_next_genome(next_barcode_fn, allele_root_id, ser_pop_genome_map, cache_genome_map)[source]#
- emodpy_malaria.serialization.replace_genomes.replace_genomes(input_file, next_barcode_fn, output_file)[source]#
Replaces genomes in infected individuals and vectors.
- Args:
input_file: Input serialized population file next_barcode_fn: Function that return the next barcode. The function is called once for every infection of an
individual and once for every vector in the vector population.
output_file: Output file with replaced genomes.
- Returns:
Nothing