utils
ensembl.io.genomio.utils
¶
    Utils module.
get_json(src_path, **kwargs)
¶
    Generic data JSON loader.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| src_path | StrPath | Path to the JSON file to load. | required | 
Source code in src/python/ensembl/io/genomio/utils/json_utils.py
              | 26 27 28 29 30 31 32 33 34 |  | 
print_json(dst_path, data, **kwargs)
¶
    Generic data JSON dumper to a file, with keys sorted and pretty-printed with indent 4 by default.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| dst_path | StrPath | Path to the JSON file to create. | required | 
| data | Any | Any data to store into the file. | required | 
Source code in src/python/ensembl/io/genomio/utils/json_utils.py
              | 37 38 39 40 41 42 43 44 45 46 47 48 |  |