read_structure#
- superglm.read_structure(path_or_mapping) Structure#
Read a structure file.
- Parameters:
- path_or_mappingstr, path-like or Mapping
The path of a file
Structure.to_json()wrote, or its parsed JSON.
- Returns:
- Structure
- Raises:
- StructureError
If the file is not a valid structure file; see
Structure.from_json().