extra_info
api/utils/extra_info.py Utility for turning an experimental-lookup dict into the ‘Extra Information’ string shown in output.csv
Module Contents
- extra_info.build_extra_info(exp: dict, param_type: str, prediction: str = '', model_key: str = '') str
- Parameters:
exp (dict) – Record returned by lookup_experimental, already guaranteed to contain at least the keys used below.
param_type (str) – ‘Km’ or ‘kcat’ (case-insensitive). Used to pick the SD field.
prediction (str, optional) – The prediction value, if available. Used to include in the output.
model_key (str, optional) – The model key used for the prediction, if applicable.
- Returns:
A single human-readable paragraph, or ‘’ if exp[‘found’] is False.
- Return type:
str