mkt.schema.io_utils.deserialize_kinase_dict

mkt.schema.io_utils.deserialize_kinase_dict(suffix: str = 'json', deserialization_kwargs: dict[str, Any] | None = None, str_path: str | None = None, bool_remove: bool = True, list_ids: list[str] | None = None, str_name: str | None = None, bool_verbose: bool = True) dict[str, BaseModel][source]

Deserialize KinaseInfo object from files.

Parameters:
  • suffix (str) – Deserialization types supported: json, yaml, toml.

  • deserialization_kwargs (dict[str, Any], optional) – Additional keyword arguments for deserialization function, by default None.

  • str_path (str | None, optional) – Path from which to load files, by default None.

  • bool_remove (bool, optional) – If True, remove the files after deserialization, by default True.

  • list_ids (list[str] | None, optional) – List of IDs to filter the files if reading from memory, by default None.

  • str_name (str | None, optional) – Name of a variable in the global scope that contains the kinase dictionary to prevent reloading, by default None.

Returns:

Dictionary of KinaseInfo objects.

Return type:

dict[str, KinaseInfo]