Skip to content

MutationTree.num_mutations might have been returning the largest mutant IDs #10

Open
@JonathanFoo0523

Description

@JonathanFoo0523

The num_mutations is intiliased and modified as below:

self.num_mutation = 0

# being modified by recursive call to `populate()`
temp: int = functools.reduce(max, self.nodes[node_id].mutation_ids, 0)
self.num_mutations = max(self.num_mutations, temp)

However, self.nodes[node_id].mutation_ids have range [0, largest_mutants_id], thus self.num_mutations <= largest_mutants_id

But in most case, we have self.num_mutations == largest_mutants_id + 1

I think (not verified) that this bug has been present since before the script was modified to accommodate the new format (flatten representation) of the mutation_info_file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions