api.backend package¶
Submodules¶
api.backend.backend_api module¶
- api.backend.backend_api.choose_molecule()¶
Saves the final choice of molecule for the end of the game as a list of the final molecule’s R Group IDs.
- Returns:
Json dict contained list of the R Group IDs and the list on its
own. :rtype: json dict, list
- api.backend.backend_api.reset(mol_dict)¶
Resets values and so restarts the game
- Parameters:
mol_dict (dict) – All the information about the current state of the game
- Returns:
The new empty molecule_info dictionary as a json dict
- Return type:
json dict
- api.backend.backend_api.save_molecule(mol_dict)¶
Saves a molecule representing it as a pair of R Group IDs. Appends it to mol_dict and returns updated mol_dict.
- Parameters:
mol_dict (dict) – All the information about the current state of the game
- Returns:
List of tuples, containing the R Group IDs as a json dict and
updated mol_dict. :rtype: json dict, dict
api.backend.molecule_api module¶
api.backend.plotting_api module¶
api.backend.sketched_molecules_api module¶
api.backend.user_api module¶
api.backend.utils module¶
- api.backend.utils.numerise_params(prop_dict)¶
Returns drug properties with all qualitative values transformed into numeric values
returns: numerically transformed property dictionaries rtype: dict
- api.backend.utils.tuple2str(tuple_in)¶
Converts a tuple into a string.
- Parameters:
tuple_in (tuple) – tuple to convert
- Returns:
concatenated string version of the tuple
- Return type:
str