The hgvs package uses a single, package-wide configuration instance to control package behavior. The hgvs.config module provides that configuration instance, via the hgvs.global_config variable.
You should not import hgvs.config directly.
Config are read from an ini-format file. hgvs.config implements a thin wrapper on the ConfigParser instance in order to provide attribute based lookups (rather than key). It also returns heuristically typed values (e.g., “True” becomes True).
Although keys are settable, they are stringified on setting and type-inferred on getting, which means that round-tripping works only for str, int, and boolean.
>>> import hgvs.config
Package-wide (“global”) configuration, initialized with package defaults. Setting configuration in this object will change global behavior of the hgvs package.
global_config, an instance of :ref:
hgvs.config.Config, supports reading ini-like files that updates
provides an attribute-based lookup of configparser sections and settings.
read configuration from ini-formatted file-like object
The defaults are:
[mapping] alt_aln_method = splign assembly = GRCh38 in_par_assume = X inferred_p_is_uncertain = True normalize = True replace_reference = True [formatting] p_3_letter = True p_term_asterisk = False [normalizer] cross_boundaries = False shuffle_direction = 3 validate = True window_size = 20 [lru_cache] maxsize = 100