augur.util_support.node_data_reader

class augur.util_support.node_data_reader.NodeDataReader(filenames, tree_file=None, validation_mode=ValidationMode.ERROR)

Bases: object

Parses one or more node data files and combines them into a single data structure.

The format of Node data files is described in docs/usage/json_format.md. The generated_by attribute is not included in the resulting data structure.

If a tree file is specified, it is used to verify the node names.

If validation_mode is set to augur.types.ValidationMode.SKIP, Augur version of node data files is not checked.

build_node_data()
check_against_tree_file(node_data)
property node_data_files
property node_names_from_tree_file
read()